under-falling-skies/Taskfile.yaml

31 lines
704 B
YAML

# https://taskfile.dev
version: '3'
vars:
GREETING: Hello, World!
FILES:
sh: git diff-ls --diff-filter=d main | grep -v .eslintignore
tasks:
build: vite build
dev: vite
test: vitest run src
test:watch: vitest src
story: histoire dev
default:
cmds:
- echo "{{.GREETING}}"
silent: true
lint:fix:
cmds:
- npx prettier --write {{.CLI_ARGS | default .FILES | catLines }}
- npx eslint --fix --quiet {{.CLI_ARGS | default .FILES | catLines }}
integrate:
cmds:
- git is-clean
- task: lint:fix
- task: test
- git co main
- git weld -