-
Notifications
You must be signed in to change notification settings - Fork 101
/
package.json
69 lines (69 loc) · 3.9 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
62
63
64
65
66
67
68
69
{
"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": {
"@builder.io/partytown": "github:westonruter/partytown#add/wp-i18n-workaround",
"web-vitals": "4.2.4"
},
"devDependencies": {
"@octokit/rest": "^21.0.2",
"@wordpress/env": "^10.12.0",
"@wordpress/prettier-config": "^4.12.0",
"@wordpress/scripts": "^30.5.1",
"commander": "12.1.0",
"copy-webpack-plugin": "^12.0.2",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"lodash": "4.17.21",
"micromatch": "^4.0.8",
"npm-run-all": "^4.1.5",
"typescript": "^5.6.3",
"webpackbar": "^7.0.0"
},
"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:web-worker-offloading": "webpack --mode production --env plugin=web-worker-offloading",
"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",
"tsc": "tsc",
"format-php": "composer format:all",
"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-watch": "./bin/test-php-watch.sh",
"test-php-multisite": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test-multisite:plugins",
"test-php:performance-lab": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:performance-lab",
"test-php:auto-sizes": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:auto-sizes",
"test-php:dominant-color-images": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:dominant-color-images",
"test-php:embed-optimizer": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:embed-optimizer",
"test-php:image-prioritizer": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:image-prioritizer",
"test-php:optimization-detective": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:optimization-detective",
"test-php:speculation-rules": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:speculation-rules",
"test-php:web-worker-offloading": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:web-worker-offloading",
"test-php:webp-uploads": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/performance composer test:webp-uploads",
"wp-env": "wp-env",
"prepare": "husky"
}
}