-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
73 lines (73 loc) · 1.72 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
68
69
70
71
72
73
{
"name": "rmb-recipe-block",
"title": "Recipe Block",
"version": "1.1.2",
"author": "Kelly Choyce-Dwan",
"license": "GPL-2.0-or-later",
"homepage": "https://ryelle.codes/",
"repository": {
"type": "git",
"url": "https://github.com:ryelle/rmb-recipe-block.git"
},
"engines": {
"node": "16.15.1",
"npm": "8.13.2"
},
"files": [
"assets/**",
"build/**",
"readme.txt",
"package.json",
"rmb-recipe-block.php"
],
"main": "build/recipe-block.js",
"devDependencies": {
"@wordpress/scripts": "23.4.0",
"concurrently": "7.2.2",
"eslint-plugin-prettier": "4.2.1"
},
"scripts": {
"build": "wp-scripts build recipe-block=./assets/js/recipe-block.js",
"start": "wp-scripts start recipe-block=./assets/js/recipe-block.js",
"format:js": "wp-scripts format assets/js/**/*.js",
"lint:css": "wp-scripts lint-style assets/css/*",
"lint:js": "wp-scripts lint-js assets/js/**/*.js",
"lint:php": "composer run lint",
"lint:php:fix": "composer run format",
"lint": "concurrently \"npm run lint:js\" \"npm run lint:css\" \"npm run lint:php\"",
"ci": "npm run lint:js && npm run lint:css"
},
"stylelint": {
"rules": {
"selector-class-pattern": [
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*(__[a-z0-9]+)?(-[a-z0-9]+)*$",
{
"message": "Selector should use lowercase and separate words with hyphens (selector-class-pattern)"
}
]
}
},
"eslintConfig": {
"extends": [
"plugin:@wordpress/eslint-plugin/recommended"
],
"rules": {
"@wordpress/i18n-text-domain": [
"error",
{
"allowedTextDomain": "recipe-block"
}
],
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": [
"error",
{
"ignore": [
"^@wordpress",
"lodash"
]
}
]
}
}
}