-
Notifications
You must be signed in to change notification settings - Fork 4k
/
package.json
executable file
·334 lines (334 loc) · 14.6 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": "gutenberg",
"version": "12.6.0-rc.1",
"private": true,
"description": "A new WordPress editor experience.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"keywords": [
"WordPress",
"editor"
],
"homepage": "https://github.com/WordPress/gutenberg/",
"repository": "git+https://github.com/WordPress/gutenberg.git",
"bugs": {
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=10.0.0",
"npm": ">=6.9.0 <7"
},
"config": {
"IS_GUTENBERG_PLUGIN": true
},
"dependencies": {
"@wordpress/a11y": "link:packages/a11y",
"@wordpress/admin-manifest": "link:packages/admin-manifest",
"@wordpress/annotations": "link:packages/annotations",
"@wordpress/api-fetch": "link:packages/api-fetch",
"@wordpress/autop": "link:packages/autop",
"@wordpress/blob": "link:packages/blob",
"@wordpress/block-directory": "link:packages/block-directory",
"@wordpress/block-editor": "link:packages/block-editor",
"@wordpress/block-library": "link:packages/block-library",
"@wordpress/block-serialization-default-parser": "link:packages/block-serialization-default-parser",
"@wordpress/block-serialization-spec-parser": "link:packages/block-serialization-spec-parser",
"@wordpress/blocks": "link:packages/blocks",
"@wordpress/components": "link:packages/components",
"@wordpress/compose": "link:packages/compose",
"@wordpress/core-data": "link:packages/core-data",
"@wordpress/customize-widgets": "link:packages/customize-widgets",
"@wordpress/data": "link:packages/data",
"@wordpress/data-controls": "link:packages/data-controls",
"@wordpress/date": "link:packages/date",
"@wordpress/deprecated": "link:packages/deprecated",
"@wordpress/dom": "link:packages/dom",
"@wordpress/dom-ready": "link:packages/dom-ready",
"@wordpress/edit-navigation": "link:packages/edit-navigation",
"@wordpress/edit-post": "link:packages/edit-post",
"@wordpress/edit-site": "link:packages/edit-site",
"@wordpress/edit-widgets": "link:packages/edit-widgets",
"@wordpress/editor": "link:packages/editor",
"@wordpress/element": "link:packages/element",
"@wordpress/escape-html": "link:packages/escape-html",
"@wordpress/format-library": "link:packages/format-library",
"@wordpress/hooks": "link:packages/hooks",
"@wordpress/html-entities": "link:packages/html-entities",
"@wordpress/i18n": "link:packages/i18n",
"@wordpress/icons": "link:packages/icons",
"@wordpress/interface": "link:packages/interface",
"@wordpress/is-shallow-equal": "link:packages/is-shallow-equal",
"@wordpress/keyboard-shortcuts": "link:packages/keyboard-shortcuts",
"@wordpress/keycodes": "link:packages/keycodes",
"@wordpress/list-reusable-blocks": "link:packages/list-reusable-blocks",
"@wordpress/media-utils": "link:packages/media-utils",
"@wordpress/notices": "link:packages/notices",
"@wordpress/nux": "link:packages/nux",
"@wordpress/plugins": "link:packages/plugins",
"@wordpress/primitives": "link:packages/primitives",
"@wordpress/priority-queue": "link:packages/priority-queue",
"@wordpress/react-i18n": "link:packages/react-i18n",
"@wordpress/react-native-aztec": "link:packages/react-native-aztec",
"@wordpress/react-native-bridge": "link:packages/react-native-bridge",
"@wordpress/react-native-editor": "link:packages/react-native-editor",
"@wordpress/redux-routine": "link:packages/redux-routine",
"@wordpress/reusable-blocks": "link:packages/reusable-blocks",
"@wordpress/rich-text": "link:packages/rich-text",
"@wordpress/server-side-render": "link:packages/server-side-render",
"@wordpress/shortcode": "link:packages/shortcode",
"@wordpress/token-list": "link:packages/token-list",
"@wordpress/url": "link:packages/url",
"@wordpress/viewport": "link:packages/viewport",
"@wordpress/warning": "link:packages/warning",
"@wordpress/widgets": "link:packages/widgets",
"@wordpress/wordcount": "link:packages/wordcount"
},
"devDependencies": {
"@actions/core": "1.4.0",
"@actions/github": "5.0.0",
"@babel/core": "7.16.0",
"@babel/plugin-syntax-jsx": "7.16.0",
"@babel/runtime-corejs3": "7.16.0",
"@babel/traverse": "7.16.0",
"@emotion/babel-plugin": "11.3.0",
"@emotion/jest": "11.7.1",
"@emotion/native": "^11.0.0",
"@octokit/rest": "16.26.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.2",
"@storybook/addon-a11y": "6.4.9",
"@storybook/addon-controls": "6.4.9",
"@storybook/addon-docs": "6.4.9",
"@storybook/addon-knobs": "6.2.9",
"@storybook/addon-storysource": "6.4.9",
"@storybook/addon-toolbars": "6.4.9",
"@storybook/addon-viewport": "6.4.9",
"@storybook/builder-webpack5": "6.4.9",
"@storybook/manager-webpack5": "6.4.9",
"@storybook/react": "6.4.9",
"@testing-library/jest-dom": "5.16.1",
"@testing-library/react": "11.2.2",
"@testing-library/react-native": "9.0.0",
"@types/babel__core": "^7.1.18",
"@types/classnames": "2.3.1",
"@types/eslint": "7.28.0",
"@types/estree": "0.0.50",
"@types/highlight-words-core": "1.2.1",
"@types/lodash": "4.14.172",
"@types/node": "^17.0.16",
"@types/npm-package-arg": "6.1.1",
"@types/prettier": "2.3.2",
"@types/qs": "6.9.7",
"@types/react": "^17.0.37",
"@types/requestidlecallback": "0.3.4",
"@types/semver": "7.3.8",
"@types/sprintf-js": "1.1.2",
"@types/uuid": "8.3.1",
"@wordpress/babel-plugin-import-jsx-pragma": "link:packages/babel-plugin-import-jsx-pragma",
"@wordpress/babel-plugin-makepot": "link:packages/babel-plugin-makepot",
"@wordpress/babel-preset-default": "link:packages/babel-preset-default",
"@wordpress/base-styles": "link:packages/base-styles",
"@wordpress/browserslist-config": "link:packages/browserslist-config",
"@wordpress/create-block": "link:packages/create-block",
"@wordpress/create-block-tutorial-template": "link:packages/create-block-tutorial-template",
"@wordpress/dependency-extraction-webpack-plugin": "link:packages/dependency-extraction-webpack-plugin",
"@wordpress/docgen": "link:packages/docgen",
"@wordpress/e2e-test-utils": "link:packages/e2e-test-utils",
"@wordpress/e2e-tests": "link:packages/e2e-tests",
"@wordpress/env": "link:packages/env",
"@wordpress/eslint-plugin": "link:packages/eslint-plugin",
"@wordpress/jest-console": "link:packages/jest-console",
"@wordpress/jest-preset-default": "link:packages/jest-preset-default",
"@wordpress/jest-puppeteer-axe": "link:packages/jest-puppeteer-axe",
"@wordpress/lazy-import": "link:packages/lazy-import",
"@wordpress/npm-package-json-lint-config": "link:packages/npm-package-json-lint-config",
"@wordpress/postcss-plugins-preset": "link:packages/postcss-plugins-preset",
"@wordpress/postcss-themes": "link:packages/postcss-themes",
"@wordpress/prettier-config": "link:packages/prettier-config",
"@wordpress/project-management-automation": "link:packages/project-management-automation",
"@wordpress/readable-js-assets-webpack-plugin": "link:packages/readable-js-assets-webpack-plugin",
"@wordpress/scripts": "link:packages/scripts",
"@wordpress/stylelint-config": "link:packages/stylelint-config",
"ajv": "8.7.1",
"ajv-draft-04": "1.0.0",
"appium": "1.22.0",
"babel-jest": "27.4.5",
"babel-loader": "8.2.3",
"babel-plugin-inline-json-import": "0.3.2",
"babel-plugin-react-native-classname-to-style": "1.2.2",
"babel-plugin-react-native-platform-specific-extensions": "1.1.1",
"babel-plugin-transform-remove-console": "6.9.4",
"benchmark": "2.1.4",
"browserslist": "4.17.6",
"chalk": "4.1.1",
"commander": "4.1.0",
"concurrently": "3.5.0",
"copy-webpack-plugin": "10.2.0",
"core-js-builder": "3.19.1",
"cross-env": "3.2.4",
"css-loader": "6.2.0",
"cssnano": "5.0.7",
"csstype": "^3.0.10",
"deep-freeze": "0.0.1",
"enzyme": "3.11.0",
"equivalent-key-map": "0.2.2",
"eslint-import-resolver-node": "0.3.4",
"eslint-plugin-eslint-comments": "3.1.2",
"eslint-plugin-import": "2.25.2",
"execa": "4.0.2",
"fast-glob": "3.2.7",
"glob": "7.1.2",
"husky": "7.0.0",
"inquirer": "7.1.0",
"jest": "27.4.5",
"jest-junit": "13.0.0",
"jest-message-util": "27.4.2",
"jest-watch-typeahead": "1.0.0",
"jsdom": "16.7.0",
"lerna": "3.22.1",
"lint-staged": "9.2.5",
"lodash": "4.17.21",
"make-dir": "3.0.0",
"metro-react-native-babel-preset": "0.66.2",
"metro-react-native-babel-transformer": "0.66.2",
"mkdirp": "0.5.1",
"nock": "12.0.3",
"node-watch": "0.7.0",
"npm-run-all": "4.1.5",
"patch-package": "6.2.2",
"postcss": "8.4.5",
"postcss-loader": "6.2.1",
"prettier": "npm:wp-prettier@2.2.1-beta-1",
"progress": "2.0.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.66.2",
"react-native-url-polyfill": "1.1.2",
"react-refresh": "0.10.0",
"react-test-renderer": "17.0.2",
"redux": "4.1.2",
"rimraf": "3.0.2",
"rtlcss": "2.6.2",
"sass": "1.35.2",
"sass-loader": "12.1.0",
"semver": "7.3.5",
"simple-git": "^2.35.0",
"snapshot-diff": "0.8.1",
"source-map-loader": "3.0.0",
"sprintf-js": "1.1.1",
"style-loader": "3.2.1",
"terser-webpack-plugin": "5.1.4",
"typescript": "4.4.2",
"uglify-js": "3.13.7",
"unzipper": "0.10.11",
"utility-types": "^3.10.0",
"uuid": "8.3.0",
"wd": "1.12.1",
"webpack": "5.65.0",
"webpack-bundle-analyzer": "4.4.2",
"worker-farm": "1.7.0"
},
"scripts": {
"analyze-bundles": "pnpm build -- --webpack-bundle-analyzer",
"api-docs:blocks": "node ./bin/api-docs/gen-block-lib-list.js",
"api-docs:ref": "node ./bin/api-docs/update-api-docs.js",
"api-docs:theme-ref": "node ./bin/api-docs/gen-theme-reference.js",
"clean:packages": "rimraf \"./packages/*/@(build|build-module|build-style)\"",
"clean:package-types": "tsc --build --clean",
"prebuild:packages": "pnpm clean:packages && pnpm run -r build",
"build:packages": "pnpm build:package-types && node ./bin/packages/build.js",
"build:package-types": "node ./bin/packages/validate-typescript-version.js && tsc --build",
"build:plugin-zip": "./bin/build-plugin-zip.sh",
"build": "pnpm build:packages && wp-scripts build",
"changelog": "./bin/plugin/cli.js changelog",
"check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2 --ignore=@react-native-community/cli,@react-native-community/cli-platform-ios\" \"wp-scripts check-licenses --dev\"",
"precheck-local-changes": "pnpm docs:build",
"check-local-changes": "( git diff -U0 | xargs -0 node bin/process-git-diff ) || ( echo \"There are local uncommitted changes after one or both of 'pnpm install' or 'pnpm docs:build'!\" && git diff --exit-code && exit 1 );",
"dev": "pnpm build:packages && concurrently \"wp-scripts start\" \"pnpm dev:packages\"",
"dev:packages": "node ./bin/packages/watch.js",
"distclean": "rimraf node_modules packages/*/node_modules",
"docs:gen": "node ./docs/tool/index.js",
"docs:build": "npm-run-all docs:gen api-docs:*",
"fixtures:clean": "rimraf \"test/integration/fixtures/blocks/*.+(json|serialized.html)\"",
"fixtures:generate": "cross-env GENERATE_MISSING_FIXTURES=y pnpm test-unit test/integration/full-content/ && pnpm format test/integration/fixtures/blocks/*.json",
"fixtures:regenerate": "pnpm fixtures:clean && pnpm fixtures:generate",
"format": "wp-scripts format",
"format-js": "wp-scripts format-js",
"format-php": "wp-env run composer run-script format",
"lint": "concurrently \"pnpm lint-js\" \"pnpm lint-pkg-json\" \"pnpm lint-css\"",
"lint-js": "wp-scripts lint-js",
"lint-js:fix": "pnpm lint-js -- --fix",
"prelint-php": "wp-env run composer 'install --no-interaction'",
"lint-php": "wp-env run composer run-script lint",
"lint-pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'",
"lint-css": "wp-scripts lint-style '**/*.scss'",
"lint-css:fix": "pnpm lint-css -- --fix",
"lint:md-js": "wp-scripts lint-md-js",
"lint:md-docs": "wp-scripts lint-md-docs",
"native": "pnpm run --filter react-native-editor",
"pot-to-php": "./bin/pot-to-php.js",
"postinstall": "patch-package && node ./patches/patch-xcode.js",
"prepublishOnly": "pnpm clean:package-types && pnpm build:packages",
"publish:check": "lerna updated",
"publish:patch": "lerna publish --dist-tag patch",
"publish:latest": "lerna publish",
"test": "pnpm lint && pnpm test-unit",
"test:create-block": "./bin/test-create-block.sh",
"test-e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js",
"test-e2e:debug": "wp-scripts --inspect-brk test-e2e --config packages/e2e-tests/jest.config.js --puppeteer-devtools",
"test-e2e:watch": "pnpm test-e2e -- --watch",
"test-performance": "wp-scripts test-e2e --config packages/e2e-tests/jest.performance.config.js",
"test-php": "pnpm lint-php && pnpm test-unit-php",
"test-php:watch": "wp-env run composer run-script test:watch",
"test-unit": "wp-scripts test-unit-js --config test/unit/jest.config.js",
"test-unit:date": "./bin/unit-test-date.sh",
"test-unit:debug": "wp-scripts --inspect-brk test-unit-js --runInBand --no-cache --verbose --config test/unit/jest.config.js ",
"test-unit:update": "pnpm test-unit -- --updateSnapshot",
"test-unit:watch": "pnpm test-unit -- --watch",
"pretest-unit-php": "wp-env start",
"test-unit-php": "wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/gutenberg/phpunit.xml.dist --verbose'",
"pretest-unit-php-multisite": "wp-env start",
"test-unit-php-multisite": "wp-env run phpunit 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/plugins/gutenberg/phpunit/multisite.xml --verbose'",
"prestorybook:build": "pnpm build:packages",
"storybook:build": "build-storybook -c ./storybook -o ./storybook/build",
"prestorybook:dev": "pnpm build:packages",
"storybook:dev": "concurrently \"pnpm dev:packages\" \"start-storybook -c ./storybook -p 50240\"",
"env": "wp-scripts env",
"wp-env": "wp-env",
"prepare": "husky install"
},
"lint-staged": {
"packages/*/package.json": [
"wp-scripts lint-pkg-json"
],
"*.scss": [
"wp-scripts lint-style"
],
"*.{js,ts,tsx,yml}": [
"wp-scripts format",
"wp-scripts lint-js"
],
"{docs/{toc.json,tool/*.js},packages/{*/README.md,components/src/*/**/README.md}}": [
"node ./docs/tool/index.js"
],
"packages/**/*.{js,ts,tsx,json}": [
"pnpm api-docs:ref",
"pnpm api-docs:blocks",
"pnpm api-docs:theme-ref",
"node ./bin/api-docs/are-api-docs-unstaged.js",
"node ./bin/packages/lint-staged-typecheck.js"
]
},
"wp-env": {
"plugin-dir": "gutenberg",
"plugin-name": "Gutenberg",
"docker-template": "./bin/docker-compose.override.yml.template",
"welcome-logo": [
",⁻⁻⁻· . |",
"| ،⁓’. . |--- ,---. ,---. |---. ,---. ,---. ,---.",
"| | | | | |---' | | | | |---' | | |",
"`---' `---' `---’ `---’ ' ` `---' `---’ ` `---|",
" `---'"
],
"welcome-build-command": "pnpm dev"
}
}