-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathpackage.json
More file actions
199 lines (199 loc) · 8.9 KB
/
package.json
File metadata and controls
199 lines (199 loc) · 8.9 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"name": "geojs",
"version": "0.0.0-semantically-released",
"description": "JavaScript Geo Visualization and Analysis Library",
"homepage": "https://github.com/OpenGeoscience/geojs",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/OpenGeoscience/geojs/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/OpenGeoscience/geojs"
},
"dependencies": {
"@velipso/polybool": "^2.0.11",
"canvas": "^3.0.0",
"color-name": "^2.0.0",
"docdash": "^2.0.1",
"earcut": "^3.0.0",
"gl-mat3": "^2.0.0",
"gl-mat4": "^1.2.0",
"gl-vec3": "^1.1.3",
"gl-vec4": "^1.0.1",
"jquery": "^4.0.0",
"kdbush": "^4.0.0",
"mousetrap": "^1.6.5",
"proj4": "^2.7.5"
},
"optionalDependencies": {
"@egjs/hammerjs": "^2.0.8",
"d3": "^7.8.5",
"glslang-validator-prebuilt-predownloaded": "^0.0.2",
"vtk.js": "*"
},
"devDependencies": {
"@babel/core": "^7.17.0",
"@babel/plugin-proposal-class-properties": "^7.16.5",
"@babel/preset-env": "^7.16.5",
"@fontsource/lato": "^5.1.1",
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
"@playwright/test": "^1.52.0",
"@stylistic/stylelint-plugin": "^5.0.1",
"acorn": "^8.15.0",
"babel-loader": "^10.0.0",
"babel-plugin-istanbul": "^7.0.0",
"bootstrap": "^5.0.0",
"bootswatch": "^5.0.0",
"codemirror": "^5.65.0",
"colorbrewer": "^1.6.0",
"css-loader": "^7.1.0",
"docco": "^0.9.1",
"eslint": "^9.25.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^62.0.0",
"eslint-plugin-n": "^17.17.0",
"eslint-plugin-promise": "^7.2.1",
"expose-loader": "^5.0.0",
"express": "^5.1.0",
"fs-extra": "^11.0.0",
"glob": "^13.0.0",
"globals": "^17.0.0",
"imports-loader": "^5.0.0",
"istanbul-lib-coverage": "^3.2.0",
"istanbul-lib-report": "^3.0.1",
"istanbul-reports": "^3.1.6",
"jasmine-core": "^6.1.0",
"js-yaml": "^4.1.0",
"jsdoc": "^4.0.0",
"jsonlint-mod": "^1.7.6",
"jstransformer-markdown-it": "^3.0.0",
"looks-same": "^10.0.1",
"neostandard": "^0.13.0",
"nib": "^1.1.2",
"nise": "^6.1.3",
"npm-run-all": "^4.1.5",
"pako": "^2.0.4",
"postcss-styl": "^0.12.3",
"process": "^0.11.10",
"pug": "^3.0.2",
"pug-lint": "^2.6.0",
"pug-load": "^3.0.0",
"raw-body": "^3.0.0",
"serve-index": "^1.9.1",
"shader-loader": "git+https://github.com/Makio64/shader-loader",
"sinon": "^21.0.0",
"style-loader": "^4.0.0",
"stylelint": "^17.4.0",
"stylelint-config-standard": "^40.0.0",
"stylus": "^0.64.0",
"stylus-loader": "^8.0.0",
"swc-minify-webpack-plugin": "^2.1.3",
"tar": "^7.4.3",
"terser-webpack-plugin": "^5.3.1",
"touch-emulator": "^1.0.0",
"webpack": "^5.68.0",
"webpack-cli": "^7.0.0",
"webpack-merge": "^6.0.1",
"webpack-string-replacer": "^0.0.20"
},
"overrides": {
"jstransformer-markdown-it": {
"markdown-it": "^14.0.0"
},
"terser-webpack-plugin": {
"serialize-javascript": "^7.0.3"
},
"vtk.js": {
"xmlbuilder2": "^4.0.0"
}
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/built/geo.js",
"label": "Full JS distribution (geo.js)"
},
{
"path": "dist/built/geo.min.js",
"label": "Minified JS distribution (geo.min.js)"
},
{
"path": "dist/built/geo.lean.js",
"label": "Lean JS distribution (geo.lean.js)"
},
{
"path": "dist/built/geo.lean.min.js",
"label": "Lean minified JS distribution (geo.lean.min.js)"
}
]
}
]
]
},
"scripts": {
"build": "npm-run-all -p build-full build-lean",
"build-full": "webpack --config webpack.config.js",
"build-lean": "webpack --config webpack-lean.config.js",
"build-examples": "node examples/build.js && webpack --config webpack-examples.config.js",
"build-website-examples": "node examples/build-website.js && webpack --config webpack-website-examples.config.js",
"build-tutorials": "node tutorials/build.js && webpack --config webpack-tutorials.config.js",
"build-website-tutorials": "node tutorials/build-website.js && webpack --config webpack-website-tutorials.config.js",
"lint": "eslint --cache . --max-warnings=0 && stylelint **/*.styl",
"format": "eslint --cache --fix . && stylelint **/*.styl --fix",
"puglint": "pug-lint src examples",
"stylelint": "stylelint **/*.styl",
"glsllint": "chmod +x node_modules/glslang-validator-prebuilt-predownloaded/bin/glslangValidator.linux; find . \\( -name '*.frag' \\) -exec sh -c 'for n; do python scripts/preprocess_glsl.py \"$n\" | node_modules/glslang-validator-prebuilt-predownloaded/bin/glslangValidator.linux --stdin -S frag || exit 1; done' sh {} \\+ && find . \\( -name '*.vert' \\) -exec sh -c 'for n; do python scripts/preprocess_glsl.py \"$n\" | node_modules/glslang-validator-prebuilt-predownloaded/bin/glslangValidator.linux --stdin -S vert || exit 1; done' sh {} \\+",
"test-headless": "GEOJS_TEST_CASE=tests/test-unit.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium,firefox node tests/run-tests.js",
"test-headless-all": "GEOJS_TEST_CASE=tests/test-unit.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium,firefox node tests/run-tests.js",
"test-headed": "GEOJS_TEST_CASE=tests/test-headed.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium-headed node tests/run-tests.js",
"tets-headed-all": "GEOJS_TEST_CASE=tests/test-headed.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium-headed,firefox-headed node tests/run-tests.js",
"test-headed-xvfb": "GEOJS_TEST_CASE=tests/test-headed.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium-headed xvfb-run -s '-ac -screen 0 1280x1024x24' node tests/run-tests.js",
"test-webglheadless": "GEOJS_TEST_CASE=tests/test-gl.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium node tests/run-tests.js",
"test-webglheadless-all": "GEOJS_TEST_CASE=tests/test-gl.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium,firefox node tests/run-tests.js",
"test-tutorials": "GEOJS_TEST_CASE=tests/tutorials.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium node tests/run-tests.js",
"test-tutorialsci-all": "GEOJS_TEST_CASE=tests/tutorials.js GEOJS_COVERAGE=true GEOJS_BROWSERS=chromium,firefox node tests/run-tests.js",
"get-data-files": "node scripts/datastore.js dist/data",
"ci-clean": "git clean -fxd dist -e dist/data jsdoc/tmpl jsdoc/static images lcov",
"ci": "npm-run-all ci-build ci-test",
"ci-build": "npm-run-all -c -p build-full build-lean docs get-data-files lint puglint glsllint stylelint build-examples build-tutorials",
"ci-test": "npm-run-all test-headless test-webglheadless test-headed test-tutorials",
"ci-xvfb": "npm-run-all ci-clean ci-build && TEST_SAVE_IMAGE='all' xvfb-run -s '-ac -screen 0 1280x1024x24' npm run ci-test",
"start": "GEOJS_TEST_CASE=tests/all.js node tests/run-tests.js",
"examples": "npm-run-all -p build-examples build-tutorials && node ./tests/runners/server.js --host \"${HOST-}\" --port ${PORT-8082} --dist",
"docs": "jsdoc --pedantic -d dist/apidocs -r src package.json -c jsdoc.conf.json",
"website": "cd website && npx hexo server",
"setup-website": "cd website && npm install",
"build-website": "npm-run-all ci-build ci-build-website",
"ci-build-website": "cp -a dist/built/. website/source/built && bash -c '(npm run build-website-examples & npm run build-website-tutorials & wait -n && wait -n)' && cd dist && cp -ar data ../website/source/. && rm -rf ../website/source/data/tiles && rm -rf ../website/source/data/tiles.tgz && rm -rf ../website/source/data/base-images && rm -rf ../website/source/data/base-images.tgz && cp -ar apidocs/. ../website/source/apidocs && cd ../website && npm install && rm -f db.json && npx hexo generate",
"validate-es5": "node -e \"const fs=require('fs'),acorn=require('acorn');fs.readdirSync('dist/built').forEach(f=>{if(f.match(/^geo\\\\.lean.*\\.js$/)){try{acorn.parse(fs.readFileSync('dist/built/'+f,'utf8'),{ecmaVersion:5})}catch(e){console.error('ES5 syntax error in dist/built/'+f+':',e.message);process.exit(1)}}});console.log('All files in dist/built pass ES5 syntax check.')\"",
"install-test-browsers": "npx playwright install chromium firefox",
"prepublishOnly": "npm run build && cp dist/built/*.js .",
"semantic-release": "semantic-release"
},
"stylelint": {
"extends": [
"stylelint-config-standard",
"@stylistic/stylelint-plugin"
],
"customSyntax": "postcss-styl",
"rules": {
"declaration-property-value-no-unknown": null,
"import-notation": null
}
},
"keywords": [
"map",
"gis",
"webgl",
"svg"
],
"main": "geo.lean.js"
}