← Commit history

Publish 0.12.7

Colby Knox ·44a90859c5 · ·parent 78eaf24
4 files changed +29−58
README.md+20−12
@@ -6,9 +6,9 @@ Babylon 9.5 with the redesigned Inspector v9, built as a versioned ESM bundle that downstream tools vendor (the wiki's native component viewer, chiplinter, and the next wave of Adom 3D apps). -This page is the canonical home: the source lives on the Files tab-(`adom-wiki repo clone adom/adom-3d-viewer`), and each version's-built bundle is attached as a release asset you can pin.+The source lives on GitHub (`adom-inc/adom-3d-viewer-babylon9`). This page+holds the releases: each version's source on the Files tab, and its built+bundle attached as a release asset you can pin.  ## What is in 0.4.x @@ -202,8 +202,8 @@ CORS mode, so the bundle must be served with `Access-Control-Allow-Origin` `npm run test:sandbox` proves all of it in headless Chrome: an https server carrying the wiki's exact widget CSP, an `sandbox="allow-scripts"` iframe, a ready report that says ok, painted chip pixels, then three destroy/recreate-rounds alternating URL and bytes transport. Reads `puppeteer-core` and a-Chrome from `~/.cache/puppeteer` (or `PUPPETEER_EXECUTABLE_PATH`).+rounds alternating URL and bytes transport. Uses the `puppeteer-core` dev+dependency and a Chrome from `PUPPETEER_EXECUTABLE_PATH` or `~/.cache/puppeteer`.  ### Scale @@ -236,12 +236,19 @@ model; it is about 4 MB now (1.4 MB compressed). ## Build from source  ```bash-adom-wiki repo clone adom/adom-3d-viewer-cd adom-3d-viewer-npm install-npx vite build --config vite.standalone.config.ts   # -> dist-standalone/+git clone https://github.com/adom-inc/adom-3d-viewer-babylon9+cd adom-3d-viewer-babylon9+npm ci+npm run build:standalone   # -> dist-standalone/+npm test                   # every test file, in headless Chrome ``` +Every build dependency is a pinned dev dependency (Babylon 9.5.0 throughout),+so a fresh clone builds with nothing else installed. The tests need a Chrome:+set `PUPPETEER_EXECUTABLE_PATH`, or install one into `~/.cache/puppeteer` with+`npx @puppeteer/browsers install chrome@stable`. `npm test` runs every+`test/*.test.mjs` and reports each file; `npm run test:<name>` runs one.+ `npm run build` (plain `vite build`) produces the npm-consumable `dist/` library instead; `dist-standalone/` is the self-contained browser bundle the wiki and release assets ship.@@ -255,6 +262,7 @@ wiki and release assets ship.  ## Development -Source of record is this page's repo. GitHub `adom-inc/adom-3d-viewer-babylon9`-is the working mirror where CI and day-to-day commits happen; each released-version is ported here (source push + package publish + bundle release asset).+Source of record is GitHub `adom-inc/adom-3d-viewer-babylon9`: commits and pull+requests go there, and CI builds and tests every pull request. A `vX.Y.Z` tag+publishes that version here (package, source push, bundle release asset)+through `scripts/release.sh`; see `publish-skills/release/SKILL.md`.
VERSION+1−1
@@ -1 +1 @@-0.12.3+0.12.7
package.json+7−44
@@ -1,50 +1,9 @@ {   "name": "adom-3d-viewer-babylon9",-  "version": "0.12.3",+  "version": "0.12.7",   "description": "The Babylon 9.5 engine behind every component page's 3D tab on wiki.adom.inc. Versioned ESM bundle with GLB loading, view cube, layers toolbar, ground shadows, and Z-up CAD framing.",   "type": "app",-  "main": "./dist/index.js",-  "module": "./dist/index.js",-  "types": "./dist/index.d.ts",-  "exports": {-    ".": {-      "import": "./dist/index.js",-      "types": "./dist/index.d.ts"-    }-  },-  "files": [-    "dist",-    "dist-standalone",-    "src",-    "standalone.ts"-  ],-  "scripts": {-    "build": "vite build",-    "build:standalone": "vite build --config vite.standalone.config.mts",-    "dev": "vite build --watch",-    "prepare": "npm run build",-    "test:sandbox": "node test/wiki-sandbox.test.mjs",-    "test:orbit": "node test/orbit.test.mjs",-    "test": "node test/wiki-sandbox.test.mjs && node test/orbit.test.mjs && node test/viewcube.test.mjs && node test/help.test.mjs && node test/lights.test.mjs && node test/replace.test.mjs && node test/layers.test.mjs && node test/bundle.test.mjs && node test/home-target.test.mjs",-    "test:viewcube": "node test/viewcube.test.mjs",-    "test:help": "node test/help.test.mjs",-    "test:lights": "node test/lights.test.mjs",-    "test:replace": "node test/replace.test.mjs",-    "test:layers": "node test/layers.test.mjs",-    "test:bundle": "node test/bundle.test.mjs",-    "test:home": "node test/home-target.test.mjs"-  },   "dependencies": {},-  "devDependencies": {-    "@sveltejs/vite-plugin-svelte": "^3.1.2",-    "svelte-check": "^3.8.6",-    "terser": "^5.46.2",-    "typescript": "^5.5.4",-    "vite": "^5.4.1"-  },-  "peerDependencies": {-    "svelte": "^4.0.0 || ^5.0.0"-  },   "slug": "adom-3d-viewer",   "license": "MIT",   "tags": [@@ -78,5 +37,9 @@       "prompt": "Download the 0.4.3 viewer bundle so my tool vendors a fixed build"     }   ],-  "title": "Adom 3D Viewer"-}+  "title": "Adom 3D Viewer",+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  }+}\ No newline at end of file
page.json+1−1
@@ -4,7 +4,7 @@   "slug": "adom-3d-viewer",   "title": "Adom 3D Viewer",   "brief": "The Babylon 9.5 engine behind every component page's 3D tab on wiki.adom.inc. Versioned ESM bundle with GLB loading, view cube, layers toolbar, ground shadows, and Z-up CAD framing.",-  "version": "0.12.3",+  "version": "0.12.7",   "tags": [     "3d",     "viewer",