-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
207 lines (207 loc) · 9.57 KB
/
Copy pathpackage.json
File metadata and controls
207 lines (207 loc) · 9.57 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
{
"name": "block-theme-scaffold",
"version": "1.0.1",
"description": "A modern WordPress block theme scaffold with Full Site Editing support",
"author": "{{author}}",
"license": "{{license}}",
"main": "build/index.js",
"keywords": [
"wordpress",
"gutenberg",
"block-theme",
"full-site-editing",
"fse",
"{{theme_slug}}",
"{{namespace}}"
],
"homepage": "{{theme_uri}}",
"repository": {
"type": "git",
"url": "{{theme_repo_url}}"
},
"bugs": {
"url": "{{theme_repo_url}}/issues"
},
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0"
},
"scripts": {
"start": "wp-scripts start",
"build": "wp-scripts build",
"build:production": "NODE_ENV=production npm run build",
"makepot": "wp i18n make-pot . languages/{{theme_slug}}.pot --slug={{theme_slug}} --domain={{theme_slug}} --exclude=node_modules,vendor,build,tests",
"makepot:php": "wp i18n make-pot . languages/{{theme_slug}}.pot --slug={{theme_slug}} --domain={{theme_slug}} --exclude=node_modules,vendor,build,tests,src",
"makejson": "wp i18n make-json languages --no-purge",
"i18n": "npm run makepot && npm run makejson",
"lint": "npm run lint:js && npm run lint:css && npm run lint:php",
"lint:dry-run": "node scripts/lint-dry-run.js",
"test:dry-run": "node scripts/test-dry-run.js jest",
"test:dry-run:all": "node scripts/test-dry-run.js all",
"dry-run:all": "npm run lint:dry-run && npm run test:dry-run:all",
"dry-run:build": "node scripts/dry-run/with-dry-run.js npm run build",
"dry-run:start": "node scripts/dry-run/with-dry-run.js npm run start",
"dry-run:release": "node scripts/dry-run/release-dry-run.js release validate",
"dry-run:release-scaffold": "node scripts/dry-run/release-dry-run.js scaffold validate",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"lint:css": "wp-scripts lint-style",
"lint:css:fix": "wp-scripts lint-style --fix",
"lint:php": "composer run lint",
"lint:php:fix": "composer run lint:fix",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"format": "wp-scripts format",
"check:markdown-references": "node scripts/check-markdown-references.js",
"clean:markdown-references": "node scripts/clean-github-references.js",
"fix:markdown-references": "npm run clean:markdown-references && npm run check:markdown-references",
"validate:config": "node scripts/agents/generate-theme.agent.js --validate theme-config.json",
"validate:config:schema": "node scripts/agents/generate-theme.agent.js --schema",
"test:schema": "node scripts/validation/validate-mustache-schema.js",
"validate:mustache": "node scripts/validation/validate-mustache-schema.js",
"test": "npm run test:js && npm run test:php",
"test:js": "NODE_OPTIONS=--require=$(node -p \"require('path').resolve('scripts/localstorage-shim.js')\") LOCAL_STORAGE_DIRECTORY=.test-temp/localstorage LOCAL_STORAGE_FILE=.test-temp/localstorage/localstorage.json wp-scripts test-unit-js",
"test:js:watch": "NODE_OPTIONS=--require=$(node -p \"require('path').resolve('scripts/localstorage-shim.js')\") LOCAL_STORAGE_DIRECTORY=.test-temp/localstorage LOCAL_STORAGE_FILE=.test-temp/localstorage/localstorage.json wp-scripts test-unit-js --watch",
"test:js:coverage": "NODE_OPTIONS=--require=$(node -p \"require('path').resolve('scripts/localstorage-shim.js')\") LOCAL_STORAGE_DIRECTORY=.test-temp/localstorage LOCAL_STORAGE_FILE=.test-temp/localstorage/localstorage.json wp-scripts test-unit-js --coverage",
"test:scripts": "cd scripts/__tests__ && npx jest --config jest.config.js",
"test:scripts:watch": "cd scripts/__tests__ && npx jest --config jest.config.js --watch",
"test:scripts:coverage": "cd scripts/__tests__ && npx jest --config jest.config.js --coverage",
"test:agents": "npx jest tests/agents/**/*.test.js",
"validate:agents": "node scripts/validation/validate-agent-frontmatter.js",
"test:agents:watch": "npx jest tests/agents/**/*.test.js --watch",
"test:agents:coverage": "npx jest tests/agents/**/*.test.js --coverage",
"test:php": "composer run test",
"test:e2e": "wp-scripts test-e2e",
"test:e2e:a11y": "wp-scripts test-e2e tests/e2e/accessibility.spec.js",
"test:templates": "NODE_OPTIONS=--require=$(node -p \"require('path').resolve('scripts/localstorage-shim.js')\") LOCAL_STORAGE_DIRECTORY=.test-temp/localstorage LOCAL_STORAGE_FILE=.test-temp/localstorage/localstorage.json wp-scripts test-unit-js tests/js/template-validation.test.js",
"test:theme-json": "NODE_OPTIONS=--require=$(node -p \"require('path').resolve('scripts/localstorage-shim.js')\") LOCAL_STORAGE_DIRECTORY=.test-temp/localstorage LOCAL_STORAGE_FILE=.test-temp/localstorage/localstorage.json wp-scripts test-unit-js tests/js/theme-json.test.js",
"test:e2e:debug": "wp-scripts test-e2e --config jest-e2e.config.js --debug",
"test:performance": "wp-scripts test-performance",
"lighthouse": "lhci autorun",
"size-limit": "size-limit",
"analyze-bundle": "webpack-bundle-analyzer build/stats.json build",
"performance": "npm run lighthouse && npm run size-limit",
"packages-update": "wp-scripts packages-update",
"prepare": "husky install",
"env": "wp-env",
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"env:destroy": "wp-env destroy",
"release:validate": "node scripts/agents/release.agent.js validate",
"release:version": "node scripts/agents/release.agent.js version",
"release:quality": "node scripts/agents/release.agent.js quality",
"release:docs": "node scripts/agents/release.agent.js docs",
"release:generate": "node scripts/agents/release.agent.js generate",
"release:security": "node scripts/agents/release.agent.js security",
"release:status": "node scripts/agents/release.agent.js status",
"release:report": "node scripts/agents/release.agent.js report",
"agent:build": "node scripts/agents/block-theme-build.agent.js",
"agent:build:validate": "node scripts/agents/block-theme-build.agent.js --validate",
"agent:dev": "node scripts/agents/development-assistant.agent.js",
"agent:dev:help": "node scripts/agents/development-assistant.agent.js help",
"agent:gemini": "node scripts/agents/gemini.agent.js",
"agent:gemini:chat": "node scripts/agents/gemini.agent.js chat",
"agent:generate": "node scripts/agents/generate-theme.agent.js",
"agent:report": "node scripts/agents/reporting.agent.js",
"agent:report:summary": "node scripts/agents/reporting.agent.js summary",
"agents:list": "ls -1 .github/agents/*.agent.md | xargs -n1 basename",
"agents:test": "npm run test:agents",
"agent:gemini:generate": "node scripts/agents/gemini.agent.js generate",
"agent:dev:pattern": "node scripts/agents/development-assistant.agent.js pattern",
"agent:report:generate": "node scripts/agents/reporting.agent.js generate",
"release:scaffold:validate": "node scripts/agents/release-scaffold.agent.js validate",
"release:scaffold:report": "node scripts/agents/release-scaffold.agent.js report",
"release:scaffold:placeholders": "node scripts/agents/release-scaffold.agent.js placeholders",
"release:scaffold:schema": "node scripts/agents/release-scaffold.agent.js schema"
},
"devDependencies": {
"@lhci/cli": "^0.13.0",
"@wordpress/babel-plugin-makepot": "6.36.0",
"@wordpress/babel-preset-default": "^8.35.0",
"@wordpress/browserslist-config": "^6.35.0",
"@wordpress/create-block": "^4.78.0",
"@wordpress/dependency-extraction-webpack-plugin": "^6.35.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/npm-package-json-lint-config": "5.36.0",
"@wordpress/postcss-plugins-preset": "5.36.0",
"@wordpress/postcss-themes": "6.36.0",
"@wordpress/prettier-config": "^4.35.0",
"@wordpress/scripts": "^31.0.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",
"css-loader": "6.11.0",
"fast-glob": "3.3.3",
"gray-matter": "4.0.3",
"husky": "^9.1.7",
"jest": "30.2.0",
"js-yaml": "4.1.1",
"lint-staged": "^16.2.7",
"mini-css-extract-plugin": "2.9.4",
"postcss-loader": "6.2.1",
"puppeteer-core": "24.33.0",
"sass": "1.97.0",
"sass-loader": "16.0.6",
"size-limit": "^11.1.6",
"style-loader": "3.3.4",
"webpack": "5.103.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-remove-empty-scripts": "^1.0.4"
},
"dependencies": {
"@wordpress/a11y": "4.36.0",
"@wordpress/api-fetch": "^7.35.0",
"@wordpress/block-editor": "15.9.0",
"@wordpress/block-library": "9.36.0",
"@wordpress/core-data": "^7.35.0",
"@wordpress/data": "^10.35.0",
"@wordpress/date": "^5.35.0",
"@wordpress/element": "^6.35.0",
"@wordpress/escape-html": "3.36.0",
"@wordpress/global-styles-engine": "1.3.0",
"@wordpress/i18n": "^6.8.0",
"@wordpress/icons": "11.3.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"
},
"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"
],
"*.md": [
"npm run fix:markdown-references"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"themeMeta": {
"displayName": "{{theme_name}}",
"namespace": "{{namespace}}",
"website": "{{theme_uri}}",
"docs": "{{docs_url}}",
"support": "{{support_url}}",
"changelog": "{{changelog_url}}",
"repositoryType": "git",
"repositoryUrl": "{{theme_repo_url}}",
"created": "{{created_date}}",
"updated": "{{updated_date}}"
}
}