forked from shivapoudel/wp-plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
67 lines (67 loc) · 1.59 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
{
"name": "wp-plugin-starter",
"version": "1.0.0",
"private": true,
"description": "Just another WordPress plugin starter.",
"author": "Shiva Poudel",
"license": "GPL-2.0-or-later",
"keywords": [
"WordPress",
"plugin-starter"
],
"homepage": "https://github.com/shivapoudel/wp-plugin-starter#readme",
"repository": "git+https://github.com/shivapoudel/wp-plugin-starter.git",
"bugs": {
"url": "https://github.com/shivapoudel/wp-plugin-starter/issues"
},
"engines": {
"node": ">=10.0.0",
"npm": ">=6.9.0"
},
"dependencies": {
"@wordpress/element": "2.17.1",
"@wordpress/i18n": "3.15.0"
},
"devDependencies": {
"@wordpress/browserslist-config": "2.7.0",
"@wordpress/eslint-plugin": "7.2.1",
"@wordpress/prettier-config": "0.4.0",
"@wordpress/scripts": "12.2.1",
"husky": "4.3.0",
"lint-staged": "10.4.0",
"prettier": "npm:wp-prettier@2.0.5"
},
"scripts": {
"build": "wp-scripts build",
"format:js": "wp-scripts format-js",
"lint:js": "wp-scripts lint-js",
"lint:js-fix": "npm run lint:js -- --fix",
"lint:css": "wp-scripts lint-style",
"lint:css-fix": "npm run lint:css -- --fix",
"lint:php": "composer run-script phpcs ./src",
"start": "wp-scripts start"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "./bin/pre-push.sh",
"post-merge": "./bin/post-merge.sh"
}
},
"lint-staged": {
"*.scss": [
"wp-scripts lint-style"
],
"*.js": [
"wp-scripts format-js",
"wp-scripts lint-js"
],
"*.php": [
"php -d display_errors=1 -l",
"composer run-script phpcs"
],
"package.json": [
"wp-scripts lint-pkg-json"
]
}
}