-
-
Notifications
You must be signed in to change notification settings - Fork 548
/
package.json
130 lines (130 loc) · 3.92 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
{
"name": "online-3d-viewer",
"version": "0.15.0",
"description": "Online 3D Viewer",
"license": "MIT",
"type": "module",
"main": "./build/engine/o3dv.module.js",
"repository": "github:kovacsv/Online3DViewer",
"keywords": [
"3d",
"viewer",
"cad",
"3dm",
"3ds",
"3mf",
"amf",
"bim",
"brep",
"dae",
"fbx",
"fcstd",
"gltf",
"ifc",
"iges",
"step",
"stl",
"obj",
"off",
"ply",
"wrl"
],
"files": [
"build/engine/o3dv.min.js",
"build/engine/o3dv.module.js",
"build/engine/o3dv.module.d.ts",
"source/engine/*",
"website/assets/envmaps/*"
],
"scripts": {
"start": "npm run build_website_dev && http-server",
"test": "mocha test",
"lint": "eslint source",
"lint_fix": "eslint source --fix",
"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 && npm run build_engine_module && npm run build_website && run-python3 tools/create_package.py",
"create_package_test": "npm run generate_docs && npm run build_engine && npm run build_engine_module && npm run build_website && run-python3 tools/create_package.py test",
"generate_docs": "run-python3 tools/generate_docs.py",
"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/engine_dev/o3dv.min.js",
"build_engine": "npm run update_engine_exports && esbuild source/engine/main.js --bundle --minify --global-name=OV --outfile=build/engine/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 --loader:.ttf=file --loader:.woff=file --loader:.svg=file --outfile=build/website_dev/o3dv.website.min.js",
"build_website": "esbuild source/website/index.js --bundle --minify --global-name=OV --loader:.ttf=file --loader:.woff=file --loader:.svg=file --outfile=build/website/o3dv.website.min.js",
"update_engine_exports": "run-python3 tools/update_engine_exports.py"
},
"devDependencies": {
"@types/node": "^20.1.0",
"esbuild": "^0.20.0",
"eslint": "^8.29.0",
"eslint-plugin-unused-imports": "^3.0.0",
"fantasticon": "^1.2.2",
"http-server": "^14.0.0",
"jsdoc": "^4.0.0",
"mocha": "^10.2.0",
"oslllo-svg-fixer": "^3.0.0",
"rollup": "^4.0.2",
"run-python3": "^0.0.5",
"svgo": "^3.0.2",
"typescript": "^5.0.4",
"web-ifc": "0.0.44"
},
"dependencies": {
"@simonwep/pickr": "1.9.0",
"fflate": "0.8.2",
"three": "0.163.0"
},
"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"
}
}
}