forked from kovacsv/Online3DViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
137 lines (137 loc) · 4.1 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "online-3d-viewer",
"version": "0.8.21",
"description": "Online 3D Viewer",
"license": "MIT",
"type": "module",
"main": "./build/o3dv.module.js",
"repository": "github:kovacsv/Online3DViewer",
"keywords": [
"3d",
"viewer",
"cad",
"obj",
"3ds",
"stl",
"ply",
"gltf",
"glb",
"off",
"3dm",
"fbx",
"dae",
"wrl",
"3mf",
"ifc",
"brep",
"step",
"iges",
"fcstd",
"bim"
],
"files": [
"build/o3dv.min.js",
"build/o3dv.module.js",
"build/o3dv.module.d.ts",
"source/engine/*",
"libs/loaders/*",
"website/assets/envmaps/*"
],
"scripts": {
"start": "npm run build_website_dev && http-server",
"test": "mocha test",
"lint": "eslint source",
"lint_fix": "eslint source --fix",
"update_libs": "npm install && run-python3 tools/update_libs.py",
"generate_icon_font": "run-python3 tools/generate_icon_font.py",
"create_dist": "npm run create_package && npm run lint && npm run test",
"create_dist_test": "npm run create_package_test && npm run lint && npm run test",
"create_package": "npm run generate_docs && npm run build_engine_prod && npm run build_engine_module && npm run build_website_prod && npm run build_css_prod && run-python3 tools/create_package.py",
"create_package_test": "npm run generate_docs && npm run build_engine_prod && npm run build_engine_module && npm run build_website_prod && npm run build_css_prod && run-python3 tools/create_package.py test",
"generate_docs": "run-python3 tools/generate_docs.py",
"build_css_prod": "cleancss -o build/o3dv.website.min.css website/css/*",
"build_dev": "npm run build_engine_dev && npm run build_website_dev",
"build_engine_dev": "npm run update_engine_exports && esbuild source/engine/main.js --bundle --minify --global-name=OV --sourcemap --outfile=build/o3dv.min-dev.js",
"build_engine_prod": "npm run update_engine_exports && esbuild source/engine/main.js --bundle --minify --global-name=OV --outfile=build/o3dv.min.js",
"build_engine_module": "npm run update_engine_exports && rollup --config tools/rollup.js && tsc --project tools/tsconfig.json",
"build_website_dev": "esbuild source/website/index.js --bundle --minify --global-name=OV --sourcemap --outfile=build/o3dv.website.min-dev.js",
"build_website_prod": "esbuild source/website/index.js --bundle --minify --global-name=OV --outfile=build/o3dv.website.min.js",
"update_engine_exports": "run-python3 tools/update_engine_exports.py"
},
"devDependencies": {
"clean-css-cli": "^5.6.1",
"esbuild": "^0.17.0",
"eslint": "^8.29.0",
"eslint-plugin-unused-imports": "^2.0.0",
"fantasticon": "^1.2.2",
"http-server": "^14.0.0",
"jsdoc": "^4.0.0",
"mocha": "^10.2.0",
"oslllo-svg-fixer": "^2.2.0",
"rollup": "^3.9.1",
"run-python3": "^0.0.4",
"svgo": "^3.0.2",
"typescript": "^4.9.4"
},
"dependencies": {
"@simonwep/pickr": "1.8.2",
"@types/node": "^18.11.18",
"draco3d": "1.5.5",
"fflate": "0.7.4",
"occt-import-js": "0.0.15",
"rhino3dm": "7.15.0",
"three": "0.149.0",
"web-ifc": "0.0.35"
},
"eslintConfig": {
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"globals": {
"OV": "writable",
"$": "readonly",
"fflate": "readonly",
"Pickr": "readonly",
"THREE": "readonly",
"DracoDecoderModule": "readonly",
"rhino3dm": "readonly",
"WebIFC": "readonly",
"occtimportjs": "readonly"
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"unused-imports"
],
"rules": {
"semi": "error",
"no-var": "error",
"guard-for-in": "error",
"no-new": "error",
"no-new-object": "error",
"no-new-func": "error",
"no-array-constructor": "error",
"no-prototype-builtins": "error",
"no-eval": "error",
"no-useless-escape": "error",
"no-multiple-empty-lines": "error",
"comma-spacing": "error",
"prefer-arrow-callback": "error",
"quotes": [
"error",
"single"
],
"block-scoped-var": "error",
"no-undef": "error",
"no-extend-native": "error",
"eqeqeq": "error",
"no-unused-vars": "off",
"no-use-before-define": "off",
"unused-imports/no-unused-imports": "error"
}
}
}