diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..6902d24 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,14 @@ +# 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}}"] + cmds: transerialize {{.SCHEMA}} {{.DEST}}