under-falling-skies/Taskfile.yaml

30 lines
654 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 | perl -pe's/\n/ /'
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-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 }}
- npx eslint --fix --quiet {{.CLI_ARGS | default .FILES }}
2023-01-14 18:42:43 +00:00
integrate:
cmds:
- git is-clean
- task: lint:fix
- task: test
- git co main
- git weld -