Templates + build
This commit is contained in:
parent
67e2e4d306
commit
7e821296a6
13 changed files with 202 additions and 15 deletions
22
justfile
Normal file
22
justfile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
go := require("go")
|
||||
templ := require("templ")
|
||||
air := require("air")
|
||||
|
||||
templ:
|
||||
templ generate
|
||||
|
||||
prebuild: templ
|
||||
|
||||
run: prebuild
|
||||
go run main.go
|
||||
|
||||
build: prebuild
|
||||
go build -o bin/gpx-downloader main.go
|
||||
|
||||
watch:
|
||||
CI=1 CLICOLOR_FORCE=1 air \
|
||||
--build.cmd "just build" \
|
||||
--build.bin "./bin/gpx-downloader" \
|
||||
-build.include_ext "go,templ" \
|
||||
--build.exclude_dir "data" \
|
||||
--build.exclude_regex "_templ.go"
|
||||
Loading…
Add table
Add a link
Reference in a new issue