mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-26 17:34:23 +01:00
27 lines
590 B
Makefile
27 lines
590 B
Makefile
export PATH := "./node_modules/.bin:" + env_var('PATH')
|
|
|
|
dev:
|
|
TAILWIND_DEBUG=true go run .
|
|
|
|
build: tailwind
|
|
go build -o ./njump
|
|
|
|
deploy:
|
|
GOOS=linux GOARCH=amd64 go build -o ./njump
|
|
rsync --progress njump njump:njump/njump-new
|
|
ssh njump 'systemctl stop njump'
|
|
ssh njump 'mv njump/njump-new njump/njump'
|
|
ssh njump 'systemctl start njump'
|
|
|
|
debug-build: tailwind
|
|
go build -tags=nocache -o ./tmp/main .
|
|
|
|
prettier:
|
|
prettier -w templates/*.html
|
|
|
|
tailwind:
|
|
tailwind -i tailwind.css -o static/tailwind-bundle.min.css --minify
|
|
|
|
test:
|
|
go test -tags=nocache
|