fixup
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
TAILWIND := tools/tailwindcss
|
||||
CSS_SRC := web/static/src/input.css
|
||||
CSS_OUT := web/static/css/app.css
|
||||
|
||||
.PHONY: css watch run test build clean
|
||||
|
||||
# 編譯 Tailwind CSS(產物 app.css 會內嵌進執行檔,記得重新 go build)
|
||||
css:
|
||||
$(TAILWIND) -i $(CSS_SRC) -o $(CSS_OUT) --minify
|
||||
|
||||
# 開發時監看模板變更並即時重建 CSS
|
||||
watch:
|
||||
$(TAILWIND) -i $(CSS_SRC) -o $(CSS_OUT) --watch
|
||||
|
||||
run:
|
||||
go run .
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
build: css
|
||||
go build -o nestly .
|
||||
|
||||
clean:
|
||||
rm -f nestly
|
||||
Reference in New Issue
Block a user