Skip to content

Commit

Permalink
check in generated templ go files
Browse files Browse the repository at this point in the history
This allows for code scanning of the generated files and avoid having to transpile the files in the dockerfile + CI/CD
  • Loading branch information
raphi011 committed Nov 19, 2024
1 parent 0c7562d commit d5c417b
Show file tree
Hide file tree
Showing 7 changed files with 995 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,4 @@ jobs:
go-version: 1.23.3

- name: Run tests
run: |
go install github.com/a-h/templ/cmd/templ@latest
templ generate
go test ./...
run: go test ./...
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ example
./example-server-bootstrap
example

*_templ.go
handoff.db

# tmux startup script
Expand Down
249 changes: 249 additions & 0 deletions internal/html/body_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 97 additions & 0 deletions internal/html/component/heading_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d5c417b

Please sign in to comment.