gw/taskfile.yml

29 lines
708 B
YAML
Raw Permalink Normal View History

2024-12-25 21:12:11 +00:00
version: '3'
tasks:
2024-12-26 11:00:16 +00:00
build-backend:
2024-12-25 21:12:11 +00:00
cmds:
- rm gw
2024-12-26 12:26:45 +00:00
- nimble build
2024-12-26 11:00:16 +00:00
build-frontend:
dir: ./web
cmds:
2024-12-25 21:12:11 +00:00
- pnpm install
- pnpm run build
dev-backend:
cmds:
- nimble c -d:usestd -r src/gw.nim -o:gw
dev-frontend:
dir: ./web
cmds:
2024-12-26 12:26:45 +00:00
- pnpm run dev
docker-build-frontend:
dir: ./web
cmds:
- pnpm install
- pnpm run build
docker-build-backend:
cmds:
- rm gw | echo "has not been compiled before"
- nimble -y build --gcc.path:"/usr/bin" --gcc.exe:"x86_64-alpine-linux-musl-gcc" --gcc.linkerexe:"x86_64-alpine-linux-musl-gcc" --gcc.options.always:"-static" --define:release --threads:on