pcmt/justfile
leo 1655d6b792
All checks were successful
continuous-integration/drone/push Build is passing
go: /static -> /assets in varnames,routes,dirs
2023-04-26 22:44:18 +02:00

31 lines
616 B
Makefile

# run tailwindcss tool in watch mode.
watch-tw:
npm i
npx tailwindcss -i ./assets/input.css -o ./assets/pcmt.css --watch
# start browser-sync.
watch-brs:
npm i
npx browser-sync start --config bs.js
# build app stylesheets using the tailwindcss cli tool.
tw:
npm i
npx tailwindcss -i ./assets/input.css -o ./assets/pcmt.css --minify
# build the application.
build:
go mod tidy
go build -v -ldflags="-X main.version=$(git rev-parse --short HEAD)" .
# run the application.
run:
./pcmt -devel
# build and run the application
dev: build run
# generate code based on ent schemas.
gen:
go generate -v ./ent