-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
186 lines (186 loc) · 7.48 KB
/
package.json
File metadata and controls
186 lines (186 loc) · 7.48 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
{
"name": "example-plugin",
"version": "1.1.0",
"description": "A multi-block WordPress plugin scaffold example",
"author": "Example Author",
"license": "GPL-2.0-or-later",
"keywords": [
"wordpress",
"gutenberg",
"block",
"example-plugin",
"example_plugin"
],
"homepage": "https://github.com/Example Author/example-plugin",
"repository": {
"type": "git",
"url": "https://github.com/Example Author/example-plugin.git"
},
"bugs": {
"url": "https://github.com/Example Author/example-plugin/issues"
},
"engines": {
"node": ">=18.0.0",
"npm": ">=8.0.0"
},
"main": "build/index.js",
"dependencies": {
"@wordpress/a11y": "4.36.0",
"@wordpress/api-fetch": "^7.35.0",
"@wordpress/babel-plugin-makepot": "^6.35.0",
"@wordpress/block-editor": "^15.8.0",
"@wordpress/blocks": "^15.8.0",
"@wordpress/components": "30.9.0",
"@wordpress/core-data": "^7.35.0",
"@wordpress/data": "^10.35.0",
"@wordpress/date": "^5.35.0",
"@wordpress/element": "^6.35.0",
"@wordpress/i18n": "^6.8.0",
"@wordpress/icons": "^11.3.0",
"@wordpress/postcss-plugins-preset": "^5.35.0",
"@wordpress/primitives": "^4.35.0",
"@wordpress/react-i18n": "^4.35.0",
"@wordpress/redux-routine": "^5.35.0",
"@wordpress/style-engine": "^2.35.0",
"@wordpress/wordcount": "^4.35.0"
},
"devDependencies": {
"@lhci/cli": "^0.13.0",
"@playwright/experimental-ct-react": "1.57.0",
"@playwright/test": "1.57.0",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.1",
"@wordpress/babel-preset-default": "^8.35.0",
"@wordpress/browserslist-config": "^6.35.0",
"@wordpress/create-block": "^4.78.0",
"@wordpress/e2e-test-utils-playwright": "^1.35.0",
"@wordpress/env": "^10.35.0",
"@wordpress/eslint-plugin": "^22.21.0",
"@wordpress/jest-console": "^8.35.0",
"@wordpress/jest-preset-default": "^12.35.0",
"@wordpress/prettier-config": "^4.35.0",
"@wordpress/scripts": "31.1.0",
"@wordpress/stylelint-config": "^23.27.0",
"ajv": "8.17.1",
"ajv-formats": "3.0.1",
"axe-core": "^4.10.2",
"axe-playwright": "^2.0.3",
"gray-matter": "^4.0.3",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"playwright": "1.57.0",
"puppeteer-core": "21.5.2",
"size-limit": "^11.1.6",
"webpack-bundle-analyzer": "^4.10.2",
"glob": "13.0.0"
},
"scripts": {
"build": "node scripts/build.js",
"build:quick": "wp-scripts build",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"format": "wp-scripts format",
"lint:css": "wp-scripts lint-style --allow-empty-input",
"lint:css:fix": "wp-scripts lint-style --fix --allow-empty-input",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"lint:md:docs": "wp-scripts lint-md-docs",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"lint": "npm run lint:js && npm run lint:css && npm run lint:pkg-json",
"lint:dry-run": "node scripts/dry-run-test.js lint:js lint:css lint:pkg-json",
"dry-run": "node scripts/dry-run-test.js",
"dry-run:lint": "node scripts/dry-run-test.js lint:js lint:css",
"dry-run:test": "node scripts/dry-run-test.js test:unit",
"dry-run:build": "node scripts/dry-run-test.js build",
"dry-run:all": "node scripts/dry-run-test.js lint:js lint:css test:unit",
"dry-run:release": "node scripts/utils/dry-run-release.js --mode=release",
"dry-run:release-scaffold": "node scripts/utils/dry-run-release.js --mode=scaffold",
"packages-update": "wp-scripts packages-update",
"plugin-zip": "wp-scripts plugin-zip",
"start": "wp-scripts start",
"test:e2e": "playwright test tests/e2e/",
"test:e2e:a11y": "playwright test tests/e2e/accessibility.spec.js",
"test:unit": "wp-scripts test-unit-js",
"test:dry-run": "node scripts/test-dry-run.js",
"test:dry-run:coverage": "node scripts/test-dry-run.js --coverage",
"test:php": "./vendor/bin/phpunit",
"test:scf": "./vendor/bin/phpunit tests/php/test-scf-json*.php",
"test:scf:verbose": "./vendor/bin/phpunit tests/php/test-scf-json*.php --verbose",
"dry-run:e2e": "node scripts/dry-run-test.js test:e2e",
"dry-run:e2e:a11y": "node scripts/dry-run-test.js test:e2e:a11y",
"dry-run:unit": "node scripts/dry-run-test.js test:unit",
"dry-run:php": "node scripts/dry-run-test.js test:php",
"dry-run:scf": "node scripts/dry-run-test.js test:scf",
"dry-run:scf:verbose": "node scripts/dry-run-test.js test:scf:verbose",
"dry-run:validate:scf": "node scripts/dry-run-test.js validate:scf",
"dry-run:validate:schemas": "node scripts/dry-run-test.js validate:schemas",
"dry-run:validate:config": "node scripts/dry-run-test.js validate:config",
"dry-run:validate:frontmatter": "node scripts/dry-run-test.js validate:frontmatter",
"dry-run:validate:all": "node scripts/dry-run-test.js validate:all",
"validate:scf": "npm run test:scf -- --coverage-html coverage/scf/",
"validate:schemas": "node scripts/validation/validate-plugin-config.js --schema-only && node scripts/validation/validate-plugin-config.js scripts/fixtures/plugin-config.example.json",
"validate:config": "node scripts/validation/validate-plugin-config.js tests/fixtures/plugin-config.mock.json",
"validate:frontmatter": "node scripts/validation/audit-frontmatter.js",
"validate:post-types": "node scripts/validate-post-types.js",
"validate:all": "npm run validate:config && npm run validate:schemas && npm run validate:frontmatter && npm run validate:post-types",
"test": "npm run test:unit",
"release:validate": "node scripts/release.agent.js validate",
"release:status": "node scripts/release.agent.js status",
"lighthouse": "lhci autorun",
"size-limit": "size-limit",
"analyze-bundle": "webpack-bundle-analyzer build/stats.json build",
"performance": "npm run lighthouse && npm run size-limit",
"makepot": "wp i18n make-pot . languages/example-plugin.pot --slug=example-plugin --domain=example-plugin --exclude=node_modules,vendor,build,tests",
"makepot:php": "wp i18n make-pot . languages/example-plugin.pot --slug=example-plugin --domain=example-plugin --exclude=node_modules,vendor,build,tests,src",
"makejson": "wp i18n make-json languages --no-purge",
"i18n": "npm run makepot && npm run makejson",
"env": "wp-env",
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"env:restart": "wp-env start --update",
"env:destroy": "wp-env destroy",
"env:logs": "wp-env logs",
"env:cli": "wp-env run cli wp",
"update-version": "node scripts/update-version.js",
"check:markdown-references": "node scripts/check-markdown-references.js",
"clean:markdown-references": "node scripts/fix-instruction-references.js",
"audit:markdown": "npm run check:markdown-references && npm run clean:markdown-references",
"clean:gh-references": "node scripts/clean-github-references.js"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"wp-scripts lint-js --fix",
"wp-scripts format"
],
"*.{css,scss,sass}": [
"wp-scripts lint-style --fix"
],
"*.php": [
"composer run lint:fix"
]
},
"dryRun": {
"enabled": true,
"description": "Enables dry-run mode for testing with mustache variable substitution"
},
"wp-env": {
"plugins": [
"."
],
"themes": [
"https://wordpress.org/latest.zip"
]
},
"projectMeta": {
"displayName": "Example Plugin",
"namespace": "example_plugin",
"website": "https://example.com",
"docs": "https://example.com/docs",
"support": "https://example.com/support",
"changelog": "https://example.com/changelog",
"repositoryType": "git",
"repositoryUrl": "https://github.com/Example Author/example-plugin.git",
"created": "2025-01-01",
"updated": "2025-12-07"
}
}