teaching: run carrier builds from the toolkit page
Extract the console runner into web/teaching/console-runner.js (classic script, file:// safe) and mount it on carrier-toolkit.html: per-part 运行本件, per-group 运行本组, 运行全部 and 运行装配, all fed by lessons.mjs ids at build time. Fix runButton() emitting a duplicate class attribute that dropped run-group/run-assembly. Server banner now prints the carrier page URL; new check:carrier-live gate drives the dry lesson end-to-end. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
"carrier:self-test": "node ../tools/carrier/self-test.mjs",
|
||||
"build:carrier-page": "node tools/teaching-console/build-carrier-page.mjs",
|
||||
"check:carrier": "node ../tools/carrier/self-test.mjs && node tools/teaching-console/build-carrier-page.mjs --check && node tools/teaching-console/check-carrier-page.mjs",
|
||||
"check:carrier-live": "node tools/teaching-console/check-carrier-page.mjs --live",
|
||||
"prebuild": "npm run sync-show-python-family-fixture && npm run check:geometry-boundary",
|
||||
"dev": "npm run sync-api-index && npm run sync-object-index && npm run sync-format-index && npm run sync-module-registry && npm run sync-part-tier2-adapter && npm run sync-partdesign-tier2-adapter && npm run sync-sketcher-tier2-adapter && npm run sync-techdraw-tier2-adapter && npm run sync-import-tier2-adapter && npm run sync-mesh-tier2-adapter && npm run sync-material-tier1-adapter && npm run sync-tier2-remainder && npm run sync-tier3-stateful && npm run sync-viewprovider-index && npm run sync-property-index && npm run sync-geometry-index && npm run sync-document-graph-index && npm run sync-capability-index && npm run sync-tier1-readonly && npm run sync-tier4-restricted && npm run sync-api-adapter-fill && npm run sync-format-extensions && npm run sync-kernel && npm run sync-release-manifest && vite --host 0.0.0.0",
|
||||
"build": "npm run sync-api-index && npm run sync-object-index && npm run sync-format-index && npm run sync-module-registry && npm run sync-part-tier2-adapter && npm run sync-partdesign-tier2-adapter && npm run sync-sketcher-tier2-adapter && npm run sync-techdraw-tier2-adapter && npm run sync-import-tier2-adapter && npm run sync-mesh-tier2-adapter && npm run sync-material-tier1-adapter && npm run sync-tier2-remainder && npm run sync-tier3-stateful && npm run sync-viewprovider-index && npm run sync-property-index && npm run sync-geometry-index && npm run sync-document-graph-index && npm run sync-capability-index && npm run sync-tier1-readonly && npm run sync-tier4-restricted && npm run sync-api-adapter-fill && npm run sync-format-extensions && npm run sync-kernel && npm run sync-release-manifest && tsc --noEmit && vite build",
|
||||
|
||||
Reference in New Issue
Block a user