paisa/Makefile

24 lines
714 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
./node_modules/.bin/tsc --project tsconfig.json --noEmit
test -z $$(gofmt -l .)
windows:
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build