pcmt/justfile
leo f129606b8f
All checks were successful
continuous-integration/drone/push Build is passing
add bulk changes
* add handlers for signin,singup,logout...
* introduce ent ORM and add user schema
* add live mode, devel mode to selectively turn on features via
  config/flags
* add templates, handle embedding moar smarter:
  * live mode uses live folder structure, else embedded templates are
    used
* start using tailwindcss to style stuff
* add development goodies for hot-reloading (browser-sync - bs.js)
* pimp-up config.dhall with actual custom config Type (enables remote
  schema and local values only as needed)
* add justfile (alternative to makefile for process automation)
2023-04-13 00:07:08 +02:00

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