feat: make road compiler standalone

This commit is contained in:
que01 committed 2026-08-25 17:53:49 +08:00
1 parent aadd45bcad
commit 8e79790261
8 files changed
+588 -2

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
# Road Compiler
Compiles a `native-road-package/v1` `RoadCompilerInput` JSON file into native-road GeoJSON, diagnostics, traffic-signal runtime assets, and a deterministic completion marker.
```bash
npx road-compiler --input /absolute/path/road-compiler.input.json
```
The compiler does not read host area configuration. The caller owns configuration normalization and creates the input JSON. Successful compilation writes exactly one `NATIVE_ROAD_COMPILE_DONE` JSON marker to stdout.
Run `npm test` and `npm run test:road-parity` after `npm ci` to validate the package without the host repository.