aotds-docks/Taskfile.yml

59 lines
1021 B
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:
- vitest run -u src
2023-04-13 21:56:18 +00:00
check:
deps:
- histoire:build
cmds:
- { task: test }
histoire:build:
sources:
- src/lib/components/**
generates:
- .histoire/screenshots/**
cmds:
- histoire build
integrate:
deps: [check]
cmds:
- git is-clean
2023-04-14 18:29:20 +00:00
# did we had tests?
- git diff-ls {{.PARENT_BRANCH}} | grep test
- git checkout {{.PARENT_BRANCH}}
2023-04-13 21:56:18 +00:00
- git weld -
2022-04-17 21:51:19 +00:00
release:
cmds:
- standard-version -a
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
default:
cmds:
- echo "{{.GREETING}}"
silent: true