justfile: foolproof+document targets [skip ci]
This commit is contained in:
parent
5b63997aaf
commit
b1c926befd
10
justfile
10
justfile
@ -1,20 +1,30 @@
|
|||||||
|
# run tailwindcss tool in watch mode.
|
||||||
watch-tw:
|
watch-tw:
|
||||||
|
npm i
|
||||||
mkdir -pv static
|
mkdir -pv static
|
||||||
npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --watch
|
npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --watch
|
||||||
|
|
||||||
|
# start browser-sync.
|
||||||
watch-brs:
|
watch-brs:
|
||||||
|
npm i
|
||||||
npx browser-sync start --config bs.js
|
npx browser-sync start --config bs.js
|
||||||
|
|
||||||
|
# build app stylesheets using the tailwindcss cli tool.
|
||||||
tw:
|
tw:
|
||||||
|
npm i
|
||||||
mkdir -p static
|
mkdir -p static
|
||||||
npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --minify
|
npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --minify
|
||||||
|
|
||||||
|
# build the application.
|
||||||
build:
|
build:
|
||||||
|
go mod tidy
|
||||||
go build -v -ldflags="-X main.version=$(git rev-parse --short HEAD)" .
|
go build -v -ldflags="-X main.version=$(git rev-parse --short HEAD)" .
|
||||||
|
|
||||||
|
# run the application.
|
||||||
run:
|
run:
|
||||||
./pcmt -devel
|
./pcmt -devel
|
||||||
|
|
||||||
|
# build and run the application
|
||||||
dev: build run
|
dev: build run
|
||||||
|
|
||||||
# generate code based on ent schemas.
|
# generate code based on ent schemas.
|
||||||
|
Loading…
Reference in New Issue
Block a user