forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
332 lines (332 loc) · 16.3 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
{
"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"
]
},
"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",
"Electron >= 11",
"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": "^16.7.0",
"yarn": "^3.0.0"
},
"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 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 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)?$'",
"build-server": "mkdirp build && BROWSERSLIST_ENV=server webpack --config client/webpack.config.node.js --stats-preset errors-only && yarn run build-server:copy-modules",
"build-server:copy-modules": "node -e \"process.env.CALYPSO_ENV === 'production' && process.exit(1)\" || node bin/copy-production-modules.js",
"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",
"build-client-fallback": "BROWSERSLIST_ENV=defaults yarn run build-client-do && 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; } && yarn workspaces foreach --all --parallel --verbose run prepare",
"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": "yarn workspaces foreach --all --parallel --verbose --exclude 'wp-calypso' run clean",
"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' '**/.cache' .yarn/install-state.gz",
"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": "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'",
"start": "npx check-node-version --package && node bin/welcome.js && yarn run build && 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 run start",
"start-jetpack-cloud-p": "PORT=3001 CALYPSO_ENV=jetpack-cloud-development yarn run build-server && 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 test-client --watch",
"test-integration": "jest -c=test/integration/jest.config.js",
"test-integration:watch": "yarn run 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 test-server --coverage",
"test-server:watch": "yarn run 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",
"whybundled": "NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=withreasons CONCATENATE_MODULES=false yarn run build-client-evergreen && whybundled client/stats.json",
"whybundled:server": "NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=withreasons CONCATENATE_MODULES=false yarn run build-server && whybundled client/stats-server.json",
"composite-checkout-demo": "echo 'Deprecated, run `yarn run 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": "^9.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.15.0",
"@babel/eslint-parser": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/register": "^7.15.3",
"@babel/runtime": "^7.15.3",
"@signal-noise/stylelint-scales": "^2.0.0",
"@storybook/react": "^6.3.8",
"@typeform/embed-react": "^1.1.0",
"@types/cookie": "^0.4.1",
"@types/debug": "^4.1.7",
"@types/fast-json-stable-stringify": "^2.0.0",
"@types/lodash": "^4.14.171",
"@types/page": "^1.11.3",
"@types/qs": "^6.9.7",
"@types/react": "^16.14.11",
"@types/react-modal": "^3.12.1",
"@types/react-redux": "^7.1.18",
"@types/react-router-dom": "^5.1.8",
"@types/react-transition-group": "^4.4.2",
"@types/uuid": "^8.3.1",
"@types/validator": "^13.6.3",
"@types/webpack-env": "^1.16.2",
"@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.10",
"@types/wordpress__data-controls": "^1.0.5",
"@types/wordpress__editor": "^9.4.6",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"@wordpress/base-styles": "^3.4.3",
"@wordpress/components": "^13.0.3",
"@wordpress/data": "^4.27.3",
"@wordpress/element": "^2.20.3",
"@wordpress/eslint-plugin": "^9.0.4",
"@wordpress/i18n": "^3.20.0",
"@wordpress/icons": "^2.10.3",
"@wordpress/is-shallow-equal": "^3.1.3",
"@wordpress/jest-preset-default": "^7.0.3",
"@wordpress/npm-package-json-lint-config": "^4.0.3",
"@wordpress/url": "^2.22.2",
"@wp-g2/create-styles": "^0.0.154",
"autoprefixer": "^10.2.5",
"babel-jest": "^27.0.6",
"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",
"chalk": "^4.0.0",
"check-node-version": "^4.0.2",
"cheerio": "^1.0.0-rc.3",
"chokidar-cli": "^2.1.0",
"chroma-js": "^2.1.0",
"concurrently": "^5.1.0",
"config": "^3.3.6",
"core-js-bundle": "^3.6.4",
"css-loader": "^3.4.2",
"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.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-inclusive-language": "^2.1.1",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsdoc": "^36.0.8",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-md": "^1.0.19",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-react": "^7.25.1",
"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.3",
"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": "^27.0.6",
"jest-environment-jsdom": "^27.0.6",
"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-package-json-lint": "^5.0.0",
"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",
"react-native": "^0.63.4",
"readline-sync": "^1.4.10",
"reakit-utils": "^0.15.1",
"recursive-copy": "^2.0.10",
"regenerator-runtime": "^0.13.4",
"replace": "^1.1.5",
"request": "^2.88.2",
"sass": "^1.37.5",
"sass-loader": "^12.1.0",
"sharp": "^0.28",
"sinon": "^11.1.2",
"sinon-chai": "^3.7.0",
"source-map": "^0.7.3",
"stackframe": "^1.1.1",
"style-loader": "^1.2.1",
"stylelint": "^13.13.1",
"terser": "^5.5.1",
"terser-webpack-plugin": "^5.1.1",
"tslib": "^2.3.0",
"typescript": "^4.3.5",
"webpack": "^5.46.0",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.7.2",
"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 install-if-no-packages && node bin/pre-commit-hook.js",
"pre-push": "yarn run install-if-no-packages && node bin/pre-push-hook.js"
}
},
"devDependencies": {
"bunyan": "^1.8.15",
"chokidar": "^3.5.1",
"eslint-nibble": "^7.0.0"
},
"resolutions": {
"newspack-components/@wordpress/base-styles": "3.4.3",
"@automattic/newspack-blocks/[email protected]": "patch:[email protected]#.patches/[email protected]",
"@automattic/newspack-blocks/prettier": "npm:[email protected]"
},
"packageManager": "[email protected]"
}