20 lines
543 B
Makefile
20 lines
543 B
Makefile
.PHONY: docs
|
|
|
|
serve:
|
|
./node_modules/.bin/nodemon --signal SIGTERM --watch '.' --ext go,js,css,html --exec 'go run . serve || exit 1'
|
|
watch:
|
|
./node_modules/.bin/esbuild web/src/index.ts --bundle --watch --sourcemap --outfile=web/static/dist.js
|
|
docs:
|
|
cd docs && mdbook serve --open
|
|
|
|
sample:
|
|
go build && ./paisa init && ./paisa update && ./paisa serve
|
|
|
|
publish:
|
|
nix-shell --run 'cd docs && mdbook build'
|
|
|
|
lint:
|
|
./node_modules/.bin/prettier --check web/src
|
|
./node_modules/.bin/eslint web/src --ext .js,.jsx,.ts,.tsx
|
|
test -z $$(gofmt -l .)
|