2023-01-13 17:43:06 +00:00
|
|
|
# https://taskfile.dev
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
vars:
|
|
|
|
GREETING: Hello, World!
|
2023-01-14 18:42:43 +00:00
|
|
|
FILES:
|
2023-01-14 20:56:37 +00:00
|
|
|
sh: git diff-ls --diff-filter=d main | grep -v .eslintignore
|
2023-01-13 17:43:06 +00:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
build: vite build
|
|
|
|
dev: vite
|
2023-01-14 18:47:01 +00:00
|
|
|
test: vitest run src
|
|
|
|
test:watch: vitest src
|
2023-01-15 18:36:02 +00:00
|
|
|
story: histoire dev
|
2023-01-13 17:43:06 +00:00
|
|
|
default:
|
|
|
|
cmds:
|
|
|
|
- echo "{{.GREETING}}"
|
|
|
|
silent: true
|
2023-01-14 18:42:43 +00:00
|
|
|
lint:fix:
|
|
|
|
cmds:
|
2023-01-14 20:28:42 +00:00
|
|
|
- npx prettier --write {{.CLI_ARGS | default .FILES | catLines }}
|
2023-01-14 20:56:37 +00:00
|
|
|
- npx eslint --fix --quiet {{.CLI_ARGS | default .FILES | catLines }}
|
2023-01-14 18:42:43 +00:00
|
|
|
integrate:
|
|
|
|
cmds:
|
|
|
|
- git is-clean
|
|
|
|
- task: lint:fix
|
|
|
|
- task: test
|
|
|
|
- git co main
|
|
|
|
- git weld -
|