under-falling-skies/Taskfile.yaml

30 lines
663 B
YAML

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