-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) · 2.33 KB
/
Copy pathpackage.json
File metadata and controls
80 lines (80 loc) · 2.33 KB
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
74
75
76
77
78
79
80
{
"name": "taro-open-hour",
"version": "1.0.0",
"description": "",
"directories": {
"test": "tests"
},
"engines": {
"node": ">=22.0"
},
"scripts": {
"prepare": "husky",
"test": "RESULT=${PWD##*/} && wp-env run tests-cli ./wp-content/plugins/$RESULT/vendor/bin/phpunit -c ./wp-content/plugins/$RESULT/phpunit.xml.dist",
"start": "wp-env start",
"update": "wp-env start --update",
"stop": "wp-env stop",
"cli": "wp-env run cli wp",
"check": "wp-env run cli wp plugin check wp-content/plugins/taro-open-hour --require=./wp-content/plugins/plugin-check.latest-stable/cli.php --exclude-directories=.git,vendor,tests,node_modules,wordpress",
"env": "wp-env",
"package": "npm run build:css && npm run build:js && npm run copy:vendor && npm run dump",
"build:css": "sass ./src/scss/:./dist/css/ --style=compressed && postcss ./dist/css/*.css --use autoprefixer --replace",
"build:js": "grab-deps js src/js dist/js",
"copy:vendor": "mkdir -p dist/vendor && cp node_modules/select2/dist/js/select2.min.js dist/vendor/ && cp node_modules/select2/dist/css/select2.min.css dist/vendor/",
"dump": "grab-deps dump dist",
"watch": "npm-watch",
"fix": "npm run fix:js && npm run fix:css",
"fix:js": "eslint --fix -c .eslintrc src/js",
"fix:css": "stylelint --fix src/scss",
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "wp-scripts lint-js ./src/js",
"lint:css": "wp-scripts lint-style './src/scss/**/*.scss'"
},
"watch": {
"build:js": {
"patterns": [
"src/js"
],
"extensions": "js,jsx"
},
"build:css": {
"patterns": [
"src/scss"
],
"extensions": "scss"
}
},
"repository": {
"type": "git",
"url": ""
},
"keywords": [
"wordpress"
],
"author": "Tarosky INC",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/tarosky/taro-open-hour/issues"
},
"homepage": "",
"devDependencies": {
"@kunoichi/grab-deps": "^3.0.0",
"@wordpress/env": "^10.0",
"@wordpress/eslint-plugin": "^8.0.0",
"@wordpress/scripts": "^31.0.0",
"@wordpress/stylelint-config": "^23.33.0",
"autoprefixer": "^10.4.16",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"npm-watch": "^0.13.0",
"postcss": "^8.4.33",
"postcss-cli": "^11.0.0",
"sass": "^1.70.0",
"select2": "^4.0.11"
},
"lint-staged": {
"*.js": "npm run fix:js",
"*.scss": "npm run fix:css",
"*.php": "composer lint"
}
}