mirror of
https://github.com/brunopostle/ifcurl.git
synced 2026-07-12 02:08:13 +00:00
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>
20 lines
415 B
JSON
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"
|
|
}
|
|
}
|