forked from QuimMoya/web-ifc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
68 lines (68 loc) · 3.02 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"name": "web-ifc",
"version": "0.0.24",
"description": "ifc loading on the web",
"main": "web-ifc-api.js",
"watch": {
"build-viewer": {
"patterns": [
"./examples/viewer"
],
"extensions": "ts"
},
"build-web-ifc-api-mjs": {
"patterns": [
"./src"
],
"extensions": "ts"
}
},
"pckg-gui": {},
"scripts": {
"gen-schema": "cd src/schema && node gen.js",
"setup-env": "emsdk_env",
"build-release": "npm run build-wasm-release && npm run build-api",
"build-debug": "npm run build-wasm-debug && npm run build-api",
"release_publish": "npm run build-release && cd dist && npm publish",
"build-wasm-debug": "em++ --bind -O3 -gsource-map -std=c++17 --source-map-base http://localhost:5000/web-ifc-js/wasm-lib/ -flto -fno-exceptions ./src/wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s ASSERTIONS=1 -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -s EXPORTED_RUNTIME_METHODS=[\"FS\"] -O3 -o dist/web-ifc.js",
"build-wasm-release": "em++ --bind -O3 -std=c++17 -flto -fno-exceptions ./src/wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -s EXPORTED_RUNTIME_METHODS=[\"FS\"] -O3 -o dist/web-ifc.js",
"build-api": "cpy src/*.ts dist && npm run build-ts-api && npm run build-web-ifc-api-mjs && npm run build-web-ifc-api-node && npm run copy-to-dist",
"build-ts-api": "tsc --emitDeclarationOnly && cpy dist/web-ifc-api.d.ts dist && cpy dist/web-ifc-api.d.ts dist --rename=web-ifc-api-node.d.ts",
"build-web-ifc-api-mjs": "esbuild dist/web-ifc-api.ts --bundle --format=esm --external:path --external:fs --outfile=./dist/web-ifc-api.js",
"build-web-ifc-api-node": "esbuild dist/web-ifc-api.ts --bundle --platform=node --outfile=./dist/web-ifc-api-node.js",
"copy-to-dist": "cpy README.md dist && cpy package.json dist && cpy src/ifc2x4.ts dist",
"build-viewer": "npm run bundle-viewer && npm run copy-wasm-viewer",
"bundle-viewer": "esbuild ./examples/viewer/web-ifc-viewer.ts --bundle --platform=node --outfile=./examples/viewer/web-ifc-viewer.js",
"copy-wasm-viewer": "cpy dist/web-ifc.wasm examples/viewer/wasm",
"serve-viewer": "serve examples/viewer",
"dev": "concurrently --kill-others \"npm-watch\" \"npm run serve-viewer\"",
"docker-build": "docker build -t web-ifc .",
"docker-run": "docker run --rm -p 3000:5000 --name web-ifc-container web-ifc"
},
"author": "tomvandig",
"files": [
"web-ifc.wasm",
"web-ifc-api-node.js",
"web-ifc-api-node.d.ts",
"web-ifc-api.js",
"web-ifc-api.d.ts",
"ifc2x4.d.ts",
"ifc2x4_helper.d.ts"
],
"devDependencies": {
"@types/three": "^0.130.1",
"concurrently": "^6.2.0",
"cpy-cli": "^3.1.1",
"esbuild": "^0.12.15",
"npm-watch": "^0.10.0",
"serve": "^12.0.0",
"three": "^0.130.1",
"typescript": "^4.3.5",
"monaco-editor": "^0.26.1"
},
"browser": {
"crypto": false,
"path": false,
"fs": false
}
}