1.2 KiB
1.2 KiB
Split area build orchestration implementation plan
- Extract vehicle route helpers into
vehicle-route.js; add unit coverage using fixture OSM. - Extract vehicle glTF builder into
vehicle-model.js; assert schema, mesh/material counts and data URI. - Extract preview support-file copy, HTML template, escaping and summary into
area-preview.js. - Replace
build-area.jsbodies with imports/calls while preserving preview manifest ownership and ordering. - Run Node syntax/unit tests, then only the nantaizi
preview, diagnose and quality gate commands. - Update pipeline/preview specs and changelog; inspect diff for accidental stage or output changes.
Validation
node --check scripts/build-area.jsnode --check scripts/lib/vehicle-route.jsnode --check scripts/lib/vehicle-model.jsnode --check scripts/lib/area-preview.jsnpm run test:preview-assetsnpm run build:area -- --config config/areas/nantaizi-lake-innovation-valley.json --stages previewnpm run diagnose:area -- --config config/areas/nantaizi-lake-innovation-valley.jsonnpm run check:area -- --config config/areas/nantaizi-lake-innovation-valley.jsongit diff --check