hyperborea-character-sheet/Taskfile.yml

32 lines
754 B
YAML
Raw Normal View History

2022-04-26 15:14:19 +00:00
# https://taskfile.dev
version: "3"
tasks:
schemas: fd -e yml -p ./schemas-yaml -x task schema SCHEMA='{}'
schema:
vars:
DEST:
sh: echo {{.SCHEMA}} | perl -pe's/ya?ml/json/g'
sources: ["{{.SCHEMA}}"]
generates: ["{{.DEST}}"]
2022-04-26 16:43:37 +00:00
cmds:
- transerialize {{.SCHEMA}} {{.DEST}}
validate:
silent: true
cmds:
- |
ajv validate \
--all-errors \
--errors=json \
--verbose \
2022-04-26 18:08:43 +00:00
-c ajv-keywords \
2022-04-26 16:43:37 +00:00
-s schemas-yaml/character.yml \
-d {{.CLI_ARGS}}
2022-04-26 18:37:16 +00:00
test:
deps: [ schemas ]
cmds:
- vitest run