add spec_generator.py as well as generate-specs task

This commit is contained in:
2026-03-10 20:39:21 +00:00
parent 415f2e2ba3
commit 47d38e4468
2 changed files with 286 additions and 3 deletions

View File

@@ -15,8 +15,13 @@ tasks:
- task: build
- task: compress
generate-specs:
desc: Generate all spec files from templates
cmd: pdm run python tools/spec_generator.py
build:
desc: Build the project
deps: [generate-specs]
cmds:
- for:
matrix:
@@ -35,6 +40,4 @@ tasks:
desc: Clean the project
cmds:
- |
{{.SHELL}} -Command "
Remove-Item -Recurse -Force build/basic,build/banana,build/potato
Remove-Item -Recurse -Force dist/*"
{{.SHELL}} -Command "Remove-Item -Path build/*,dist/* -Recurse -Force -ErrorAction SilentlyContinue"