forked from WordPress/performance
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
47 lines (47 loc) · 1.6 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
{
"name": "performance",
"license": "GPL-2.0-or-later",
"repository": "git+https://github.com/WordPress/performance.git",
"devDependencies": {
"@octokit/rest": "16.26.0",
"@wordpress/env": "^4.2.2",
"@wordpress/scripts": "^19.0",
"chalk": "4.1.1",
"commander": "4.1.0",
"fast-glob": "^3.2.7",
"husky": "^7.0.4",
"lint-staged": "^12.3.4",
"lodash": "4.17.21"
},
"peerDependencies": {
"prettier": ">=2"
},
"peerDependenciesMeta": {
"prettier": {
"optional": true
}
},
"scripts": {
"changelog": "./bin/plugin/cli.js changelog",
"since": "./bin/plugin/cli.js since",
"readme": "./bin/plugin/cli.js readme",
"translations": "./bin/plugin/cli.js translations",
"enabled-modules": "./bin/plugin/cli.js enabled-modules",
"format-js": "wp-scripts format ./bin",
"lint-js": "wp-scripts lint-js ./bin",
"format-php": "wp-env run composer run-script format",
"prelint-php": "wp-env run composer 'install --no-interaction'",
"lint-php": "wp-env run composer run-script lint",
"pretest-php": "wp-env run composer 'install --no-interaction'",
"test-php": "wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/performance/phpunit.xml.dist --verbose'",
"pretest-php-multisite": "wp-env run composer 'install --no-interaction'",
"test-php-multisite": "wp-env run phpunit 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/plugins/performance/tests/multisite.xml --verbose'",
"wp-env": "wp-env",
"prepare": "husky install"
},
"lint-staged": {
"*.php": [
"composer run-script lint"
]
}
}