under-falling-skies/Taskfile.yaml

35 lines
808 B
YAML

# https://taskfile.dev
version: '3'
vars:
GREETING: Hello, World!
FILES:
sh: git diff-ls --diff-filter=d main | grep -v .eslintignore
tasks:
deploy:
deps: [build]
cmds:
- rsync -av ./dist/ 192.168.0.100:/home/sky
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 -