forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
363 lines (363 loc) · 18.7 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
360
361
362
363
{
"name": "wp-calypso-monorepo",
"author": "Automattic Inc.",
"version": "0.17.0",
"description": "A pure REST-API and JS based version of the WordPress.com admin",
"private": true,
"workspaces": [
"client",
"apps/*",
"packages/*",
"tests/e2e"
],
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/Automattic/wp-calypso.git"
},
"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"
]
},
"engines": {
"node": "^12.16.1",
"yarn": "^1.22.0"
},
"scripts": {
"analyze-bundles": "check-npm-client && yarn run build-client-stats && webpack-bundle-analyzer client/stats.json public/evergreen -h 127.0.0.1 -p 9898 -s gzip",
"analyze-icfy": "check-npm-client && yarn run build-client-stats && node --max-old-space-size=4096 bin/icfy-analyze.js",
"autoprefixer": "check-npm-client && postcss -u autoprefixer -r --no-map --config packages/calypso-build/postcss.config.js",
"postcss": "check-npm-client && postcss -r --config packages/calypso-build/postcss.config.js",
"prebuild": "check-npm-client && yarn run install-if-deps-outdated",
"build": "check-npm-client && yarn run build-static && yarn run build-packages && yarn run build-css && run-p -s build-devdocs:* && run-p -s build-server build-client-if-prod build-client-if-desktop",
"build-css": "check-npm-client && run-p -s build-css:*",
"build-css:directly": "check-npm-client && 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 && yarn run -s postcss -- public/directly.css",
"build-css:editor": "check-npm-client && 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 && yarn run -s postcss -- public/editor.css",
"build-devdocs:search-index": "check-npm-client && node bin/generate-devdocs-search-index.js",
"build-docker": "check-npm-client && node bin/build-docker.js",
"build-static": "check-npm-client && npx ncp static public",
"prebuild-server": "check-npm-client && mkdirp build",
"build-server": "check-npm-client && BROWSERSLIST_ENV=server webpack --config client/webpack.config.node.js --display errors-only",
"build-client": "check-npm-client && yarn run build-client-evergreen",
"build-client-do": "check-npm-client && node ${NODE_ARGS:---max_old_space_size=8192} ./node_modules/webpack/bin/webpack.js --config client/webpack.config.js --display errors-only && yarn run build-languages-if-enabled",
"build-client-fallback": "check-npm-client && BROWSERSLIST_ENV=defaults yarn run build-client-do",
"postbuild-client-fallback": "check-npm-client && yarn run validate-fallback-es5",
"build-client-evergreen": "check-npm-client && BROWSERSLIST_ENV=evergreen yarn run build-client-do",
"build-client-both": "check-npm-client && CONCURRENT_BUILDS=2 concurrently -c cyan -n \"fallback ,evergreen\" \"yarn run build-client-fallback\" \"yarn run build-client-evergreen\"",
"build-client-if-prod": "check-npm-client && node -e \"process.env.CALYPSO_ENV === 'production' && process.exit(1)\" || yarn run build-client-both",
"build-client-if-desktop": "check-npm-client && node -e \"(process.env.CALYPSO_ENV === 'desktop' || process.env.CALYPSO_ENV === 'desktop-development') && process.exit(1)\" || yarn run build-client-fallback",
"build-client-stats": "check-npm-client && NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=true PROGRESS=true yarn run build-client-evergreen",
"build-packages": "check-npm-client && npx lerna run prepare --stream",
"build-packages:watch": "check-npm-client && chokidar \"./packages/**\" -i \"./packages/*/dist/**\" -i \"**.css\" -i \"**.d.ts\" --debounce 1000 --throttle 10000 -c \"yarn run build-packages\"",
"build-languages": "check-npm-client && yarn run translate && node bin/build-languages.js",
"build-languages-if-enabled": "check-npm-client && node -e \"(process.env.BUILD_TRANSLATION_CHUNKS === 'true' || process.env.ENABLE_FEATURES === 'use-translation-chunks') && process.exit(1)\" || yarn run build-languages",
"clean": "check-npm-client && yarn run clean:packages && yarn run clean:build && yarn run clean:public",
"clean:build": "check-npm-client && npx rimraf build client/server/bundler/*.json client/server/devdocs/search-index.js",
"clean:packages": "check-npm-client && npx lerna run clean --stream",
"clean:public": "check-npm-client && npx rimraf public",
"distclean": "check-npm-client && yarn run clean && npx rimraf node_modules client/node_modules apps/*/node_modules packages/*/node_modules test/e2e/node_modules .tsc-cache vendor",
"docker": "check-npm-client && docker run -it --name wp-calypso --rm -p 80:3000 wp-calypso",
"docker-jetpack-cloud": "check-npm-client && docker run -it --env CALYPSO_ENV=jetpack-cloud-production --name wp-calypso --rm -p 80:3000 wp-calypso",
"eslint-branch": "check-npm-client && node bin/eslint-branch.js",
"install-if-deps-outdated": "check-npm-client && node bin/install-if-deps-outdated.js",
"install-if-no-packages": "check-npm-client && node bin/install-if-no-packages.js",
"postinstall": "check-npm-client && yarn run build-packages",
"lint": "check-npm-client && run-s -s lint:*",
"lint:config-defaults": "check-npm-client && node bin/validate-config-keys.js",
"lint:css": "check-npm-client && stylelint \"**/*.scss\" --syntax scss",
"lint:js": "check-npm-client && yarn run install-if-deps-outdated && eslint --ext .js --ext .jsx --ext .ts --ext .tsx --cache .",
"lint:mixedindent": "check-npm-client && mixedindentlint --ignore-comments \"client/**/*.scss\" \"assets/**/*.scss\" \"**/*.js\" \"**/*.jsx\" \"**/*.tsx\" \"**/*.tsx\" \"!build/**\" \"!node_modules/**\" \"!public/**\" \"!client/config/index.js\"",
"lint:package-json": "check-npm-client && npmPkgJsonLint './package.json' './client/package.json' './packages/*/package.json' './apps/*/package.json'",
"prestart": "check-npm-client && npx check-node-version --package && yarn run install-if-deps-outdated && node bin/welcome.js",
"start": "check-npm-client && yarn run -s build",
"poststart": "check-npm-client && run-p -s start-build-if-web start-build-if-desktop build-packages:watch",
"start-fallback": "check-npm-client && DEV_TARGET=fallback yarn run start",
"start-jetpack-cloud": "check-npm-client && CALYPSO_ENV=jetpack-cloud-development yarn start",
"reformat-files": "check-npm-client && ./node_modules/.bin/prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
"start-build-do": "check-npm-client && node ${NODE_ARGS:---max_old_space_size=8192} build/bundle.js",
"start-build-fallback": "check-npm-client && BROWSERSLIST_ENV=defaults yarn run start-build-do",
"start-build-evergreen": "check-npm-client && BROWSERSLIST_ENV=evergreen yarn run start-build-do",
"start-build-if-desktop": "check-npm-client && node -e \"(process.env.CALYPSO_ENV === 'desktop' || process.env.CALYPSO_ENV === 'desktop-development') && process.exit(1)\" || yarn run start-build-fallback",
"start-build-if-web": "check-npm-client && node -e \"(process.env.CALYPSO_ENV !== 'desktop' && process.env.CALYPSO_ENV !== 'desktop-development') && process.exit(1)\" || yarn run start-build-web",
"start-build-web": "check-npm-client && run-p -s start-build-web-if-fallback start-build-web-if-evergreen",
"start-build-web-if-fallback": "check-npm-client && node -e \"process.env.DEV_TARGET === 'fallback' && process.exit(1)\" || yarn run start-build-fallback",
"start-build-web-if-evergreen": "check-npm-client && node -e \"(! process.env.DEV_TARGET || process.env.DEV_TARGET === 'evergreen') && process.exit(1)\" || yarn run start-build-evergreen",
"pretest": "check-npm-client && yarn run install-if-deps-outdated",
"test": "check-npm-client && run-s -s test-client test-packages test-server",
"pretest-client": "check-npm-client && yarn run -s pretest",
"test-client": "check-npm-client && jest -c=test/client/jest.config.js",
"test-client:watch": "check-npm-client && yarn run -s test-client -- --watch",
"test-e2e": "check-npm-client && cd test/e2e && yarn install --frozen-lockfile --ignore-scripts && yarn run test",
"encrypt-e2e-config": "check-npm-client && 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": "check-npm-client && 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": "check-npm-client && yarn run -s pretest",
"test-integration": "check-npm-client && jest -c=test/integration/jest.config.js",
"test-integration:watch": "check-npm-client && yarn run -s test-integration -- --watch",
"test-packages": "check-npm-client && jest -c=test/packages/jest.config.js",
"test-packages:watch": "check-npm-client && jest -c=test/packages/jest.config.js --watch",
"pretest-server": "check-npm-client && yarn run -s pretest",
"test-server": "check-npm-client && jest -c=test/server/jest.config.js",
"test-server:coverage": "check-npm-client && yarn run -s test-server -- --coverage",
"test-server:watch": "check-npm-client && yarn run -s test-server -- --watch",
"translate": "check-npm-client && 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/**' '!apps/full-site-editing/**' '!**/node_modules/**'",
"tsc": "check-npm-client && NODE_OPTIONS='--max-old-space-size=4096' tsc",
"typecheck": "check-npm-client && yarn run tsc -- --project client",
"update-deps": "check-npm-client && npx rimraf yarn.lock && yarn run distclean && PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install && replace --silent 'http://' 'https://' . --recursive --include='yarn.lock' && touch -m node_modules",
"validate-fallback-es5": "check-npm-client && npx eslint --parser-options=ecmaVersion:5 --no-eslintrc --no-ignore ./public/fallback/*.js",
"prewhybundled": "check-npm-client && NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=withreasons CONCATENATE_MODULES=false yarn run -s build-client-evergreen",
"whybundled": "check-npm-client && whybundled client/stats.json",
"composite-checkout-demo": "check-npm-client && webpack-dev-server --config ./packages/composite-checkout/webpack.config.demo.js --mode development",
"components:storybook:start": "check-npm-client && start-storybook -c packages/components/.storybook",
"media-library:storybook:start": "check-npm-client && start-storybook -c packages/media-library/.storybook -h calypso.localhost -p 3001"
},
"dependencies": {
"@automattic/babel-plugin-i18n-calypso": "^1.1.0",
"@automattic/babel-plugin-transform-wpcalypso-async": "^1.0.1",
"@automattic/calypso-analytics": "^1.0.0-alpha.1",
"@automattic/calypso-build": "^6.1.0",
"@automattic/calypso-color-schemes": "^2.1.0",
"@automattic/calypso-polyfills": "^1.0.0",
"@automattic/color-studio": "2.2.1",
"@automattic/components": "^1.0.0-alpha.1",
"@automattic/composite-checkout": "^1.0.0",
"@automattic/data-stores": "^1.0.0-alpha.1",
"@automattic/effective-module-tree": "^0.1.0",
"@automattic/format-currency": "^1.0.0-alpha.0",
"@automattic/full-site-editing": "^1.0.0",
"@automattic/load-script": "^1.0.0",
"@automattic/material-design-icons": "^1.0.0",
"@automattic/media-library": "^1.0.0-alpha.0",
"@automattic/notifications": "^1.0.0",
"@automattic/o2-blocks": "^1.0.0",
"@automattic/react-i18n": "^1.0.0-alpha.0",
"@automattic/tree-select": "^1.0.3",
"@automattic/viewport": "^1.0.0",
"@automattic/viewport-react": "^1.0.0",
"@automattic/webpack-config-flag-plugin": "^1.0.0",
"@automattic/webpack-extensive-lodash-replacement-plugin": "^0.0.2",
"@automattic/webpack-inline-constant-exports-plugin": "^0.0.1",
"@automattic/wpcom-block-editor": "^1.0.0-alpha.0",
"@babel/cli": "7.8.4",
"@babel/core": "7.9.0",
"@babel/register": "7.9.0",
"@babel/runtime": "7.9.2",
"@signal-noise/stylelint-scales": "1.2.0",
"@storybook/addon-actions": "5.3.14",
"@storybook/preset-scss": "1.0.2",
"@storybook/preset-typescript": "1.2.0",
"@storybook/react": "5.3.14",
"@testing-library/jest-dom": "4.2.4",
"@testing-library/react": "9.3.3",
"@types/classnames": "2.2.10",
"@types/cookie": "0.3.3",
"@types/debug": "4.1.5",
"@types/fast-json-stable-stringify": "2.0.0",
"@types/jest": "25.1.4",
"@types/lodash": "4.14.149",
"@types/page": "1.8.0",
"@types/qs": "6.9.1",
"@types/react": "16.9.23",
"@types/react-modal": "3.10.5",
"@types/react-redux": "7.1.7",
"@types/react-router-dom": "5.1.3",
"@types/react-transition-group": "4.2.4",
"@types/webpack-env": "1.15.1",
"@types/wordpress__api-fetch": "3.2.2",
"@types/wordpress__block-editor": "2.2.6",
"@types/wordpress__block-library": "2.6.0",
"@types/wordpress__components": "8.5.2",
"@types/wordpress__compose": "3.4.0",
"@types/wordpress__data": "4.6.6",
"@types/wordpress__data-controls": "1.0.1",
"@types/wordpress__editor": "9.4.1",
"@types/wordpress__element": "2.4.0",
"@types/wordpress__i18n": "3.4.0",
"@types/wordpress__is-shallow-equal": "1.4.0",
"@types/wordpress__keycodes": "2.3.0",
"@types/wordpress__url": "2.3.0",
"@typescript-eslint/eslint-plugin": "2.16.0",
"@typescript-eslint/parser": "2.16.0",
"@wordpress/a11y": "2.8.0",
"@wordpress/api-fetch": "3.12.0",
"@wordpress/babel-plugin-makepot": "3.4.0",
"@wordpress/base-styles": "1.5.0",
"@wordpress/block-directory": "1.6.0",
"@wordpress/block-editor": "3.8.0",
"@wordpress/block-library": "2.15.0",
"@wordpress/blocks": "6.13.0",
"@wordpress/browserslist-config": "2.6.0",
"@wordpress/components": "9.3.0",
"@wordpress/compose": "3.12.0",
"@wordpress/core-data": "2.13.0",
"@wordpress/data": "4.15.0",
"@wordpress/data-controls": "1.9.0",
"@wordpress/dependency-extraction-webpack-plugin": "2.4.0",
"@wordpress/dom": "2.8.0",
"@wordpress/dom-ready": "2.8.0",
"@wordpress/e2e-test-utils": "4.4.0",
"@wordpress/edit-post": "3.14.0",
"@wordpress/editor": "9.13.0",
"@wordpress/element": "2.12.0",
"@wordpress/format-library": "1.15.0",
"@wordpress/i18n": "3.10.0",
"@wordpress/icons": "1.2.0",
"@wordpress/is-shallow-equal": "1.8.0",
"@wordpress/jest-preset-default": "5.5.0",
"@wordpress/keyboard-shortcuts": "1.2.0",
"@wordpress/keycodes": "2.10.0",
"@wordpress/media-utils": "1.8.0",
"@wordpress/notices": "2.1.0",
"@wordpress/npm-package-json-lint-config": "2.2.0",
"@wordpress/nux": "3.13.0",
"@wordpress/plugins": "2.13.0",
"@wordpress/primitives": "1.2.0",
"@wordpress/priority-queue": "1.5.1",
"@wordpress/redux-routine": "3.7.0",
"@wordpress/rich-text": "3.13.0",
"@wordpress/scripts": "7.2.0",
"@wordpress/server-side-render": "1.9.0",
"@wordpress/shortcode": "2.6.0",
"@wordpress/url": "2.12.0",
"@wordpress/viewport": "2.14.0",
"acorn": "6.4.1",
"babel-eslint": "10.0.3",
"babel-jest": "25.1.0",
"babel-plugin-add-module-exports": "1.0.2",
"babel-plugin-dynamic-import-node": "2.3.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"browserslist": "4.11.1",
"calypso-codemods": "^0.1.6",
"caniuse-lite": "1.0.30001041",
"chai": "4.2.0",
"chai-enzyme": "1.0.0-beta.1",
"chalk": "3.0.0",
"check-node-version": "4.0.2",
"check-npm-client": "1.1.1",
"chokidar-cli": "2.1.0",
"chroma-js": "2.1.0",
"circular-dependency-plugin": "5.2.0",
"concurrently": "5.1.0",
"cross-env": "6.0.3",
"duplicate-package-checker-webpack-plugin": "3.0.0",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.1",
"enzyme-to-json": "3.4.3",
"eslint": "6.8.0",
"eslint-config-prettier": "6.9.0",
"eslint-config-wpcalypso": "^5.0.0",
"eslint-plugin-import": "2.20.0",
"eslint-plugin-jest": "23.6.0",
"eslint-plugin-jsdoc": "18.11.0",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-react": "7.18.3",
"eslint-plugin-wpcalypso": "^4.1.0",
"exports-loader": "0.7.0",
"fake-indexeddb": "3.0.0",
"fork-ts-checker-webpack-plugin": "3.1.1",
"gettext-parser": "4.0.3",
"glob": "7.1.6",
"globby": "10.0.1",
"gzip-size": "5.1.1",
"html-loader": "0.5.5",
"html-webpack-plugin": "3.2.0",
"husky": "3.1.0",
"i18n-calypso": "^5.0.0",
"i18n-calypso-cli": "^1.0.0",
"ignore-loader": "0.1.2",
"imports-loader": "0.8.0",
"interpolate-components": "1.1.1",
"is-number": "7.0.0",
"jest": "25.1.0",
"jest-docblock": "25.1.0",
"jest-emotion": "10.0.27",
"jest-enzyme": "7.1.2",
"jest-fetch-mock": "2.1.2",
"jest-junit": "9.0.0",
"lerna": "3.20.2",
"loader-utils": "1.2.3",
"lodash": "4.17.15",
"md5-file": "4.0.0",
"micromatch": "4.0.2",
"mixedindentlint": "1.2.0",
"mkdirp": "0.5.1",
"mock-fs": "4.11.0",
"mockdate": "2.0.5",
"moment-timezone-data-webpack-plugin": "1.1.0",
"ncp": "2.0.0",
"nock": "11.7.2",
"node-sass": "4.13.0",
"node-sass-package-importer": "5.3.2",
"npm-merge-driver": "2.3.5",
"npm-package-json-lint": "4.6.0",
"npm-run-all": "4.1.5",
"phoenix": "1.4.16",
"photon": "^3.0.0",
"postcss-cli": "6.1.3",
"prettier": "npm:[email protected]",
"qs": "6.9.1",
"react-docgen-typescript-loader": "3.6.0",
"react-test-renderer": "16.12.0",
"readline-sync": "1.4.10",
"replace": "1.1.5",
"rimraf": "3.0.0",
"sinon": "9.0.2",
"sinon-chai": "3.3.0",
"socket.io": "2.3.0",
"source-map": "0.7.3",
"source-map-loader": "0.2.4",
"source-map-support": "0.5.16",
"stackframe": "1.1.0",
"stacktrace-gps": "3.0.3",
"stylelint": "9.10.1",
"supertest": "4.0.2",
"svgstore-cli": "1.3.1",
"terser": "4.4.3",
"ts-loader": "6.2.1",
"typescript": "3.8.3",
"vfile-message": "^2.0.0",
"webpack": "4.42.0",
"webpack-bundle-analyzer": "3.7.0",
"webpack-cli": "3.3.10",
"webpack-dev-middleware": "3.7.2",
"webpack-dev-server": "3.10.3",
"webpack-hot-middleware": "2.25.0",
"webpack-node-externals": "1.7.2",
"whybundled": "1.4.2",
"wp-calypso": "^0.17.0",
"wpcom": "^6.0.0",
"wpcom-proxy-request": "^6.0.0",
"yargs": "13.3.0"
},
"optionalDependencies": {
"fsevents": "2.1.2"
},
"husky": {
"hooks": {
"pre-commit": "yarn run -s install-if-no-packages && node bin/pre-commit-hook.js",
"pre-push": "yarn run -s install-if-no-packages && node bin/pre-push-hook.js"
}
},
"devDependencies": {
"check-npm-client": "1.1.1"
}
}