19 lines
422 B
Makefile
19 lines
422 B
Makefile
run:
|
|
@templ generate
|
|
@go run main.go
|
|
|
|
templ:
|
|
@templ generate -watch -proxy=http://127.0.0.1:3000
|
|
|
|
sass:
|
|
@sass --no-source-map --watch view/stylesheets/tallytome.scss public/tallytome.css
|
|
|
|
build:
|
|
@rm -rf tmp/release/tallytome
|
|
@mkdir -p tmp/release/tallytome
|
|
@templ generate
|
|
@GOARCH="amd64" GOOS="linux" go build main.go
|
|
@mv main tallytome
|
|
@mv tallytome tmp/release/tallytome
|
|
@cp -r public tmp/release/tallytome
|