under-falling-skies/Taskfile.yaml

31 lines
704 B
YAML
Raw Normal View History

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:
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:
- npx prettier --write {{.CLI_ARGS | default .FILES | catLines }}
- 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 -