-
Notifications
You must be signed in to change notification settings - Fork 133
/
package.json
322 lines (322 loc) · 13.2 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
311
312
313
314
315
316
317
318
319
320
321
322
{
"name": "digitransit-ui",
"version": "0.0.1",
"description": "Digitransit UI - open nationwide journey planning platform",
"author": "[email protected]",
"license": "(AGPL-3.0 OR EUPL-1.2)",
"private": true,
"packageManager": "[email protected]",
"workspaces": [
"digitransit-util/packages/*",
"digitransit-search-util/packages/*",
"digitransit-component/packages/*",
"digitransit-store/packages/*"
],
"scripts": {
"postinstall": "yarn run node14-patch",
"setup": "yarn install && yarn build-workspaces",
"static": "mkdir -p _static/js; mkdir -p _static/css; cp -r static/* _static",
"win-static": "xcopy static\\* _static /e /s /y /i& if not exist _static\\js mkdir _static\\js& if not exist _static\\css mkdir _static\\css",
"prebuild": "yarn run static && yarn run relay",
"predev": "yarn run static",
"predev-win-hsl": "yarn run win-static",
"predev-win-national": "yarn run win-static",
"dev": "bash -c \"trap 'pkill -QUIT -P $$ > /dev/null' EXIT; yarn run predev && yarn run relay-watch & NODE_ENV=development yarn nodemon -e js,css,scss,html --watch ./server/ --watch ./app/ server/server.js & NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=development yarn webpack-dev-server & yarn digitransit-watch-components\"",
"dev-win-hsl": "yarn predev-win-hsl && cd win-launch-scripts&& hsl-win-launch-script.bat",
"dev-win-national": "yarn predev-win-hsl && cd win-launch-scripts&& set CONFIG=&& national-win-launch-script.bat",
"dev-nowatch": "bash -c 'NODE_ENV=development node server/server.js & NODE_ENV=development webpack-dev-server'",
"test-accessibility": "./test/accessibility.sh",
"test-unit": "yarn test-unit:components && yarn test-unit:store && yarn test-unit:app",
"test-unit:app": "mocha --require mock-local-storage --file test/unit/helpers/babel-register.js --file test/unit/helpers/init.js \"test/unit/**/*.test.js\"",
"test-unit:store": "yarn lerna run build:test --scope '@digitransit-store/*'",
"test-unit:components": "yarn lerna run build:test --scope '@digitransit-component/*'",
"test-single": "yarn test-unit:app -g",
"test:e2e": "jest --runInBand --detectOpenHandles --config=./test/e2e/jest.config.js",
"test:update-snapshots": "UPDATE_E2E=true jest --runInBand --detectOpenHandles --updateSnapshot --config=./test/e2e/jest.config.js",
"test:update-all-desktop-snapshots": "CONFIG=hsl yarn test:update-snapshots && CONFIG=tampere yarn test:update-snapshots && CONFIG=matka yarn test:update-snapshots",
"test:update-all-mobile-snapshots": "MOBILE=true CONFIG=hsl yarn test:update-snapshots && MOBILE=true CONFIG=tampere yarn test:update-snapshots && MOBILE=true CONFIG=matka yarn test:update-snapshots",
"test:update-all-snapshots": "yarn test:update-all-desktop-snapshots && yarn test:update-all-mobile-snapshots",
"es-lint": "eslint .",
"lint": "yarn run es-lint && yarn run prettier-styles && yarn run stylelint",
"prettier-styles": "prettier sass/**/*.scss app/**/*.scss digitransit-component/**/*.scss --fix --write",
"stylelint": "stylelint sass/**/*.scss app/**/*.scss digitransit-component/**/*.scss",
"build": "NODE_OPTIONS=--openssl-legacy-provider && NODE_ENV=production && yarn prebuild && node --max_old_space_size=4096 node_modules/.bin/webpack --progress --color",
"build-workspaces": "yarn build-components && yarn build-search-utils && yarn build-store",
"win-build": "set NODE_ENV=production&& webpack --progress --color",
"start": "NODE_ENV=production node $NODE_OPTS server/server",
"start-test": "NODE_ENV=test node $NODE_OPTS server/server",
"win-start": "set NODE_ENV=production&& set CONFIG=hsl&& node server/server.js",
"add-theme": "node build/add-theme",
"relay": "relay-compiler",
"relay-watch": "relay-compiler --watch",
"digitransit-npm-publish": "lerna publish from-package --no-git-tag-version --no-push",
"digitransit-npm-autopublish": "lerna publish from-package --no-git-tag-version --no-push -y --no-verify-access",
"digitransit-search-util-docs": "node -r esm ./digitransit-search-util/scripts/generate-readmes",
"digitransit-search-util-new-module": "node -r esm ./digitransit-search-util/scripts/create-new-module",
"digitransit-search-util-tests": "lerna run test --scope '@digitransit-search-util/*'",
"digitransit-util-docs": "node -r esm ./digitransit-util/scripts/generate-readmes",
"digitransit-util-new-module": "node -r esm ./digitransit-util/scripts/create-new-module",
"digitransit-util-tests": "lerna run test --scope '@digitransit-util/*'",
"digitransit-component-docs": "node -r esm ./digitransit-component/scripts/generate-readmes",
"digitransit-component-new-module": "node -r esm ./digitransit-component/scripts/create-new-module",
"digitransit-component-tests": "lerna run test --scope '@digitransit-component/*'",
"digitransit-watch-components": "NODE_ENV=development SCOPE='@digitransit-component/*' rollup -w -c ./config/rollup.config.js",
"build-components": "lerna run clean --scope '@digitransit-component/*' && NODE_ENV=production SCOPE='@digitransit-component/*' rollup -c ./config/rollup.config.js",
"build-search-utils": "lerna run clean --scope @digitransit-search-util/digitransit-search-util-query-utils && lerna run relay --scope @digitransit-search-util/digitransit-search-util-query-utils && NODE_ENV=production SCOPE='@digitransit-search-util/digitransit-search-util-query-utils' rollup -c ./config/rollup.config.js",
"digitransit-store-docs": "node -r esm ./digitransit-store/scripts/generate-readmes",
"digitransit-store-new-module": "node -r esm ./digitransit-store/scripts/create-new-module",
"digitransit-store-tests": "lerna run build:test --scope '@digitransit-store/*' && lerna run test --scope '@digitransit-store/*'",
"build-store": "lerna run clean --scope '@digitransit-store/*' && NODE_ENV=production SCOPE='@digitransit-store/*' rollup -c ./config/rollup.config.js",
"node14-patch": "rm -f ./node_modules/react-leaflet/node_modules/@babel/runtime/helpers/esm/package.json ./node_modules/@babel/runtime/helpers/esm/package.json"
},
"main": "server.js",
"repository": {
"type": "git",
"url": "https://github.com/HSLdevcom/digitransit-ui"
},
"bugs": {
"url": "https://github.com/HSLdevcom/digitransit-ui/issues"
},
"engineStrict": true,
"engines": {
"node": ">=16.17",
"npm": ">=3.0"
},
"browserslist": [
"> 0.2% in FI",
"not op_mini all",
"not IE 11"
],
"prettier": {
"arrowParens": "avoid",
"endOfLine": "auto",
"singleQuote": true,
"trailingComma": "all"
},
"lint-staged": {
"*.{js,jsx}": [
"eslint"
],
"*.scss": [
"prettier --check",
"stylelint"
]
},
"git-precommit-checks": {
"rules": [
{
"message": "You have unresolved conflict markers",
"regex": "/^[<>|=]{4,}/m"
},
{
"filter": "\\.js$",
"nonBlocking": "true",
"message": "You are using `console.log` in your JavaScripts",
"regex": "console\\.log"
}
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && git-precommit-checks",
"pre-push": "yarn run test-unit"
}
},
"relay": {
"src": "./app",
"schema": "./build/schema.graphql",
"language": "javascript"
},
"dependencies": {
"@azure/cosmos": "^4.0.0",
"@babel/core": "7.23.9",
"@babel/preset-env": "7.23.9",
"@babel/preset-react": "7.23.3",
"@babel/register": "7.23.7",
"@hsl-fi/button": "^1.2.4",
"@hsl-fi/container-spinner": "0.3.2",
"@hsl-fi/hooks": "1.2.4",
"@hsl-fi/modal": " ^0.3.2",
"@hsl-fi/sass": " ^0.2.0",
"@hsl-fi/shared-local-storage": "0.4.0",
"@hsl-fi/shimmer": "0.1.2",
"@hsl-fi/site-header": "4.5.0",
"@mapbox/sphericalmercator": "1.1.0",
"@mapbox/vector-tile": "1.3.1",
"axios": "1.7.7",
"babel-plugin-dynamic-import-node": "2.3.3",
"babel-plugin-relay": "16.2.0",
"body-parser": "1.20.3",
"classnames": "2.2.6",
"connect-redis": "5.0.0",
"cookie-parser": "1.4.5",
"debug": "4.3.4",
"esm": "3.2.25",
"express": "4.20.0",
"express-http-proxy": "1.6.2",
"express-session": "1.18.0",
"express-static-gzip": "2.0.8",
"farce": "0.4.5",
"fast-xml-parser": "4.3.4",
"fluxible": "1.4.0",
"fluxible-addons-react": "0.2.16",
"found": "0.5.9",
"found-relay": "1.0.2",
"foundation-apps": "1.2.0",
"helmet": "4.1.0",
"hoist-non-react-statics": "2.5.4",
"htm-to-json": "0.1.4",
"i18next": "19.8.4",
"intl": "1.2.5",
"leaflet": "1.6.0",
"lodash": "4.17.21",
"lru-cache": "6.0.0",
"moment": "2.30.1",
"moment-timezone": "0.5.45",
"morgan": "1.10.0",
"mqtt": "4.3.7",
"name-all-modules-plugin": "1.0.1",
"node-fetch": "2.6.0",
"offline-plugin": "5.0.7",
"openid-client": "5.6.4",
"passport": "0.7.0",
"pbf": "3.2.1",
"point-in-polygon": "1.0.1",
"polyfill-library": "3.96.0",
"polyline-encoded": "0.0.9",
"prop-types": "15.7.2",
"raven": "2.6.4",
"raven-js": "3.27.0",
"react": "^16.13.0",
"react-autosuggest": "^10.0.0",
"react-autowhatever": "10.2.1",
"react-click-outside": "3.0.1",
"react-cookie": "4.0.3",
"react-dom": "16.13.0",
"react-helmet": "6.1.0",
"react-intl": "2.8.0",
"react-leaflet": "2.7.0",
"react-motion": "0.5.2",
"react-relay": "16.2.0",
"react-relay-network-modern": "6.2.2",
"react-relay-network-modern-ssr": "1.4.0",
"react-select": "4.3.0",
"react-sortablejs": "2.0.11",
"react-swipe": "6.0.4",
"react-truncate-markup": "5.1.0",
"recompose": "0.30.0",
"redis": "2.8.0",
"relay-runtime": "16.2.0",
"serialize-javascript": "4.0.0",
"suncalc": "1.8.0",
"supercluster": "^8.0.1",
"swipe-js-iso": "2.1.5",
"universal-cookie": "4.0.4",
"uuid": "8.3.0",
"zurb-foundation-5": "5.4.7"
},
"peerDependencies": {
"@octokit/core": ">=3",
"@types/node": "^17",
"sass": "^1.37.2",
"typescript": ">2.7"
},
"devDependencies": {
"@axe-core/react": "^4.7.3",
"@axe-core/webdriverjs": "^4.7.3",
"@azure/storage-blob": "^12.8.0",
"@babel/cli": "7.23.9",
"@babel/eslint-parser": "7.23.10",
"@babel/plugin-transform-runtime": "7.23.9",
"@babel/runtime": "7.23.9",
"@commitlint/cli": "9.1.2",
"@commitlint/config-conventional": "9.1.2",
"@graphql-eslint/eslint-plugin": "3.20.1",
"@lerna/batch-packages": "3.16.0",
"@lerna/filter-packages": "3.18.0",
"@lerna/project": "3.21.0",
"@rollup/plugin-babel": "5.2.2",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "11.0.1",
"@testing-library/react-hooks": "^8.0.0",
"async": "^3.2.2",
"autoprefixer": "9.8.6",
"axe-core": "^4.7.2",
"babel-loader": "8.2.5",
"babel-plugin-inline-react-svg": "2.0.2",
"babel-plugin-optimize-clsx": "2.6.2",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"base64-arraybuffer": "0.1.5",
"chai": "4.3.7",
"compression-webpack-plugin": "5.0.2",
"copy-webpack-plugin": "6.1.0",
"css-loader": "^5.2.7",
"documentation": "13.2.5",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.7",
"enzyme-wait": "1.0.9",
"eslint": "8.56.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-webpack": "0.13.8",
"eslint-plugin-compat": "4.2.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-prettier": "5.1.2",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"favicons-webpack-plugin": "4.2.0",
"fetch-mock": "^12.0.2",
"file-loader": "5.0.2",
"git-precommit-checks": "3.0.0",
"graphql": "16.8.1",
"husky": "4.3.0",
"iso-morphic-style-loader": "2.0.1",
"jest": "29.7.0",
"jest-circus": "29.7.0",
"jest-environment-node": "29.7.0",
"jest-image-snapshot": "6.4.0",
"jest-playwright-preset": "4.0.0",
"jest-runner": "29.7.0",
"jsdom": "24.0.0",
"lerna": "3.20.2",
"lint-staged": "10.3.0",
"mini-css-extract-plugin": "0.11.1",
"mocha": "10.2.0",
"mock-local-storage": "1.1.24",
"mockdate": "3.0.2",
"node-sass": "^9.0.0",
"nodemon": "1.18.10",
"optimize-css-assets-webpack-plugin": "5.0.4",
"playwright": "1.16.2",
"postcss": "8.4.33",
"postcss-flexbugs-fixes": "5.0.2",
"postcss-loader": "^4",
"prettier": "3.1.1",
"relay-compiler": "16.2.0",
"rollup": "2.79.2",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-terser": "7.0.2",
"sass-loader": "^10.4.1",
"selenium-webdriver": "4.0.0-alpha.1",
"sinon": "15.1.0",
"stats-webpack-plugin": "0.7.0",
"style-loader": "1.2.1",
"stylelint": "15.11.0",
"stylelint-config-standard-scss": "11.1.0",
"terser-webpack-plugin": "4.1.0",
"url-loader": "3.0.0",
"webpack": "^4.46.0",
"webpack-assets-manifest": "^4.0.0",
"webpack-bundle-analyzer": "3.6.0",
"webpack-cli": "4.10.0",
"webpack-dev-server": "4.15.1"
},
"resolutions": {
"html-webpack-plugin": "4.5.2",
"sharp": "0.33"
}
}