feat: Add LikeC4 validation and update tasks
- Add likec4:validate task for syntax checking (ignores layout drift) - Add likec4:validate:layout task for full validation including layout - Add likec4:update task to update LikeC4 in both projects - Integrate likec4:validate into test and test:quick tasks - Improves CI/CD pipeline by catching C4 syntax errors early
This commit is contained in:
parent
2971f98b4c
commit
3a1c5ee6ca
1 changed files with 27 additions and 0 deletions
27
Taskfile.yml
27
Taskfile.yml
|
|
@ -58,12 +58,14 @@ tasks:
|
|||
- test:markdown
|
||||
- test:html
|
||||
- test:links
|
||||
- likec4:validate
|
||||
|
||||
test:quick:
|
||||
desc: Run quick tests (without link check)
|
||||
deps:
|
||||
- test:build
|
||||
- test:markdown
|
||||
- likec4:validate
|
||||
|
||||
test:build:
|
||||
desc: Test Hugo build
|
||||
|
|
@ -98,6 +100,31 @@ tasks:
|
|||
cmds:
|
||||
- cd resources/edp-likec4 && npx likec4 codegen webcomponent --webcomponent-prefix likec4 --outfile ../../static/js/likec4-webcomponent.js
|
||||
|
||||
likec4:validate:
|
||||
desc: Validate LikeC4 models
|
||||
cmds:
|
||||
- echo "Validating EDP architecture models..."
|
||||
- cd resources/edp-likec4 && npx likec4 validate --ignore-layout
|
||||
- echo "Validating Documentation platform models..."
|
||||
- cd resources/doc-likec4 && npx likec4 validate --ignore-layout
|
||||
- echo "✓ All LikeC4 models validated successfully"
|
||||
|
||||
likec4:validate:layout:
|
||||
desc: Validate LikeC4 models including layout
|
||||
cmds:
|
||||
- echo "Validating EDP architecture models (including layout)..."
|
||||
- cd resources/edp-likec4 && npx likec4 validate
|
||||
- echo "Validating Documentation platform models (including layout)..."
|
||||
- cd resources/doc-likec4 && npx likec4 validate
|
||||
- echo "✓ All LikeC4 models and layouts validated successfully"
|
||||
|
||||
likec4:update:
|
||||
desc: Update LikeC4 to latest version
|
||||
cmds:
|
||||
- cd resources/edp-likec4 && npm update likec4
|
||||
- cd resources/doc-likec4 && npm update likec4
|
||||
- echo "✓ LikeC4 updated in both projects"
|
||||
|
||||
# Development tasks
|
||||
deps:ensure-npm:
|
||||
desc: Ensure npm dependencies are installed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue