forked from WordPress/performance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
61 lines (61 loc) · 2.52 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
{
"name": "performance",
"license": "GPL-2.0-or-later",
"repository": "git+https://github.com/WordPress/performance.git",
"engines": {
"node": ">=20.10.0",
"npm": ">=10.2.3"
},
"dependencies": {
"web-vitals": "3.5.0"
},
"devDependencies": {
"@octokit/rest": "^19.0.5",
"@wordpress/env": "^9.6.0",
"@wordpress/scripts": "^26.19.0",
"chalk": "^4.1.2",
"commander": "^9.4.1",
"copy-webpack-plugin": "^12.0.2",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"husky": "^8.0.2",
"lint-staged": "^13.1.0",
"lodash": "4.17.21",
"npm-run-all": "^4.1.5",
"webpackbar": "^6.0.1"
},
"scripts": {
"changelog": "./bin/plugin/cli.js changelog",
"since": "./bin/plugin/cli.js since",
"readme": "./bin/plugin/cli.js readme",
"build": "wp-scripts build",
"build-plugins": "npm-run-all 'build:plugin:!(performance-lab)'",
"build:plugin:performance-lab": "rm -rf build/performance-lab && mkdir -p build/performance-lab && git archive HEAD | tar -x -C build/performance-lab",
"build:plugin:auto-sizes": "webpack --mode production --env plugin=auto-sizes",
"build:plugin:dominant-color-images": "webpack --mode production --env plugin=dominant-color-images",
"build:plugin:embed-optimizer": "webpack --mode production --env plugin=embed-optimizer",
"build:plugin:optimization-detective": "webpack --mode production --env plugin=optimization-detective",
"build:plugin:speculation-rules": "webpack --mode production --env plugin=speculation-rules",
"build:plugin:webp-uploads": "webpack --mode production --env plugin=webp-uploads",
"format-js": "wp-scripts format",
"lint-js": "wp-scripts lint-js",
"format-php": "composer format",
"phpstan": "composer phpstan",
"lint-php": "composer lint:all",
"test-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename $(pwd)) composer test",
"test-php-multisite": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename $(pwd)) composer test-multisite",
"test-php-plugins": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename $(pwd)) composer test:plugins",
"test-php-multisite-plugins": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/$(basename $(pwd)) composer test-multisite:plugins",
"wp-env": "wp-env",
"prepare": "husky install"
},
"lint-staged": {
"*.php": [
"composer run-script lint",
"composer run-script phpstan"
],
"*.js": [
"npm run lint-js"
]
}
}