forked from ngageoint/opensphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
310 lines (310 loc) · 12.4 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
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
{
"name": "opensphere",
"version": "0.0.0-development",
"description": "OpenSphere is a pluggable GIS web application that supports both 2D and 3D views.",
"main": "index.js",
"directories": {
"src": "src",
"test": "test",
"externs": "externs",
"onboarding": "onboarding",
"scss": "scss",
"views": "views"
},
"build": {
"config": "config/settings.json",
"gcc-src": [
"src/**.js"
],
"type": "app",
"pluggable": true,
"index": "index.js",
"scss": "scss/opensphere.scss",
"themes": [
"overrides_default_compact",
"overrides_default_compact_cb_rg",
"overrides_default_compact_cb_b",
"overrides_slate_compact",
"overrides_slate_compact_cb_rg",
"overrides_slate_compact_cb_b"
],
"defineRoots": {
"ROOT": "./"
},
"gcc": {
"language_in": "ECMASCRIPT_2015",
"conformance_configs": "conformance_config.textproto",
"externs": [
"google-closure-compiler/contrib/externs/jquery-1.9.js",
"google-closure-compiler/contrib/externs/angular-1.5-http-promise_templated.js",
"google-closure-compiler/contrib/externs/angular-1.5-resource.js",
"google-closure-compiler/contrib/externs/angular-1.5-q_templated.js",
"google-closure-compiler/contrib/externs/svg.js",
"openlayers/src/ol/typedefs.js",
"openlayers/externs/closure-compiler.js",
"openlayers/externs/geojson.js",
"openlayers/externs/oli.js",
"openlayers/externs/olx.js",
"openlayers/externs/proj4js.js",
"openlayers/externs/topojson.js",
"ol-cesium/externs/olcsx.js"
],
"entry_point": [
"goog:osmain"
],
"extra_annotation_name": [
"api",
"observable"
],
"define": [
"os.SETTINGS=config/settings.json"
],
"hide_warnings_for": [
".build/",
"/google-closure-library/",
"/openlayers/",
"/ol-cesium/"
]
},
"moduleDefines": {
"os.file.ZIP_PATH": "zip-js/WebContent",
"plugin.cesium.LIBRARY_BASE_PATH": "cesium/Build/CesiumUnminified"
}
},
"scripts": {
"apidoc": "npm run compile:resolve && npm run compile:gcc && npm run compile:dossier",
"guide": "make -C docs clean html",
"guide:auto": "sphinx-autobuild docs docs/_build/html",
"genlibs": "npm run gen:modernizr && npm run gen:xmllexer",
"gen:modernizr": "modernizr -c modernizr.config.json -u -d .build/modernizr.js",
"gen:xmllexer": "globalify xml-lexer -o .build/xml-lexer.min.js",
"test:gcc": "os-compile .build/gcc-test-args.json",
"test:init": "npm run genlibs && npm run compile:resolve -- --exclude resources scss && npm run test:gcc",
"test:debug": "karma start --browsers Chrome --reporters dots",
"test:run": "karma start --single-run",
"test": "npm run test:init && npm run test:run",
"test:cypress": "bash cypress/support/execute-tests.sh dev gui",
"test:cypress-all": "bash cypress/support/execute-tests.sh dev cli all",
"test:cypress-smoke": "bash cypress/support/execute-tests.sh dev cli smoke",
"test:cypress-spec": "bash cypress/support/execute-tests.sh dev cli spec $1",
"init:apidoc": "rimraf .build/*.conf.json dist/apidoc && mkdirp .build dist/apidoc",
"init:base": "rimraf .build dist && mkdirp .build dist/opensphere",
"init:debug": "rimraf index.html",
"init:version": "echo dist/opensphere/v$(date +%s) > .build/version; cat .build/version",
"init:vfolder": "mkdirp $(cat .build/version)",
"init": "npm run init:base && npm run init:debug && npm run init:version && npm run init:vfolder",
"lint:css": "sass-lint -v -s scss -i 'scss/nolint/**/*.scss' 'scss/**/*.scss'",
"lint:js": "eslint --cache 'src/**/*.js' 'cypress/**/*.js' 'tasks/**/*.js'",
"lint": "npm run lint:js && npm run lint:css",
"compile:dossier": "npm run init:apidoc && os-docs-gen-config dossier.conf.json .build/dossier.conf.json && os-docs -c .build/dossier.conf.json",
"precompile:resolve": "cp addlayer.js .build",
"compile:resolve": "os-resolve --outputDir .build --defineRoots $(cat .build/version)",
"postcompile:resolve": "scripts/addlayer-replace.js",
"compile:debugcss": "for i in $(ls .build/themes -1 | grep node-sass-args); do node-sass --source-map true -o .build/themes --output-style expanded $(cat .build/themes/$i) & pids=\"$pids $!\"; done; wait $pids; npm run postcompile:debugcss",
"postcompile:debugcss": "for i in $(ls .build/themes -1 | grep combined.css | grep -v combined.css.map); do postcss .build/themes/$i --no-map -u autoprefixer -r & pids=\"$pids $!\"; done; wait $pids",
"minify:css": "for i in $(ls .build/themes -1 | grep combined.css | grep -v combined.css.map); do cleancss --output .build/themes/$(echo $i | sed 's/combined/min/') .build/themes/$i & pids=\"$pids $!\"; done; wait $pids",
"compile:css": "npm run compile:debugcss; npm run minify:css;",
"compile:gcc": "os-compile .build/gcc-args.json",
"compile:vendor-min": "node vendor-min",
"postcompile:gcc": "echo \"//# sourceMappingURL=$(pwd)/.build/opensphere.min.map\" >> .build/opensphere.min.js",
"compile": "npm run compile:vendor-min && npm run compile:resolve && npm run compile:gcc && npm run compile:css",
"precopy:files": "mkdirp $(cat .build/version)/styles && mkdirp $(cat .build/version)/styles/themes && mkdirp dist/opensphere/test",
"precopy:views": "mkdirp $(cat .build/version)/views",
"precopy:config": "mkdirp dist/opensphere/config",
"precopy:resources": "xargs -n 1 mkdir -p < .build/resources-copy-dirs",
"precopy:onboarding": "mkdirp $(cat .build/version)/onboarding",
"copy:files": "cp .build/opensphere.min.* $(cat .build/version) && cp .build/themes/*.min.css $(cat .build/version)/styles/themes",
"copy:images": "cp -r images $(cat .build/version)/images",
"copy:onboarding": "xargs -n 1 -I @ sh -c 'cp -rf @ $(cat .build/version)/onboarding/.' < .build/copy-onboarding-args",
"copy:views": "xargs -n 1 -I @ sh -c 'cp -rf @ $(cat .build/version)/views/.' < .build/copy-views-args",
"copy:config": "cp .build/settings.json dist/opensphere/config",
"copy:resources": "xargs -n 2 cp -r < .build/resources-copy-files",
"copy": "npm run copy:files && npm run copy:images && npm run copy:onboarding && npm run copy:views && npm run copy:config && npm run copy:resources",
"rename": "find dist -type f | xargs perl -pi -e \"s#{APP}#$(json admin.about.application < .build/settings.json)#g\"",
"build": "npm run init && npm run lint && npm run genlibs && npm run compile && npm run copy && npm run build:index && npm run rename",
"build:nolint": "npm run init && npm run genlibs && npm run compile && npm run copy && npm run build:index && npm run rename",
"build:debug": "npm run init && npm run genlibs && npm run compile:resolve && npm run compile:debugcss && npm run build:debugindex",
"build:index": "xargs -n 1 os-index < .build/resources-pages",
"build:debugindex": "xargs -n 1 os-index --debug < .build/resources-pages",
"build:xt": "mkdirp .build dist/opensphere; tasks/xt/build.js; cp src/os/xt/xt-example.html dist/opensphere",
"package:update": "if git diff --name-only ORIG_HEAD HEAD | grep --quiet package.json; then echo 'UPDATE: package.json was updated, consider running yarn in your workspace root'; fi",
"perms": "chmod -R u+rwX,go+rX,go-w .",
"semantic-release": "semantic-release --dry-run",
"start-server": "http-server ../../ -p 8282 -c-1 -o -U -s &",
"stop-server": "pkill -f http-server"
},
"keywords": [
"geospatial",
"geo",
"gis",
"map",
"mapping",
"closure"
],
"author": "William Wall <[email protected]>",
"maintainers": [
"William Wall <[email protected]>",
"Kevin Schmidt <[email protected]>",
"Jeremy Salankey <[email protected]>"
],
"contributors": [
"Claudia Bowman",
"Brian Riedinger",
"Brice Landry",
"Jessica Denning",
"Devon Raehal",
"Doug Welch",
"Ryan Fox",
"Greg Royal",
"Jason Stiles",
"Jeremy Salankey",
"Jessica Finnessy",
"Kevin Schmidt",
"Kurtis Golding",
"Marx Thompson",
"Michael Dougherty",
"Noah Solomon",
"Rebecca Buss",
"Robert St. John",
"Sean Tyler",
"Thomas Hildesheim",
"William Wall"
],
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/ngageoint/opensphere.git"
},
"engines": {
"node": ">=8.0.0"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
},
"validate-commit-msg": {
"helpMessage": "\nPlease fix your commit message (consider using 'npm i -g commitizen'). Well-formatted commit messages allow us to automate our changelog.\n\nExamples:\n\"fix(states): Fixed bug when parsing opacity from state files\"\n\"feat(timeline): Added support for an arbitrary number of ranges\"\n\nIf you have installed commitizen, try running 'git cz'."
}
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
["@semantic-release/release-notes-generator", {
"parserOpts": {
"issuePrefixes": ["#", "THIN-", "thin-"]
}
}],
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
["@semantic-release/git", {
"assets": [
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
"@semantic-release/npm",
"@semantic-release/github"
]
},
"browserslist": [
"last 1 major version",
">= 1%",
"Chrome >= 35",
"Firefox >= 31"
],
"devDependencies": {
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/condition-travis": "^7.1.3",
"@semantic-release/git": "^7.0.8",
"@semantic-release/github": "^5.2.10",
"@semantic-release/npm": "^5.1.4",
"@semantic-release/release-notes-generator": "^7.1.4",
"angular-mocks": "~1.5.x",
"autoprefixer": "^8.4.1",
"clean-css-cli": "^4.1.11",
"conventional-changelog-cli": "^1.2.0",
"conventional-recommended-bump": "^0.3.0",
"cypress": "^3.1.5",
"cypress-image-snapshot": "^3.0.1",
"cz-conventional-changelog": "^1.2.0",
"eslint": "^6.0.0",
"eslint-config-google": "^0.13.0",
"eslint-config-opensphere": "^3.0.0",
"eslint-plugin-google-camelcase": "^0.0.2",
"eslint-plugin-jsdoc": "^8.6.0",
"eslint-plugin-opensphere": "^2.0.0",
"globalify": "^1.1.0",
"google-closure-compiler": "^20190415.0.0",
"http-server": "^0.11.1",
"husky": "^1.3.1",
"js-dossier": "^0.12.0",
"json": "^9.0.4",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.1.1",
"karma-firefox-launcher": "^1.1.0",
"karma-jasmine": "^0.1.0",
"karma-junit-reporter": "^1.1.0",
"lolex": "=2.3.2",
"mkdirp": "^0.5.1",
"node-sass": "^4.12.0",
"opensphere-build-closure-helper": "^3.0.0",
"opensphere-build-docs": "^1.0.0",
"opensphere-build-index": "^1.0.0",
"opensphere-build-resolver": "^5.2.0",
"opensphere-state-schema": "^2.3.0",
"postcss-cli": "^5.0.0",
"rimraf": "^2.5.4",
"sass-lint": "^1.12.1",
"semantic-release": "^15.13.18",
"surge": "^0.20.4",
"validate-commit-msg": "^2.8.2",
"xmllint": "^0.1.1"
},
"dependencies": {
"angular": "~1.5.x",
"angular-animate": "~1.5.x",
"angular-route": "~1.5.x",
"angular-sanitize": "~1.5.x",
"blob-polyfill": "^2.0.20171115",
"bootstrap": "4.3.1",
"bootswatch": "4.3.1",
"cesium": "1.49.0",
"compass-mixins": "^0.12.10",
"crossfilter2": "^1.4.5",
"d3": "^3.5.17",
"d3-tip": "=0.6.8",
"file-saver": "^1.3.8",
"font-awesome": "^4.6.3",
"google-closure-library": "^20190415.0.0",
"html2canvas": "^1.0.0-alpha.12",
"jquery": "^3.4.1",
"js-polyfills": "^0.1.42",
"jschardet": "^1.6.0",
"jsts": "^1.5.0",
"modernizr": "~3.3.x",
"moment": "~2.20.1",
"navigator.sendbeacon": "~0.0.x",
"oboe": "^2.1.5",
"ol-cesium": "=1.37.0",
"openlayers": "=4.6.4",
"opensphere-asm": "^1.0.0",
"papaparse": "~4.2.0",
"platform": "~1.3.4",
"proj4": "^2.3.17",
"save-svg-as-png": "=1.3.2",
"select2": "^3.5.1",
"suncalc": "^1.8.0",
"text-encoding": "^0.6.4",
"tui-editor": "=1.4.1",
"zip-js": "^0.0.2"
},
"husky": {
"hooks": {
"commit-msg": "validate-commit-msg",
"post-merge": "npm run package:update",
"post-rewrite": "npm run package:update"
}
}
}