feat: GPL backend self-provisions example libs + standalone port override

Port the KiCad symbol/footprint brace-scanner parsers + a combined extractor
into web/backend/src/extract/; ensure-example-libs blobless/sparse-clones a
curated KiCad 10.0.3 slice and extracts to a gitignored .libs/ on dev/start, so
a bare GPL clone has libraries with no closed repo present. libsConfig() defaults
LIBS_DIR to ./.libs. vite honors STANDALONE_PORT (strictPort) so a second editor
can run on :3049 alongside the closed stack.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Gergő Törcsvári 2026-06-15 11:12:56 +02:00
commit c2e1214fd1
No known key found for this signature in database
GPG key ID: 8E75F2CDE64E5322
10 changed files with 687 additions and 7 deletions

View file

@ -4,8 +4,10 @@
"private": true,
"type": "module",
"scripts": {
"dev": "tsx watch src/server.ts",
"start": "tsx src/server.ts",
"dev": "tsx src/extract/ensure-example-libs.ts && tsx watch src/server.ts",
"start": "tsx src/extract/ensure-example-libs.ts && tsx src/server.ts",
"ensure-libs": "tsx src/extract/ensure-example-libs.ts",
"extract-libs": "tsx src/extract/extract-libs.ts",
"build": "tsc -p tsconfig.json --noEmit false --declaration false --outDir dist",
"typecheck": "tsc --noEmit"
},