-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
58 lines (58 loc) · 1.98 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
{
"author": "The WordPress Community",
"bugs": {
"url": "https://github.com/WordPress/troubleshooting/issues"
},
"description": "Introduces additional common tools to the Site Health interface.",
"devDependencies": {
"@playwright/test": "^1.45.1",
"@types/node": "^20.14.10",
"@wordpress/dependency-extraction-webpack-plugin": "^6.2.0",
"@wordpress/env": "^10.2.0",
"@wordpress/scripts": "^28.2.0",
"@wordpress/stylelint-config": "^22.2.0",
"npm-run-all": "^4.1.5",
"postcss-scss": "^4.0.9"
},
"engines": {
"node": ">=18"
},
"license": "GPL-2.0+",
"name": "troubleshooting",
"version": "1.0.0",
"scripts": {
"build": "wp-scripts build",
"lint:css": "wp-scripts lint-style './src/styles/**/*.scss'",
"lint:js": "wp-scripts lint-js './src/**/*.js'",
"lint:php": "wp-env run --env-cwd='wp-content/plugins/troubleshooting' cli composer run-script lint",
"test:e2e": "playwright test",
"test:e2e-report": "playwright show-report",
"test:e2e:debug": "wp-scripts test-playwright --config ./tests/e2e.config.ts --ui",
"test:e2e:watch": "npm run test:e2e -- --watch",
"test:php": "npm-run-all lint:php test:unit:php",
"test:php:watch": "wp-env run --env-cwd='wp-content/plugins/troubleshooting' tests-cli composer run-script test:watch",
"test:unit:php:base": "wp-env run --env-cwd='wp-content/plugins/troubleshooting' tests-wordpress vendor/bin/phpunit -c phpunit.xml.dist --verbose",
"test:unit:php": "npm-run-all test:unit:php:base",
"start": "wp-scripts start",
"wp-env": "wp-env",
"plugin-zip": "wp-scripts plugin-zip"
},
"stylelint": {
"extends": "@wordpress/stylelint-config",
"customSyntax": "postcss-scss",
"rules": {
"no-descending-specificity": null,
"no-invalid-position-at-import-rule": null
}
},
"files": [
"troubleshooting.php",
"build/**",
"Troubleshooting/**",
"mu-plugins/**",
"templates/**",
"uninstall.php",
"changelog.txt",
"readme.txt"
]
}