-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
31 lines (31 loc) · 986 Bytes
/
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
{
"name": "wp-republish",
"version": "0.1.0",
"main": "./assets/js/index.js",
"author": "1815",
"scripts": {
"test:php:unit": "wp-env run phpunit \"phpunit -c /var/www/html/wp-content/plugins/wp-republish/phpunit.xml.dist --verbose --testdox --testsuite unit\"",
"test:js:unit": "wp-scripts test-unit-js",
"test": "yarn test:js:unit && yarn test:php:unit",
"format:js": "wp-scripts format",
"format:php": "composer run format",
"lint:js": "wp-scripts lint-js --fix",
"lint:php": "composer run lint",
"lint": "yarn format:js && yarn lint:js && yarn format:php && yarn lint:php",
"pre-commit:install": "husky install",
"pre-commit": "yarn lint && yarn test"
},
"devDependencies": {
"@wordpress/env": "^4.1.2",
"@wordpress/scripts": "^18.0.0",
"babel-jest": "^26.6.3",
"husky": "^7.0.4",
"jest": "^26.6.3",
"lint-staged": "^11.2.6"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}