forked from Automattic/newspack-plugin-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
35 lines (35 loc) · 989 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
32
33
34
35
{
"name": "starter-plugin",
"version": "1.0.0",
"description": "A starting point for custom plugins on the Newspack platform",
"author": "Publisher name",
"license": "GPL-2.0-or-later",
"main": "build/index.js",
"scripts": {
"setup": "npm install && composer install && npx husky init && echo \"npx lint-staged\" > .husky/pre-commit",
"start": "wp-scripts start",
"build": "wp-scripts build",
"format": "wp-scripts format",
"lint": "composer run lint && npm run lint:js && npm run lint:css",
"lint:css": "wp-scripts lint-style --allow-empty-input",
"lint:js": "wp-scripts lint-js --no-error-on-unmatched-pattern",
"prepare": "husky"
},
"lint-staged": {
"*.js": [
"wp-scripts lint-js --ignore-pattern 'build/**/*.js'"
],
"*.php": [
"composer run lint"
],
"*.scss": [
"wp-scripts lint-style"
]
},
"prettier": "@wordpress/prettier-config",
"devDependencies": {
"@wordpress/scripts": "*",
"husky": "^9.1.7",
"lint-staged": "^13.2.0"
}
}