forked from ThatOpen/engine_web-ifc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
84 lines (84 loc) · 4.75 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "web-ifc",
"version": "0.0.52",
"description": "ifc loading on the web",
"module": "./web-ifc-api.js",
"main": "./web-ifc-api-node.js",
"exports": {
".": {
"require": "./web-ifc-api-node.js",
"node": "./web-ifc-api-node.js",
"import": "./web-ifc-api.js",
"browser": "./web-ifc-api.js"
}
},
"pckg-gui": {},
"scripts": {
"gen-schema": "cd src/schema-generator && ts-node gen_functional_types.ts",
"setup-env": "emsdk_env",
"setup-mingw": "mingw-get instal msys-make gettext",
"build-release": "npm run build-wasm-release && npm run build-api && npm run build-cleanup",
"build-cleanup": "rimraf dist/helpers/log.ts && rimraf dist/helpers/properties.ts && rimraf dist/web-ifc-api.ts && rimraf dist/ifc-schema.ts",
"build-debug": "npm run build-wasm-debug && npm run build-api",
"publish-repo": "npm run set-version && cd dist && npm publish",
"build-publish-repo": "npm run build-release && cpy ./npmrc ./dist/ --rename=.npmrc && cd dist && npm publish",
"copy-to-dist": "make-dir dist && cpy \"src/cpp/build_wasm/*.js\" dist && cpy \"src/cpp/build_wasm/*.wasm\" dist ",
"copy-debug-to-dist": "make-dir dist && cpy \"src/cpp/build_wasm_debug/*.js\" dist && cpy \"src/cpp/build_wasm_debug/*.wasm\" dist ",
"build-wasm-debug": "make-dir src/cpp/build_wasm_debug && cd src/cpp/build_wasm_debug && emcmake cmake .. -DEMSCRIPTEN=true -DCMAKE_BUILD_TYPE=Debug && emmake make && npm run copy-debug-to-dist",
"build-wasm-release": "make-dir src/cpp/build_wasm && cd src/cpp/build_wasm && emcmake cmake .. -DEMSCRIPTEN=true -DCMAKE_BUILD_TYPE=Release && emmake make && npm run copy-to-dist",
"build-api": "make-dir dist/helpers && npm run build-ts-api && npm run build-web-ifc-api-browser && npm run build-web-ifc-api-node && npm run build-web-ifc-api-umd &&cpy README.md dist && cpy package.json dist",
"build-ts-api": "make-dir dist/helpers && cpy \"src/ts/*.ts\" dist && cpy \"src/ts/helpers/*\" dist/helpers --flat && tsc --incremental --emitDeclarationOnly && cpy dist/web-ifc-api.d.ts . --rename=web-ifc-api-node.d.ts",
"build-web-ifc-api-node": "make-dir dist && esbuild dist/web-ifc-api.ts --define:__WASM_PATH__=\\\"./web-ifc-node\\\" --bundle --platform=node --outfile=./dist/web-ifc-api-node.js",
"build-web-ifc-api-browser": "make-dir dist && esbuild dist/web-ifc-api.ts --bundle --format=esm --define:__WASM_PATH__=\\\"./web-ifc\\\" --outfile=./dist/web-ifc-api.js",
"build-web-ifc-api-umd": "make-dir dist && esbuild dist/web-ifc-api.ts --bundle --format=iife --define:__WASM_PATH__=\\\"./web-ifc\\\" --global-name=WebIFC --outfile=./dist/web-ifc-api-umd.js",
"build-viewer": "cd examples/viewer/ && make-dir dist && node makesrc.js && esbuild --bundle web-ifc-viewer.ts --platform=node --outfile=./dist/web-ifc-viewer.js && rimraf ts_src.js && cpy index.html dist && cpy ../../dist/web-ifc.wasm dist/web-ifc.wasm && cpy ../../dist/web-ifc-mt.worker.js dist/web-ifc-mt.worker.js && cpy ../../dist/web-ifc-mt.wasm dist/web-ifc-mt.wasm && cpy ../example.ifc dist/example.ifc",
"dev": "npm run build-viewer && cd examples/viewer/dist && ws -p 8080 --cors.opener-policy same-origin --cors.embedder-policy require-cor",
"docker-build": "docker build -t web-ifc .",
"docker-run": "npm run docker-run-container && npm run docker-get-compiled-files ",
"docker-run-container": "docker run --rm -d -p 3000:5000 --name web-ifc-container web-ifc",
"docker-get-compiled-files": "docker cp web-ifc-container:/web-ifc-app/dist .",
"postversion": "node src/setversion.js",
"benchmark": "ts-node ./tests/benchmark/benchmark.ts",
"regression": "node --max-old-space-size=4096 ./tests/regression/regression.mjs",
"regression-update": "node --max-old-space-size=4096 ./tests/regression/regression.mjs update",
"test": "jest --runInBand ",
"gen-docs": "typedoc --out dist/docs && cpy ./banner.png ./dist/docs",
"usage_example": "cd examples/usage && ts-node index.ts"
},
"author": "web-ifc",
"files": [
"web-ifc.wasm",
"web-ifc-mt.wasm",
"web-ifc-node.wasm",
"web-ifc-api-node.js",
"web-ifc-api-node.d.ts",
"web-ifc-api.js",
"web-ifc-api.d.ts",
"ifc-schema.d.ts",
"helpers/properties.d.ts",
"helpers/log.d.ts",
"web-ifc-mt.worker.js"
],
"devDependencies": {
"@types/jest": "^27.5.2",
"@types/three": "^0.161.2",
"adm-zip": "^0.5.10",
"cpy-cli": "^5.0.0",
"esbuild": "^0.20.0",
"jest": "^27.4.2",
"make-dir-cli": "^3.0.0",
"rimraf": "^5.0.0",
"three": "^0.161.0",
"ts-jest": "^27.0.7",
"ts-node": "^10.9.1",
"typedoc": "^0.25.7",
"typescript": "^4.7.0",
"vblob": "^1.1.0",
"local-web-server": "^5.2.1"
},
"browser": {
"crypto": false,
"path": false,
"fs": false
}
}