forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
334 lines (334 loc) · 16.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
{
"name": "wp-calypso",
"author": "Automattic Inc.",
"version": "0.17.0",
"description": "A pure REST-API and JS based version of the WordPress.com admin",
"private": true,
"workspaces": {
"packages": [
"client",
"apps/*",
"packages/*",
"test/e2e",
"test/e2e/lib/reporter"
],
"nohoist": [
"**/config",
"**/testarmada-magellan",
"**/testarmada-magellan-*",
"calypso/@wordpress/interface",
"calypso/@wordpress/edit-post"
]
},
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/Automattic/wp-calypso.git"
},
"browserslist": {
"wpcom": [
"extends @wordpress/browserslist-config"
],
"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",
"Firefox ESR",
"unreleased Chrome versions",
"unreleased ChromeAndroid versions",
"unreleased Firefox versions",
"unreleased FirefoxAndroid versions",
"unreleased Edge versions",
"unreleased Opera versions"
],
"server": [
"current node"
],
"test": [
"current node"
]
},
"engines": {
"node": "^14.16.1",
"yarn": "^1.22.10"
},
"scripts": {
"analyze-bundles": "yarn run build-client-stats && webpack-bundle-analyzer client/stats.json public/evergreen -h 127.0.0.1 -p 9898 -s gzip",
"analyze-bundles:server": "yarn run build-server-stats && webpack-bundle-analyzer client/stats-server.json build -h 127.0.0.1 -p 9898 -s parsed",
"analyze-icfy": "yarn run build-client-stats && node --max-old-space-size=4096 bin/icfy-analyze.js",
"postcss": "postcss -r --config packages/calypso-build/postcss.config.js",
"build": "yarn run build-static && yarn run build-css && run-p -s build-devdocs:* && run-p -s build-server build-client-if-prod build-client-if-desktop",
"build-css": "run-p -s build-css:*",
"build-css:directly": "node bin/render-stylesheet.js --in client/assets/stylesheets/directly.scss --out public/directly.css && yarn run -s postcss public/directly.css",
"build-css:reader-mobile": "node bin/render-stylesheet.js --in client/assets/stylesheets/reader-mobile.scss --out public/reader-mobile.css && yarn run -s postcss public/reader-mobile.css",
"build-devdocs:search-index": "node bin/generate-devdocs-search-index.js",
"build-devdocs:selectors-index": "node bin/generate-devdocs-selectors-index.js",
"build-desktop": "cd desktop && yarn install --frozen-lockfile && yarn run build",
"build-desktop:source": "node -e \"console.log( 'Deprecated (legacy). Remove on TeamCity configuration update.')\"",
"build-desktop:app": "cd desktop && yarn run build",
"build-desktop:config": "cd desktop && yarn run build:config",
"build-desktop:secrets": "cd desktop && yarn run build:secrets",
"build-desktop:install-app-deps": "cd desktop && yarn install --frozen-lockfile",
"test-desktop:e2e": "node desktop/e2e/run.js",
"build-docker": "node bin/build-docker.js",
"build-static": "npx ncp static public && npx ncp client/lib/service-worker public --filter=\"service-worker(/service-worker\\.js)?$\"",
"prebuild-server": "mkdirp build",
"build-server": "BROWSERSLIST_ENV=server webpack --config client/webpack.config.node.js --stats-preset errors-only $WEBPACK_OPTIONS",
"build-server:copy-modules": "node bin/copy-production-modules.js",
"postbuild-server": "node -e \"process.env.CALYPSO_ENV === 'production' && process.exit(1)\" || yarn run build-server:copy-modules",
"build-server-stats": "NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=true yarn run build-server",
"build-client": "yarn run build-client-evergreen",
"build-client-do": "webpack --config client/webpack.config.js --stats-preset errors-only $WEBPACK_OPTIONS",
"build-client-fallback": "BROWSERSLIST_ENV=defaults yarn run build-client-do",
"postbuild-client-fallback": "yarn run validate-fallback-es5",
"build-client-evergreen": "BROWSERSLIST_ENV=evergreen yarn run build-client-do",
"build-client-both": "CONCURRENT_BUILDS=2 concurrently -c cyan -n \"fallback ,evergreen\" \"yarn run build-client-fallback\" \"yarn run build-client-evergreen\"",
"build-client-if-prod": "node -e \"process.env.CALYPSO_ENV === 'production' && process.exit(1)\" || yarn run build-client-both && yarn run build-languages-if-enabled",
"build-client-if-desktop": "node -e \"(process.env.CALYPSO_ENV === 'desktop' || process.env.CALYPSO_ENV === 'desktop-development') && process.exit(1)\" || yarn run build-client-fallback",
"build-client-stats": "NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=true yarn run build-client-evergreen",
"build-packages": "{ [ \"$SKIP_TSC\" = \"true\" ] || tsc --build packages/tsconfig.json; } && lerna run prepare --stream",
"build-languages": "yarn run translate && node bin/build-languages.js",
"build-languages-if-enabled": "node -e \"(process.env.BUILD_TRANSLATION_CHUNKS === 'true' || process.env.ENABLE_FEATURES === 'use-translation-chunks') && process.exit(1)\" || yarn run build-languages",
"calypso-doctor": "./node_modules/.bin/calypso-doctor",
"clean": "yarn run clean:packages && yarn run clean:build && yarn run clean:public && yarn run clean:translations",
"clean:build": "npx rimraf build client/server/bundler/*.json client/server/devdocs/search-index.js",
"clean:packages": "lerna run clean --stream",
"clean:public": "npx rimraf public",
"clean:translations": "npx rimraf build/strings calypso-strings.pot chunks-map.*.json",
"distclean": "yarn run clean && npx rimraf node_modules client/node_modules desktop/node_modules apps/*/node_modules packages/*/node_modules test/e2e/node_modules .cache apps/*/.cache vendor",
"docker": "docker run -it --name wp-calypso --rm -p 80:3000 wp-calypso",
"docker-jetpack-cloud": "docker run -it --env CALYPSO_ENV=jetpack-cloud-production --name wp-calypso --rm -p 80:3000 wp-calypso",
"eslint-branch": "node bin/eslint-branch.js",
"install-if-no-packages": "node bin/install-if-no-packages.js",
"postinstall": "test -n \"$DISABLEPOSTINSTALL\" || ((node -e \"process.exit(process.env.CALYPSO_DOCTOR_SKIP !== 'true')\" || yarn run calypso-doctor) && yarn run build-packages)",
"lint": "run-s -s lint:*",
"lint:config-defaults": "node bin/validate-config-keys.js",
"lint:css": "stylelint \"**/*.scss\" --syntax scss",
"lint:js": "eslint --cache .",
"lint:mixedindent": "mixedindentlint --ignore-comments \"client/**/*.scss\" \"assets/**/*.scss\" \"**/*.js\" \"**/*.jsx\" \"**/*.tsx\" \"**/*.tsx\" \"!build/**\" \"!node_modules/**\" \"!public/**\" \"!client/config/index.js\"",
"lint:package-json": "npmPkgJsonLint './package.json' './client/package.json' './packages/*/package.json' './apps/*/package.json'",
"prestart": "npx check-node-version --package && node bin/welcome.js",
"start": "yarn run -s build",
"poststart": "run-p -s start-build-if-web start-build-if-desktop",
"start-fallback": "DEV_TARGET=fallback yarn run start",
"start-jetpack-cloud": "CALYPSO_ENV=jetpack-cloud-development yarn start",
"start-jetpack-cloud-p": "PORT=3001 CALYPSO_ENV=jetpack-cloud-development yarn run build-server",
"poststart-jetpack-cloud-p": "PORT=3001 CALYPSO_ENV=jetpack-cloud-development yarn run start-build-web",
"reformat-files": "./node_modules/.bin/prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
"start-build-do": "node build/server.js | bunyan -o short",
"start-build-fallback": "BROWSERSLIST_ENV=defaults yarn run start-build-do",
"start-build-evergreen": "BROWSERSLIST_ENV=evergreen yarn run start-build-do",
"start-build-if-desktop": "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": "node -e \"(process.env.CALYPSO_ENV !== 'desktop' && process.env.CALYPSO_ENV !== 'desktop-development') && process.exit(1)\" || yarn run start-build-web",
"start-build-web": "run-p -s start-build-web-if-fallback start-build-web-if-evergreen",
"start-build-web-if-fallback": "node -e \"process.env.DEV_TARGET === 'fallback' && process.exit(1)\" || yarn run start-build-fallback",
"start-build-web-if-evergreen": "node -e \"(! process.env.DEV_TARGET || process.env.DEV_TARGET === 'evergreen') && process.exit(1)\" || yarn run start-build-evergreen",
"test": "run-s -s test-client test-packages test-server test-build-tools",
"test-client": "TZ=UTC jest -c=test/client/jest.config.js",
"test-client:watch": "yarn run -s test-client --watch",
"test-e2e": "cd test/e2e && yarn install --frozen-lockfile --ignore-scripts && yarn 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",
"test-integration": "jest -c=test/integration/jest.config.js",
"test-integration:watch": "yarn 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",
"test-server": "jest -c=test/server/jest.config.js",
"test-server:coverage": "yarn run -s test-server --coverage",
"test-server:watch": "yarn run -s test-server --watch",
"test-build-tools": "jest -c=test/build-tools/jest.config.js",
"test-visual": "node ./test/visual/generate-themes-data && backstop reference --config=./test/visual/pretest.config.js --docker && backstop test --config=./test/visual/backstop.config.js --docker",
"test-visual-approve": "node ./test/visual/generate-themes-data && backstop approve --config=./test/visual/backstop.config.js --docker",
"test-visual-reference": "node ./test/visual/generate-themes-data && backstop reference --config=./test/visual/pretest.config.js --docker && backstop reference --config=./test/visual/backstop.config.js --docker",
"translate": "npx rimraf build/strings && wp-babel-makepot './{client,packages,apps}/**/*.{js,jsx,ts,tsx}' --ignore '**/node_modules/**,**/test/**,**/*.d.ts' --base './' --dir './build/strings' --output './calypso-strings.pot'",
"tsc": "NODE_OPTIONS='--max-old-space-size=4096' tsc",
"typecheck": "yarn run tsc --project client",
"update-deps": "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": "npx eslint --parser-options=ecmaVersion:5 --no-eslintrc --no-ignore ./public/fallback/*.js",
"prewhybundled": "NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=withreasons CONCATENATE_MODULES=false yarn run -s build-client-evergreen",
"whybundled": "whybundled client/stats.json",
"prewhybundled:server": "NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=withreasons CONCATENATE_MODULES=false yarn run -s build-server",
"whybundled:server": "whybundled client/stats-server.json",
"composite-checkout-demo": "echo 'Deprecated, run `yarn composite-checkout:storybook:start` instead'",
"components:storybook:start": "start-storybook -c packages/components/.storybook",
"search:storybook:start": "start-storybook -c packages/search/.storybook",
"composite-checkout:storybook:start": "start-storybook -c packages/composite-checkout/.storybook"
},
"dependencies": {
"@automattic/babel-plugin-i18n-calypso": "^1.2.0",
"@automattic/babel-plugin-transform-wpcalypso-async": "^1.0.1",
"@automattic/calypso-build": "^8.0.0",
"@automattic/calypso-color-schemes": "^2.1.1",
"@automattic/calypso-doctor": "^0.1.0",
"@automattic/calypso-polyfills": "^1.0.0",
"@automattic/color-studio": "2.5.0",
"@automattic/components": "^1.0.0-alpha.1",
"@automattic/data-stores": "^2.0.0",
"@automattic/i18n-utils": "^1.0.0",
"@automattic/languages": "^1.0.0",
"@automattic/typography": "^1.0.0",
"@automattic/viewport": "^1.0.0",
"@automattic/wp-babel-makepot": "^1.0.0",
"@babel/core": "^7.14.0",
"@babel/eslint-parser": "^7.13.14",
"@babel/register": "^7.13.16",
"@babel/runtime": "^7.14.0",
"@signal-noise/stylelint-scales": "^2.0.0",
"@storybook/react": "^6.1.10",
"@types/classnames": "^2.3.0",
"@types/cookie": "^0.4.0",
"@types/debug": "^4.1.5",
"@types/fast-json-stable-stringify": "^2.0.0",
"@types/jest": "^25.2.3",
"@types/lodash": "^4.14.170",
"@types/page": "^1.11.2",
"@types/qs": "^6.9.6",
"@types/react": "^16.14.8",
"@types/react-modal": "^3.12.0",
"@types/react-redux": "^7.1.16",
"@types/react-router-dom": "^5.1.7",
"@types/react-transition-group": "^4.4.1",
"@types/uuid": "^8.3.0",
"@types/validator": "^13.1.3",
"@types/webpack-env": "^1.16.0",
"@types/wordpress__api-fetch": "^3.2.4",
"@types/wordpress__block-editor": "^2.2.9",
"@types/wordpress__block-library": "^2.6.1",
"@types/wordpress__components": "^9.8.6",
"@types/wordpress__compose": "^3.4.3",
"@types/wordpress__data": "^4.6.9",
"@types/wordpress__data-controls": "^1.0.4",
"@types/wordpress__editor": "^9.4.6",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"@wordpress/base-styles": "^3.4.3",
"@wordpress/components": "^13.0.3",
"@wordpress/element": "^2.20.3",
"@wordpress/eslint-plugin": "^9.0.4",
"@wordpress/i18n": "^3.20.0",
"@wordpress/icons": "^2.10.3",
"@wordpress/jest-preset-default": "^7.0.3",
"@wordpress/npm-package-json-lint-config": "^4.0.3",
"@wordpress/url": "^2.22.2",
"autoprefixer": "^10.2.5",
"babel-jest": "^26.3.0",
"babel-loader": "^8.2.2",
"babel-plugin-dynamic-import-node": "^2.3.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"backstopjs": "5.1.0",
"browserslist": "^4.16.0",
"calypso": "^0.17.0",
"calypso-codemods": "^0.1.6",
"caniuse-lite": "^1.0.30001173",
"capture-website": "^1.0.0",
"chai": "^4.3.4",
"chai-enzyme": "^1.0.0-beta.1",
"chalk": "^4.0.0",
"check-node-version": "^4.0.2",
"chokidar-cli": "^2.1.0",
"chroma-js": "^2.1.0",
"concurrently": "^5.1.0",
"config": "^3.3.6",
"debug": "^4.1.1",
"doctrine": "^3.0.0",
"enhanced-resolve": "^5.8.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.1",
"enzyme-to-json": "^3.4.3",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-inclusive-language": "^2.1.1",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jsdoc": "^32.3.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-md": "^1.0.19",
"eslint-plugin-mocha": "^8.2.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-wpcalypso": "^5.1.0",
"eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0",
"exports-loader": "^0.7.0",
"fake-indexeddb": "^3.1.2",
"fork-ts-checker-webpack-plugin": "^3.1.1",
"gettext-parser": "^4.0.3",
"glob": "^7.1.6",
"globby": "^10.0.1",
"gzip-size": "^6.0.0",
"html-loader": "^0.5.5",
"husky": "^4.2.5",
"i18n-calypso": "^5.0.0",
"i18n-calypso-cli": "^1.0.0",
"ignore-loader": "^0.1.2",
"imports-loader": "^0.8.0",
"jest": "^26.4.0",
"jest-environment-jsdom": "^26.6.2",
"jest-enzyme": "^7.1.2",
"jest-junit": "^9.0.0",
"lerna": "^4.0.0",
"loader-utils": "^1.2.3",
"lodash": "^4.17.21",
"lunr": "^2.3.8",
"mini-css-extract-plugin": "^1.6.0",
"mixedindentlint": "^1.2.0",
"mkdirp": "^1.0.4",
"ncp": "^2.0.0",
"nock": "^12.0.3",
"npm-merge-driver": "^2.3.5",
"npm-run-all": "^4.1.5",
"photon": "^4.0.0",
"postcss": "^8.2.15",
"postcss-cli": "^8.3.1",
"postcss-custom-properties": "^11.0.0",
"prettier": "npm:[email protected]",
"qs": "^6.9.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"readline-sync": "^1.4.10",
"recursive-copy": "^2.0.10",
"replace": "^1.1.5",
"request": "^2.88.2",
"sass": "^1.32.13",
"sharp": "^0.25.3",
"sinon": "^11.1.1",
"sinon-chai": "^3.5.0",
"source-map": "^0.7.3",
"stackframe": "^1.1.1",
"style-loader": "^1.2.1",
"stylelint": "^13.7.0",
"svgstore-cli": "^1.3.1",
"terser": "^5.5.1",
"terser-webpack-plugin": "^5.1.1",
"tslib": "^2.2.0",
"typescript": "^4.3.2",
"webpack": "^5.36.2",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.6.0",
"webpack-dev-middleware": "^5.0.0",
"whybundled": "^2.0.0",
"wpcom": "^6.0.0",
"yargs": "^17.0.1"
},
"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": {
"bunyan": "^1.8.15",
"chokidar": "^3.5.1",
"eslint-nibble": "^6.1.0"
}
}