ifcurl/forgejo/package.json
Bruno Postle d60bd044dd forgejo: add JS unit tests, extract pure functions into viewer-util.js
Extract parseCommitHref, isSimpleTypeSelector, subtractIdMap, and
isCommitHash into a new viewer-util.js ES module so they can be tested
without a browser. Convert ifcurl.js from an IIFE to an ES module
importing from viewer-util.js; update footer.tmpl to type="module".

Add node:test suites for viewer-url.js (32 tests) and viewer-util.js
(28 tests). Add npm test script and document it in the build section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 20:24:58 +01:00

20 lines
415 B
JSON

{
"name": "ifcurl-viewer",
"private": true,
"type": "module",
"scripts": {
"build": "node build.js",
"test": "node --test tests/*.test.js"
},
"dependencies": {
"@thatopen/components": "3.4.2",
"@thatopen/fragments": "3.4.3",
"camera-controls": "3.1.2",
"jszip": "3.10.1",
"three": "0.184.0",
"web-ifc": "0.0.77"
},
"devDependencies": {
"esbuild": "^0.25.0"
}
}