23 lines
421 B
Makefile
23 lines
421 B
Makefile
|
watch-tw:
|
||
|
mkdir -pv static
|
||
|
npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --watch
|
||
|
|
||
|
watch-brs:
|
||
|
npx browser-sync start --config bs.js
|
||
|
|
||
|
tw:
|
||
|
mkdir -p static
|
||
|
npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --minify
|
||
|
|
||
|
build:
|
||
|
go build -v -ldflags="-X main.version=$(git rev-parse --short HEAD)" .
|
||
|
|
||
|
run:
|
||
|
./pcmt -devel
|
||
|
|
||
|
dev: build run
|
||
|
|
||
|
# generate code based on ent schemas.
|
||
|
gen:
|
||
|
go generate -v ./ent
|