aotds-docks/Taskfile.yml

70 lines
1.3 KiB
YAML
Raw Normal View History

2022-04-17 21:51:19 +00:00
# https://taskfile.dev
version: "3"
vars:
2023-04-14 18:29:20 +00:00
PARENT_BRANCH: main
2022-04-17 21:51:19 +00:00
tasks:
2023-04-13 21:56:18 +00:00
test:
cmds:
- vitest run src
test:dev:
cmds:
- vitest src
2023-04-22 15:04:48 +00:00
test:update:
deps:
- histoire:build
cmds:
2023-05-03 21:10:23 +00:00
- vitest run -u src
2023-04-22 15:04:48 +00:00
2023-04-13 21:56:18 +00:00
check:
2023-05-08 19:20:17 +00:00
# deps:
# - histoire:build
2023-04-13 21:56:18 +00:00
cmds:
- { task: test }
histoire:build:
sources:
- src/lib/components/**
2023-05-03 21:10:23 +00:00
- src/routes/**
2023-04-13 21:56:18 +00:00
generates:
- .histoire/screenshots/**
cmds:
- histoire build
2023-05-04 20:14:38 +00:00
build:
cmds:
2023-05-11 16:32:39 +00:00
- changelord print --no-next > src/routes/\(about\)/about/changelog/changelog.svx
2023-05-04 20:14:38 +00:00
- vite build
2023-04-13 21:56:18 +00:00
integrate:
deps: [check]
2023-05-11 16:40:27 +00:00
preconditions:
- sh: git is-clean
msg: checkout not clean
- sh: git diff-ls {{.PARENT_BRANCH}} | grep test
msg: no test was added
- sh: git diff-ls {{.PARENT_BRANCH}} | grep CHANGELOG.yml
msg: no changelog entry detected
2023-04-13 21:56:18 +00:00
cmds:
- git weld -
2023-05-04 22:14:30 +00:00
sync:
cmds:
- rsync -av build/ 192.168.0.100:/home/docks
2023-05-08 19:20:17 +00:00
open: firefox https://docks.babyl.ca
2022-04-17 21:51:19 +00:00
release:
cmds:
- standard-version -a
2023-05-11 16:32:39 +00:00
2022-04-17 21:51:19 +00:00
changelog:
sources: [CHANGELOG.md]
generates: [src/lib/components/Changelog.svelte]
cmds:
- pnpx showdown makehtml -i CHANGELOG.md -o src/lib/components/Changelog.svelte
- git add src/lib/components/Changelog.svelte