From 3a1c5ee6ca596050ce2aa05aae2135b97117bf7e Mon Sep 17 00:00:00 2001 From: Stephan Lo Date: Fri, 7 Nov 2025 15:03:58 +0100 Subject: [PATCH] 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 --- Taskfile.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 454fb0c..cf3ec3e 100644 --- a/Taskfile.yml +++ b/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