bgg-ottawa-sell-club/Taskfile.yaml

34 lines
896 B
YAML

# https://taskfile.dev
version: '3'
vars:
GREETING: Hello, World!
tasks:
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