bgg-ottawa-sell-club/Taskfile.yaml

53 lines
1.3 KiB
YAML

# https://taskfile.dev
version: '3'
vars:
GREETING: Hello, World!
tasks:
is-clean: git is-clean
integrate:
deps: [is-clean, test]
cmds:
- git checkout main
- git weld - --no-edit
test:unit:
cmds:
- vitest run
test:
deps: [test:unit, test:e2e]
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