forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
359 lines (359 loc) · 15.8 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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
{
"name": "wp-calypso",
"version": "0.17.0",
"description": "A pure REST-API and JS based version of the WordPress.com admin",
"private": true,
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/Automattic/wp-calypso.git"
},
"main": "index.js",
"browserslist": {
"defaults": [
"extends @wordpress/browserslist-config"
],
"evergreen": [
"last 2 Chrome versions",
"last 1 ChromeAndroid versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 iOS versions",
"last 2 Edge versions",
"last 2 Opera versions",
"unreleased Chrome versions",
"unreleased ChromeAndroid versions",
"unreleased Firefox versions",
"unreleased FirefoxAndroid versions",
"unreleased Edge versions",
"unreleased Opera versions"
],
"server": [
"current node"
]
},
"dependencies": {
"@automattic/calypso-ui": "file:./packages/calypso-ui",
"@automattic/color-studio": "2.2.0",
"@automattic/format-currency": "file:./packages/format-currency",
"@automattic/load-script": "file:./packages/load-script",
"@automattic/material-design-icons": "file:./packages/material-design-icons",
"@automattic/muriel-style": "file:./packages/muriel-style",
"@automattic/tree-select": "file:./packages/tree-select",
"@babel/cli": "7.5.5",
"@babel/polyfill": "7.4.4",
"@babel/runtime": "7.5.5",
"@github/webauthn-json": "0.3.6",
"@ungap/url-search-params": "0.1.2",
"@webcomponents/url": "0.7.3",
"@wordpress/api-fetch": "3.3.0",
"@wordpress/block-editor": "2.2.0",
"@wordpress/block-library": "2.6.0",
"@wordpress/blocks": "6.4.0",
"@wordpress/components": "8.0.0",
"@wordpress/compose": "3.4.0",
"@wordpress/core-data": "2.4.0",
"@wordpress/data": "4.6.0",
"@wordpress/data-controls": "1.0.0",
"@wordpress/edit-post": "3.5.0",
"@wordpress/editor": "9.4.0",
"@wordpress/element": "2.5.0",
"@wordpress/notices": "1.5.0",
"@wordpress/nux": "3.4.0",
"@wordpress/plugins": "2.4.0",
"@wordpress/rich-text": "3.4.0",
"@wordpress/server-side-render": "1.0.0",
"@wordpress/url": "2.6.0",
"@wordpress/viewport": "2.5.0",
"acorn": "6.1.1",
"autosize": "4.0.2",
"babel-plugin-add-module-exports": "1.0.2",
"body-parser": "1.19.0",
"bounding-client-rect": "1.0.5",
"browser-filesaver": "1.1.1",
"browserslist-useragent": "3.0.2",
"caniuse-lite": "1.0.30000989",
"chalk": "2.4.2",
"chrono-node": "1.3.5",
"circular-dependency-plugin": "5.0.2",
"classnames": "2.2.6",
"click-outside": "2.0.2",
"clipboard": "2.0.4",
"component-closest": "1.0.1",
"component-file-picker": "0.2.1",
"cookie": "0.3.1",
"cookie-parser": "1.4.4",
"core-js": "2.6.9",
"cpf_cnpj": "0.2.0",
"create-react-class": "15.6.3",
"creditcards": "3.0.1",
"cross-env": "6.0.0",
"d3-array": "2.0.3",
"d3-axis": "1.0.12",
"d3-scale": "3.0.0",
"d3-selection": "1.4.0",
"d3-shape": "1.3.5",
"debug": "3.2.6",
"deep-freeze": "0.0.1",
"diff": "3.5.0",
"doctrine": "3.0.0",
"dom-helpers": "3.4.0",
"dompurify": "1.0.10",
"draft-js": "0.10.5",
"email-validator": "2.0.4",
"emoji-text": "0.2.6",
"escape-regexp": "0.0.1",
"escape-string-regexp": "1.0.5",
"events": "3.0.0",
"exports-loader": "0.7.0",
"express": "4.16.4",
"express-useragent": "1.0.12",
"filesize": "3.6.1",
"flag-icon-css": "3.3.0",
"flux": "3.1.3",
"fontfaceobserver": "2.1.0",
"fuse.js": "3.4.4",
"get-video-id": "3.1.4",
"gfm-code-blocks": "1.0.0",
"globby": "9.2.0",
"gridicons": "3.3.1",
"gzip-size": "5.1.1",
"hash.js": "1.1.7",
"he": "1.2.0",
"html-loader": "0.5.5",
"html-to-react": "1.3.4",
"html-webpack-plugin": "3.2.0",
"i18n-calypso": "file:./packages/i18n-calypso",
"ignore-loader": "0.1.2",
"immutability-helper": "3.0.1",
"immutable": "3.8.2",
"imports-loader": "0.8.0",
"inherits": "2.0.3",
"is-my-json-valid": "2.20.0",
"isomorphic-fetch": "2.2.1",
"jquery": "1.12.3",
"json-stable-stringify": "1.0.1",
"keymaster": "1.6.2",
"lerna": "3.16.4",
"loader-utils": "1.2.3",
"lodash": "4.17.14",
"lodash-es": "4.17.14",
"lru": "3.1.0",
"lunr": "2.3.6",
"marked": "0.7.0",
"mkdirp": "0.5.1",
"moment": "2.24.0",
"moment-timezone": "0.5.26",
"morgan": "1.9.1",
"node-sass-package-importer": "5.3.1",
"npm-run-all": "4.1.5",
"objectpath": "1.2.2",
"page": "1.11.4",
"path-browserify": "1.0.0",
"percentage-regex": "3.0.0",
"phone": "git+https://github.com/Automattic/node-phone.git#v2.4.0-pre-1",
"photon": "file:./packages/photon",
"postcss-cli": "6.1.2",
"prismjs": "1.16.0",
"prop-types": "15.7.2",
"qrcode.react": "0.9.3",
"qs": "6.7.0",
"react": "16.8.6",
"react-click-outside": "3.0.1",
"react-day-picker": "7.3.1",
"react-dom": "16.8.6",
"react-element-to-jsx-string": "14.0.2",
"react-lazily-render": "1.1.0",
"react-live": "1.12.0",
"react-modal": "3.8.1",
"react-pure-render": "1.0.2",
"react-redux": "5.1.1",
"react-stripe-elements": "4.0.0",
"react-transition-group": "2.5.0",
"react-virtualized": "9.21.0",
"redux": "4.0.4",
"redux-form": "7.4.2",
"redux-thunk": "2.3.0",
"refx": "3.1.1",
"rememo": "3.0.0",
"resize-observer-polyfill": "1.5.1",
"rtlcss": "2.4.0",
"social-logos": "2.1.0",
"socket.io-client": "2.2.0",
"source-map": "0.7.3",
"source-map-support": "0.5.12",
"store": "2.0.12",
"striptags": "2.2.1",
"superagent": "3.8.3",
"svg4everybody": "2.1.9",
"textarea-caret": "3.1.0",
"tinymce": "4.8.5",
"to-title-case": "1.0.0",
"tracekit": "0.4.5",
"twemoji": "11.2.0",
"url": "0.11.0",
"use-subscription": "1.1.1",
"utility-types": "3.5.0",
"uuid": "3.3.2",
"valid-url": "1.0.9",
"webpack-bundle-analyzer": "3.5.0",
"webpack-dev-middleware": "3.7.0",
"wpcom": "5.4.2",
"wpcom-proxy-request": "5.0.2",
"wpcom-xhr-request": "1.1.3",
"yamlparser": "0.0.2",
"yargs": "13.2.2"
},
"engines": {
"node": "^10.16.3",
"npm": "^6.9.0"
},
"scripts": {
"preanalyze-bundles": "cross-env-shell CALYPSO_ENV=production EMIT_STATS=true NODE_ARGS=--max_old_space_size=8192 npm run -s build-client-evergreen",
"analyze-bundles": "webpack-bundle-analyzer stats.json public/evergreen -h 127.0.0.1 -p 9898 -s gzip",
"analyze-css": "node bin/analyze-css.js",
"autoprefixer": "postcss -u autoprefixer -r --no-map --config packages/calypso-build/postcss.config.js",
"postcss": "postcss -r --config packages/calypso-build/postcss.config.js",
"prebuild": "npm run -s install-if-deps-outdated",
"build": "npm run build-static && npm run build-packages && npm run build-css && run-p -s build-devdocs:* build-server build-client-if-prod build-client-if-desktop",
"build-css": "run-p -s build-css:*",
"build-css:directly": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js --include-path client client/assets/stylesheets/directly.scss public/directly.css --output-style compressed && npm run -s postcss -- public/directly.css",
"build-css:editor": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js --include-path client client/assets/stylesheets/editor.scss public/editor.css --output-style compressed && npm run -s postcss -- public/editor.css",
"build-devdocs:components-usage-stats": "cross-env-shell NODE_PATH=$NODE_PATH:server:client:. npm run -s build-devdocs:components-usage-stats:_env",
"build-devdocs:components-usage-stats:_env": "node server/devdocs/bin/generate-components-usage-stats.js \"client/**/*.js\" \"client/**/*.jsx\" \"!**/docs/**\" \"!**/test/**\" \"!**/docs-example/**\"",
"build-devdocs:index": "cross-env-shell NODE_PATH=$NODE_PATH:server:client:. npm run -s build-devdocs:index:_env",
"build-devdocs:index:_env": "node server/devdocs/bin/generate-devdocs-index",
"build-docker": "node bin/build-docker.js",
"build-static": "ncp static public",
"prebuild-server": "mkdirp build",
"build-server": "cross-env-shell BROWSERSLIST_ENV=server NODE_PATH=$NODE_PATH:server:client:. webpack --display errors-only --config webpack.config.node.js",
"build-client": "npm run build-client-evergreen",
"build-client-fallback": "cross-env-shell BROWSERSLIST_ENV=defaults NODE_PATH=$NODE_PATH:server:client:. node $NODE_ARGS ./node_modules/webpack/bin/webpack.js --display errors-only",
"build-client-evergreen": "cross-env-shell BROWSERSLIST_ENV=evergreen NODE_PATH=$NODE_PATH:server:client:. node $NODE_ARGS ./node_modules/webpack/bin/webpack.js --display errors-only",
"build-client-both": "concurrently -c cyan -n \"fallback ,evergreen\" \"npm run build-client-fallback\" \"npm run build-client-evergreen\"",
"build-client-if-prod": "node -e \"process.env.CALYPSO_ENV === 'production' && process.exit(1)\" || cross-env-shell NODE_ARGS=--max_old_space_size=8192 npm run build-client-both",
"build-client-if-desktop": "node -e \"(process.env.CALYPSO_ENV === 'desktop' || process.env.CALYPSO_ENV === 'desktop-development') && process.exit(1)\" || cross-env-shell NODE_ARGS=--max_old_space_size=8192 npm run build-client-fallback",
"build-packages": "npx lerna run prepare --stream",
"clean": "npm run -s clean:build && npm run -s clean:devdocs && npm run -s clean:public && npm run -s clean:packages",
"clean:build": "npx rimraf build server/bundler/*.json .babel-cache",
"clean:devdocs": "npx rimraf server/devdocs/search-index.js server/devdocs/proptypes-index.json server/devdocs/components-usage-stats.json",
"clean:packages": "npx lerna run clean --stream",
"clean:public": "npx rimraf public",
"distclean": "npm run -s clean && npx rimraf node_modules packages/*/node_modules test/e2e/node_modules",
"docker": "docker run -it --name wp-calypso --rm -p 80:3000 wp-calypso",
"eslint-branch": "node bin/eslint-branch.js",
"install-if-deps-outdated": "node bin/install-if-deps-outdated.js",
"install-if-no-packages": "node bin/install-if-no-packages.js",
"postinstall": "npm run build-packages",
"lint": "run-s -s lint:*",
"lint:config-defaults": "node server/config/validate-config-keys.js",
"lint:css": "stylelint \"**/*.scss\" --syntax scss",
"lint:js": "npm run -s install-if-deps-outdated && eslint --ext .js --ext .jsx --ext .ts --ext .tsx --cache .",
"lint:mixedindent": "mixedindentlint --ignore-comments \"client/**/*.scss\" \"assets/**/*.scss\" \"**/*.js\" \"**/*.jsx\" \"**/*.tsx\" \"**/*.tsx\" \"!build/**\" \"!node_modules/**\" \"!public/**\" \"!client/config/index.js\"",
"prestart": "npx check-node-version --package && npm run -s install-if-deps-outdated && node bin/welcome.js",
"start": "npm run -s build",
"poststart": "run-p -s start-build-if-web start-build-if-desktop",
"reformat-files": "./node_modules/.bin/prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
"start-build-fallback": "cross-env-shell BROWSERSLIST_ENV=defaults NODE_PATH=$NODE_PATH:server:client:. node $NODE_ARGS --max_old_space_size=8192 build/bundle.js",
"start-build-evergreen": "cross-env-shell BROWSERSLIST_ENV=evergreen NODE_PATH=$NODE_PATH:server:client:. node $NODE_ARGS --max_old_space_size=8192 build/bundle.js",
"start-build-if-desktop": "node -e \"(process.env.CALYPSO_ENV === 'desktop' || process.env.CALYPSO_ENV === 'desktop-development') && process.exit(1)\" || npm run start-build-fallback",
"start-build-if-web": "node -e \"(process.env.CALYPSO_ENV !== 'desktop' && process.env.CALYPSO_ENV !== 'desktop-development') && process.exit(1)\" || npm run start-build-evergreen",
"pretest": "npm run -s install-if-deps-outdated",
"test": "run-s -s test-client test-packages test-server",
"pretest-client": "npm run -s pretest",
"test-client": "jest -c=test/client/jest.config.js",
"test-client:watch": "npm run -s test-client -- --watch",
"test-e2e": "cd test/e2e && npm ci && npm run test",
"encrypt-e2e-config": "openssl enc -md sha1 -aes-256-cbc -pass env:CONFIG_KEY -out ./test/e2e/config/encrypted.enc -in ./test/e2e/config/local-$NODE_ENV.json",
"decrypt-e2e-config": "openssl enc -md sha1 -aes-256-cbc -d -pass env:CONFIG_KEY -in ./test/e2e/config/encrypted.enc -out ./test/e2e/config/local-$NODE_ENV.json",
"pretest-integration": "npm run -s pretest",
"test-integration": "jest -c=test/integration/jest.config.js",
"test-integration:watch": "npm run -s test-integration -- --watch",
"test-packages": "jest -c=test/packages/jest.config.js",
"test-packages:watch": "jest -c=test/packages/jest.config.js --watch",
"pretest-server": "npm run -s pretest",
"test-server": "jest -c=test/server/jest.config.js",
"test-server:coverage": "npm run -s test-server -- --coverage",
"test-server:watch": "npm run -s test-server -- --watch",
"translate": "i18n-calypso --format pot --output-file ./calypso-strings.pot -k translate,__,_x,_n,_nx -e date '**/*.js' '**/*.jsx' '**/*.ts' '**/*.tsx' '!build/**' '!packages/**/dist/**' '!public/**' '!**/test/**' '!node_modules/**' '!**/node_modules/**'",
"update-deps": "npx rimraf npm-shrinkwrap.json && npm run -s distclean && npm i && npm shrinkwrap && replace --silent 'http://' 'https://' . --recursive --include='npm-shrinkwrap.json,package-lock.json'",
"postshrinkwrap": "node -e \"fs.utimesSync( './node_modules', new Date(), new Date() );\"",
"prewhybundled": "cross-env-shell CALYPSO_ENV=production EMIT_STATS=withreasons NODE_ARGS=--max_old_space_size=8192 npm run -s build-client",
"whybundled": "whybundled stats.json"
},
"devDependencies": {
"@automattic/babel-plugin-i18n-calypso": "file:./packages/babel-plugin-i18n-calypso",
"@automattic/babel-plugin-transform-wpcalypso-async": "file:./packages/babel-plugin-transform-wpcalypso-async",
"@automattic/calypso-build": "file:./packages/calypso-build",
"@automattic/calypso-color-schemes": "file:./packages/calypso-color-schemes",
"@automattic/webpack-extensive-lodash-replacement-plugin": "file:./packages/webpack-extensive-lodash-replacement-plugin",
"@automattic/webpack-inline-constant-exports-plugin": "file:./packages/webpack-inline-constant-exports-plugin",
"@types/classnames": "2.2.9",
"@types/debug": "4.1.4",
"@types/lodash": "4.14.123",
"@types/page": "1.8.0",
"@types/react": "16.8.16",
"@types/react-redux": "7.0.6",
"@types/webpack-env": "1.14.0",
"@typescript-eslint/eslint-plugin": "1.10.2",
"@typescript-eslint/parser": "1.10.2",
"@wordpress/babel-plugin-makepot": "2.1.3",
"@wordpress/dependency-extraction-webpack-plugin": "1.1.0",
"babel-eslint": "10.0.2",
"babel-jest": "24.9.0",
"babel-plugin-dynamic-import-node": "2.3.0",
"chai": "4.2.0",
"chai-enzyme": "1.0.0-beta.1",
"check-node-version": "3.3.0",
"concurrently": "4.1.2",
"enzyme": "3.10.0",
"enzyme-adapter-react-16": "1.14.0",
"enzyme-to-json": "3.4.0",
"eslint": "5.16.0",
"eslint-config-prettier": "4.2.0",
"eslint-config-wpcalypso": "file:./packages/eslint-config-wpcalypso",
"eslint-plugin-import": "2.17.2",
"eslint-plugin-jest": "22.6.4",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-react": "7.12.4",
"eslint-plugin-wpcalypso": "file:./packages/eslint-plugin-wpcalypso",
"glob": "7.1.3",
"husky": "3.0.5",
"jest": "24.9.0",
"jest-docblock": "24.9.0",
"jest-fetch-mock": "2.1.2",
"jest-junit": "7.0.0",
"md5-file": "4.0.0",
"mixedindentlint": "1.2.0",
"mockdate": "2.0.2",
"moment-timezone-data-webpack-plugin": "1.1.0",
"ncp": "2.0.0",
"nock": "10.0.6",
"npm-merge-driver": "2.3.5",
"prettier": "npm:[email protected]",
"react-test-renderer": "16.8.6",
"readline-sync": "1.4.9",
"replace": "1.1.0",
"rimraf": "2.7.0",
"sinon": "7.4.2",
"sinon-chai": "3.3.0",
"socket.io": "2.2.0",
"stackframe": "1.1.0",
"stacktrace-gps": "3.0.3",
"stylelint": "9.10.1",
"supertest": "3.4.2",
"svgstore-cli": "1.3.1",
"webpack-hot-middleware": "2.25.0",
"webpack-node-externals": "1.7.2",
"whybundled": "1.4.2"
},
"optionalDependencies": {
"fsevents": "2.0.3"
},
"husky": {
"hooks": {
"pre-commit": "npm run -s install-if-no-packages && node bin/pre-commit-hook.js",
"pre-push": "npm run -s install-if-no-packages && node bin/pre-push-hook.js"
}
}
}