-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Expand file tree
/
Copy pathpackage.json
More file actions
199 lines (199 loc) · 9.62 KB
/
Copy pathpackage.json
File metadata and controls
199 lines (199 loc) · 9.62 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
{
"name": "gutenberg",
"version": "23.7.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": ">=20.19.0",
"npm": ">=10.2.3"
},
"devEngines": {
"runtime": {
"name": "node",
"version": ">=20.19.0"
},
"packageManager": {
"name": "npm",
"version": ">=10.2.3"
}
},
"wpPlugin": {
"name": "gutenberg",
"scriptGlobal": "wp",
"packageNamespace": "wordpress",
"handlePrefix": "wp",
"pages": [
"font-library",
"options-connectors",
{
"id": "content-types",
"experimental": true
},
{
"id": "dashboard",
"init": [
"@wordpress/dashboard-init"
],
"experimental": true
},
{
"id": "experiments",
"experimental": true
},
{
"id": "guidelines",
"experimental": true
},
{
"id": "media-editor",
"init": [
"@wordpress/edit-site-init"
],
"experimental": true
},
{
"id": "site-editor-v2",
"init": [
"@wordpress/edit-site-init"
],
"experimental": true
}
]
},
"config": {
"IS_GUTENBERG_PLUGIN": true
},
"devDependencies": {
"@playwright/test": "^1.61.1",
"@types/react": "^18.3.27",
"@types/react-dom": "^18.3.1",
"@typescript/native": "npm:typescript@^7.0.2",
"@wordpress/env": "file:./packages/env",
"@wordpress/eslint-tools": "file:./tools/eslint",
"@wordpress/release-tools": "file:./tools/release",
"@wordpress/scripts": "file:./packages/scripts",
"@wordpress/stylelint-tools": "file:./tools/stylelint",
"concurrently": "^3.5.0",
"cross-env": "^7.0.3",
"husky": "^7.0.0",
"lerna": "^9.0.7",
"lint-staged": "^16.4.0",
"npm-run-all": "^4.1.5",
"patch-package": "^8.0.0",
"syncpack": "^15.3.1",
"wait-on": "^8.0.1"
},
"overrides": {
"jsdom": "26.1.0"
},
"scripts": {
"agents:setup": "node ./tools/agents/setup-skills.mjs",
"build": "npm run --workspace @wordpress/build-scripts build:all --",
"build:plugin-zip": "bash ./bin/build-plugin-zip.sh",
"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-all docs:components docs:gen docs:blocks docs:blocks-detail docs:api-ref 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-all fixtures:clean 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: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:tsconfig": "npm run --workspace @wordpress/validation-tools validate-tsconfig --",
"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": "patch-package && 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 -- --skip-types",
"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",
"test": "npm-run-all lint test:unit",
"test:create-block": "npm run --workspace @wordpress/validation-tools test-create-block --",
"test:e2e": "npm exec --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.config.ts",
"test:e2e:debug": "npm exec --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.config.ts --ui",
"test:e2e:playwright": "npm run test:e2e",
"test:e2e:playwright:debug": "npm run test:e2e:debug",
"test:e2e:rtc-websocket": "npm exec --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.rtc-websocket.config.ts",
"test:e2e:rtc-websocket:debug": "npm exec --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.rtc-websocket.config.ts --ui",
"test:e2e:storybook": "npm exec --workspace @wordpress/storybook-playwright -- playwright test --config playwright.config.ts",
"test:e2e:watch": "npm run test:e2e -- --watch",
"test:performance": "npm exec --workspace @wordpress/performance-tests -- wp-scripts test-e2e --config playwright.config.ts",
"test:performance:debug": "npm exec --workspace @wordpress/performance-tests -- wp-scripts test-e2e --config playwright.config.ts --debug",
"test:php": "npm-run-all lint:php 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:date": "bash ./bin/unit-test-date.sh",
"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-all test:unit:php:setup test:unit:php:base",
"test:unit:php:debug": "npm-run-all test:unit:php:setup:debug 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-all test:unit:php:setup test:unit:php:multisite:base",
"test:unit:php:multisite:debug": "npm-run-all test:unit:php:setup:debug test:unit:php:multisite:base",
"test:unit:update": "npm run --workspace @wordpress/unit-tests test:unit -- --updateSnapshot",
"test:unit:watch": "npm run --workspace @wordpress/unit-tests test:unit:watch --",
"wp-env": "wp-env",
"wp-env-test": "wp-env --config .wp-env.test.json"
},
"workspaces": [
"packages/*",
"routes/*",
"storybook",
"test/*",
"tools/*",
"widgets/*"
]
}