2024-02-04 17:40:51 +00:00
|
|
|
# https://taskfile.dev
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
vars:
|
|
|
|
GREETING: Hello, World!
|
|
|
|
|
|
|
|
tasks:
|
2024-02-09 18:43:54 +00:00
|
|
|
is-clean: git is-clean
|
|
|
|
integrate:
|
|
|
|
deps: [is-clean, test]
|
|
|
|
cmds:
|
2024-02-09 20:59:42 +00:00
|
|
|
- git checkout main
|
|
|
|
- git weld - --no-edit
|
2024-02-09 18:43:54 +00:00
|
|
|
test:unit:
|
|
|
|
cmds:
|
|
|
|
- vitest run
|
|
|
|
test:
|
|
|
|
deps: [test:unit, test:e2e]
|
2024-02-09 17:49:22 +00:00
|
|
|
preview:
|
|
|
|
deps: [build]
|
|
|
|
cmds:
|
|
|
|
- npm exec vite preview
|
|
|
|
test:e2e:
|
|
|
|
deps: [build]
|
|
|
|
cmds:
|
|
|
|
- npm exec playwright test
|
2024-02-04 19:21:39 +00:00
|
|
|
export-db:
|
|
|
|
cmds:
|
|
|
|
- sqlite3 /home/bggsell/games.db '.mode json' '.once /home/bggsell/db/games.json' 'select * from game'
|
2024-02-05 15:30:23 +00:00
|
|
|
- sqlite3 /home/bggsell/games.db '.mode json' '.once /home/bggsell/db/sellers.json' 'select * from bgg_user'
|
2024-02-04 19:08:53 +00:00
|
|
|
export-db:dev:
|
|
|
|
cmds:
|
|
|
|
- sqlite3 games.db '.mode json' '.once static/dev/games.json' 'select * from game'
|
2024-02-05 15:30:23 +00:00
|
|
|
- sqlite3 games.db '.mode json' '.once static/dev/sellers.json' 'select * from bgg_user'
|
2024-02-04 19:08:53 +00:00
|
|
|
|
2024-02-04 18:02:59 +00:00
|
|
|
deploy:
|
|
|
|
deps: [build]
|
|
|
|
cmds:
|
|
|
|
- rsync -av build/ bggsell@gilgamesh:public_html
|
|
|
|
|
2024-02-04 17:54:23 +00:00
|
|
|
build:
|
|
|
|
cmds:
|
|
|
|
- vite build
|
2024-02-04 17:40:51 +00:00
|
|
|
update-game:
|
|
|
|
cmds:
|
|
|
|
- node src/scripts/updateUsers.js
|
|
|
|
|
|
|
|
default:
|
|
|
|
cmds:
|
|
|
|
- echo "{{.GREETING}}"
|
|
|
|
silent: true
|