-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
95 lines (95 loc) · 2.97 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
{
"name": "online-3d-viewer",
"description": "Online 3D Viewer",
"version": "0.8.5",
"repository": "github:kovacsv/Online3DViewer",
"license": "MIT",
"type": "module",
"devDependencies": {
"clean-css-cli": "^5.5.0",
"docdash": "^1.2.0",
"esbuild": "^0.14.11",
"eslint": "^8.5.0",
"eslint-plugin-unused-imports": "^2.0.0",
"fantasticon": "^1.2.2",
"http-server": "^14.0.0",
"jsdoc": "^3.6.7",
"mocha": "^9.1.3",
"oslllo-svg-fixer": "^1.4.0",
"svgo": "^2.3.1"
},
"scripts": {
"start": "http-server",
"test": "mocha test",
"lint": "eslint source",
"docs": "jsdoc -c tools/jsdoc.json",
"generate_icon_font": "node tools/run_python.js tools/generate_icon_font.py",
"update_engine_exports": "node tools/run_python.js tools/update_engine_exports.py",
"create_dist": "npm run create_package && npm run lint && npm run test",
"create_package": "npm run build_engine_prod && npm run build_website_prod && npm run build_css_prod && node tools/run_python.js tools/create_package.py",
"build_dev": "npm run build_engine_dev && npm run build_website_dev",
"build_css_prod": "cleancss -o build/o3dv.website.min.css website/css/*",
"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_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"
},
"dependencies": {
"@simonwep/pickr": "1.8.2",
"draco3d": "1.5.0",
"fflate": "0.7.2",
"rhino3dm": "7.11.1",
"three": "0.136.0",
"web-ifc": "0.0.32"
},
"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"
},
"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"
}
}
}