Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
244 lines (244 loc) · 11.9 KB
/
Copy pathpackage.json
File metadata and controls
244 lines (244 loc) · 11.9 KB
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
{
"name": "gutenberg",
"version": "24.3.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": ">=24.18.0",
"npm": ">=11.18.0"
},
"devEngines": {
"runtime": {
"name": "node",
"version": ">=24.18.0"
},
"packageManager": {
"name": "npm",
"version": ">=11.18.0",
"onFail": "error"
}
},
"wpPlugin": {
"name": "gutenberg",
"scriptGlobal": "wp",
"packageNamespace": "wordpress",
"handlePrefix": "wp",
"pages": [
{
"id": "font-library",
"capability": "edit_theme_options"
},
"options-connectors",
{
"id": "dashboard",
"init": [
"@wordpress/dashboard-init"
],
"experimental": true
},
{
"id": "experiments",
"experimental": true
},
{
"id": "guidelines",
"experimental": true
},
{
"id": "media-editor",
"init": [
"@wordpress/edit-site-init"
],
"capability": "upload_files",
"experimental": true
},
{
"id": "site-editor-v2",
"init": [
"@wordpress/edit-site-init"
],
"capability": "edit_theme_options",
"experimental": true
},
{
"id": "theme-preview",
"capability": "switch_themes",
"experimental": true
}
]
},
"config": {
"IS_GUTENBERG_PLUGIN": true
},
"devDependencies": {
"@playwright/test": "^1.63.0",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@wordpress/env": "file:./packages/env",
"@wordpress/eslint-tools": "file:./tools/eslint",
"@wordpress/monorepo-tools": "file:./tools/monorepo",
"@wordpress/release-tools": "file:./tools/release",
"@wordpress/scripts": "file:./packages/scripts",
"@wordpress/stylelint-tools": "file:./tools/stylelint",
"concurrently": "^9.2.1",
"cross-env": "^7.0.3",
"eslint": "^10.0.0",
"husky": "^7.0.0",
"lerna": "^10.1.1",
"lint-staged": "^16.4.0",
"prettier": "npm:wp-prettier@^3.9.6",
"stylelint": "^17.14.1",
"syncpack": "^15.3.1",
"wait-on": "^8.0.1"
},
"overrides": {
"@y/websocket-server": {
"yjs": "npm:@y/y@^14.0.0-rc.7"
},
"eslint-plugin-import": {
"eslint": "^10.0.0"
},
"eslint-plugin-jsx-a11y": {
"eslint": "^10.0.0"
},
"eslint-plugin-react": {
"eslint": "^10.0.0"
}
},
"scripts": {
"agents:setup": "npm run --workspace @wordpress/agent-tools setup --",
"build": "npm run --workspace @wordpress/build-scripts build:all --",
"build:plugin-zip": "npm run --workspace @wordpress/release-tools build-plugin-zip --",
"check:type-declarations": "npm run --workspace @wordpress/build-scripts check-type-declarations --",
"clean:package-types": "npm run --workspace @wordpress/build-scripts clean:package-types --",
"clean:packages": "npm run --workspace @wordpress/build-scripts clean:packages --",
"dev": "npm run --workspace @wordpress/build-scripts dev --",
"distclean": "git clean --force -d -X",
"docs:api-ref": "npm run --workspace @wordpress/docs-tools docs:api-ref --",
"docs:blocks": "npm run --workspace @wordpress/docs-tools docs:blocks --",
"docs:blocks-detail": "npm run --workspace @wordpress/docs-tools docs:blocks-detail --",
"docs:build": "npm run docs:components && npm run docs:gen && npm run docs:blocks && npm run docs:blocks-detail && npm run docs:api-ref && npm run docs:theme-ref",
"docs:check-api-docs-unstaged": "npm run --workspace @wordpress/docs-tools docs:check-api-docs-unstaged --",
"docs:components": "npm run --workspace @wordpress/docs-tools docs:components --",
"docs:gen": "npm run --workspace @wordpress/docs-tools docs:gen --",
"docs:theme-ref": "npm run --workspace @wordpress/docs-tools docs:theme-ref --",
"env": "wp-env",
"fixtures:clean": "npm run --workspace @wordpress/integration-tests fixtures:clean --",
"fixtures:generate": "cross-env GENERATE_MISSING_FIXTURES=y npm run test:unit -- test/integration/full-content/ && npm run format test/integration/fixtures/blocks/*.json",
"fixtures:regenerate": "npm run fixtures:clean && npm run fixtures:generate",
"format": "wp-scripts format",
"preformat:php": "npm run other:update-packages:php",
"format:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script format",
"prelint:js": "npm run --if-present --workspaces prelint:js",
"lint": "concurrently \"npm run lint:lockfile\" \"npm run lint:tsconfig\" \"npm run lint:js\" \"npm run lint:pkg-json\" \"npm run lint:deps\" \"npm run lint:peer-deps\" \"npm run lint:css\"",
"lint:css": "wp-scripts lint-style --suppress-location=tools/stylelint/stylelint-suppressions.json \"**/*.{css,pcss,scss}\"",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:css:update-suppressions": "npm run lint:css -- --suppress && wp-scripts format tools/stylelint/stylelint-suppressions.json",
"lint:deps": "syncpack lint",
"lint:deps:fix": "syncpack fix",
"lint:js": "node ./tools/eslint/lint-js.cjs --concurrency=auto",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:js:prune-suppressions": "npm run lint:js -- --prune-suppressions",
"lint:lockfile": "npm run --workspace @wordpress/validation-tools validate-package-lock --",
"lint:package-contents": "npm run --if-present --workspaces lint:package-contents",
"lint:peer-deps": "npm run --workspace @wordpress/validation-tools check-peer-dependencies --",
"lint:tsconfig": "npm run --workspace @wordpress/validation-tools validate-tsconfig --",
"lint:changelogs": "npm run --workspace @wordpress/validation-tools validate-changelogs --",
"lint:md:docs": "wp-scripts lint-md-docs",
"prelint:php": "npm run other:update-packages:php",
"lint:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script lint",
"lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'",
"lint:published-deps": "npm run --workspace @wordpress/validation-tools dependency-audit --",
"other:changelog": "npm exec --no release-cli -- changelog",
"other:check-licenses": "concurrently \"npm run --workspace @wordpress/validation-tools check-licenses --\" \"wp-scripts check-licenses --dev\"",
"preother:check-local-changes": "npm run docs:build && npm run --workspace @wordpress/theme build",
"other:check-local-changes": "npm run --workspace @wordpress/validation-tools check-local-changes --",
"other:cherry-pick": "npm run --workspace @wordpress/release-tools cherry-pick --",
"other:generate-php-sync-issue": "npm run --workspace @wordpress/release-tools generate-php-sync-issue --",
"other:update-packages:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer update --no-interaction",
"postinstall": "npm run agents:setup -- --if-safe",
"prepare": "husky install",
"prepublishOnly": "npm run build",
"rtc:http": "node ./test/e2e/bin/rtc-dev.mjs --mode=http",
"rtc:ws": "node ./test/e2e/bin/rtc-dev.mjs --mode=websockets",
"rtc:ws:slow": "cross-env RTC_WS_DELAY=50 npm run rtc:ws",
"start": "npm run dev",
"prestorybook:build": "npm run build",
"storybook:build": "npm run --workspace @wordpress/storybook storybook:build",
"storybook:dev": "concurrently \"npm run dev\" \"wait-on .dev-ready && npm run --workspace @wordpress/storybook storybook:dev\"",
"storybook:e2e:dev": "concurrently \"npm run dev\" \"wait-on .dev-ready && npm run --workspace @wordpress/storybook-playwright storybook:dev\"",
"storybook:e2e:build": "npm run --workspace @wordpress/storybook-playwright storybook:build",
"storybook:manifest-snapshot": "npm run --workspace @wordpress/storybook manifest-snapshot",
"test": "npm run lint && npm run test:unit",
"test:create-block": "npm run --workspace @wordpress/validation-tools test-create-block --",
"test:e2e": "npm exec --no --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.config.ts --wp-env-config=../../.wp-env.test.json",
"test:e2e:debug": "npm exec --no --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.config.ts --wp-env-config=../../.wp-env.test.json --ui",
"test:e2e:playwright": "npm run test:e2e",
"test:e2e:playwright:debug": "npm run test:e2e:debug",
"test:e2e:rtc-websocket": "npm exec --no --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.rtc-websocket.config.ts --wp-env-config=../../.wp-env.test.json",
"test:e2e:rtc-websocket:debug": "npm exec --no --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.rtc-websocket.config.ts --wp-env-config=../../.wp-env.test.json --ui",
"test:e2e:storybook": "npm exec --no --workspace @wordpress/storybook-playwright -- playwright test --config playwright.config.ts",
"test:e2e:watch": "npm run test:e2e -- --watch",
"test:performance": "npm exec --no --workspace @wordpress/performance-tests -- wp-scripts test-e2e --config playwright.config.ts",
"test:performance:debug": "npm exec --no --workspace @wordpress/performance-tests -- wp-scripts test-e2e --config playwright.config.ts --debug",
"test:php": "npm run lint:php && npm run test:unit:php",
"test:php:watch": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script test:watch",
"test:unit": "npm run --workspace @wordpress/unit-tests test:unit --",
"test:unit:conventions": "npm run --workspace @wordpress/unit-tests test:unit:conventions",
"test:unit:vitest": "npm run --workspace @wordpress/unit-tests test:unit:vitest --",
"test:unit:vitest:shuffled": "npm run --workspace @wordpress/unit-tests test:unit:vitest:shuffled --",
"test:unit:vitest:update": "npm run --workspace @wordpress/unit-tests test:unit:vitest:update --",
"test:unit:vitest:watch": "npm run --workspace @wordpress/unit-tests test:unit:vitest:watch --",
"test:unit:routing": "npm run --workspace @wordpress/unit-tests test:unit:routing --",
"test:unit:date": "npm run --workspace @wordpress/unit-tests test:unit:date",
"test:unit:debug": "npm run --workspace @wordpress/unit-tests test:unit:debug --",
"test:unit:profile": "npm run --workspace @wordpress/unit-tests test:unit:profile --",
"test:unit:php:setup": "wp-env --config .wp-env.test.json start",
"test:unit:php:setup:debug": "wp-env --config .wp-env.test.json start --xdebug",
"test:unit:php:base": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/gutenberg' wordpress vendor/bin/phpunit -c phpunit.xml.dist --verbose",
"test:unit:php": "npm run test:unit:php:setup && npm run test:unit:php:base",
"test:unit:php:debug": "npm run test:unit:php:setup:debug && npm run test:unit:php:base",
"test:unit:php:multisite:base": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/gutenberg' wordpress vendor/bin/phpunit -c phpunit/multisite.xml --verbose",
"test:unit:php:multisite": "npm run test:unit:php:setup && npm run test:unit:php:multisite:base",
"test:unit:php:multisite:debug": "npm run test:unit:php:setup:debug && npm run test:unit:php:multisite:base",
"test:unit:update": "npm run --workspace @wordpress/unit-tests test:unit:vitest:update --",
"test:unit:watch": "npm run --workspace @wordpress/unit-tests test:unit:watch --",
"test:agent-evals": "npm --prefix test/ai-development run eval --",
"pretypecheck": "npm run --workspace @wordpress/build-scripts generate-worker-placeholders --",
"typecheck": "npm run --workspace @wordpress/build-scripts typecheck --",
"wp-env": "wp-env",
"wp-env-test": "wp-env --config .wp-env.test.json",
"test:unit:consumers": "npm run --workspace @wordpress/validation-tools test-vitest-consumers --"
},
"workspaces": [
"packages/*",
"routes/*",
"storybook",
"test/*",
"tools/*",
"widgets/*",
"!test/ai-development"
],
"allowScripts": {
"@parcel/watcher": false,
"@swc/core": false,
"core-js": false,
"core-js-pure": false,
"esbuild": false,
"fs-ext-extra-prebuilt": false,
"fsevents": false,
"nx": false,
"unrs-resolver": false
}
}