forked from WordPress/performance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 2.31 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
{
"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",
"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",
"micromatch": "^4.0.7",
"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",
"versions": "./bin/plugin/cli.js versions",
"build": "wp-scripts build",
"build-plugins": "npm-run-all 'build:plugin:*'",
"build-plugins:zip": "npm-run-all 'build:plugin:* --env zip=true'",
"build:plugin:performance-lab": "webpack --mode production --env plugin=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:image-prioritizer": "webpack --mode production --env plugin=image-prioritizer",
"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",
"generate-pending-release-diffs": "bin/generate-pending-release-diffs.sh",
"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/performance composer test:plugins",
"test-php-multisite": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test-multisite:plugins",
"wp-env": "wp-env",
"prepare": "husky install"
}
}