42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
# https://taskfile.dev
|
|
|
|
version: '3'
|
|
|
|
vars:
|
|
GREETING: Hello, World!
|
|
|
|
tasks:
|
|
preview:
|
|
deps: [build]
|
|
cmds:
|
|
- npm exec vite preview
|
|
test:e2e:
|
|
deps: [build]
|
|
cmds:
|
|
- npm exec playwright test
|
|
export-db:
|
|
cmds:
|
|
- sqlite3 /home/bggsell/games.db '.mode json' '.once /home/bggsell/db/games.json' 'select * from game'
|
|
- sqlite3 /home/bggsell/games.db '.mode json' '.once /home/bggsell/db/sellers.json' 'select * from bgg_user'
|
|
export-db:dev:
|
|
cmds:
|
|
- sqlite3 games.db '.mode json' '.once static/dev/games.json' 'select * from game'
|
|
- sqlite3 games.db '.mode json' '.once static/dev/sellers.json' 'select * from bgg_user'
|
|
|
|
deploy:
|
|
deps: [build]
|
|
cmds:
|
|
- rsync -av build/ bggsell@gilgamesh:public_html
|
|
|
|
build:
|
|
cmds:
|
|
- vite build
|
|
update-game:
|
|
cmds:
|
|
- node src/scripts/updateUsers.js
|
|
|
|
default:
|
|
cmds:
|
|
- echo "{{.GREETING}}"
|
|
silent: true
|