-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
97 lines (97 loc) · 2.67 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "for-your-eyes-only",
"version": "1.0.0",
"homepage": "https://github.com/tarosky/for-your-eyes-only",
"description": "A block restricted for specified users.",
"main": "gulpfile.js",
"repository": {
"type": "git",
"url": "git+https://github.com/tarosky/for-your-eyes-only.git"
},
"bugs": {
"url": "https://github.com/tarosky/for-your-eyes-only/issues"
},
"scripts": {
"start": "wp-env start",
"update": "wp-env start --update",
"stop": "wp-env stop",
"cli": "wp-env run cli wp",
"cli:test": "wp-env run tests-cli wp",
"env": "wp-env",
"test": "RESULT=${PWD##*/} && wp-env run tests-cli ./wp-content/plugins/$RESULT/vendor/bin/phpunit -c ./wp-content/plugins/$RESULT/phpunit.xml.dist",
"imagemin": "imagemin src/img/* --out-dir=assets/img --plugin.pngquant.quality={0.65,0.8} --plugin.jpegtran --plugin.gifsicle",
"lint:css": "wp-scripts lint-style './src/scss/**/*.scss'",
"lint:js": "wp-scripts lint-js './src/js/**/*.js'",
"fix:css": "stylelint --fix ./src/scss",
"fix:js": "wp-scripts format './src/js/**/*.js'",
"build:css": "sass ./src/scss/:./assets/css/ --style=compressed && postcss ./assets/css/**/*.css --replace --autoprefixer",
"build:js": "wp-scripts build ./src/js/block.js ./src/js/block-renderer.js --output-path=assets/js && npm run clean:js && npm run extract:js",
"clean:js": "find assets/js -type f -name '*.php' -delete",
"extract:js": "node bin/compiler.js license",
"dump": "node bin/compiler.js dump",
"build": "npm run build:css && npm run build:js && npm run imagemin && npm run dump",
"lint": "npm run lint:css && npm run lint:js",
"watch": "npm-watch"
},
"author": "Tarosky INC.",
"license": "GPL-3.0",
"volta": {
"node": "18.20.4"
},
"devDependencies": {
"@kunoichi/grab-deps": "^1.3.1",
"@wordpress/env": "^9.0.0",
"@wordpress/eslint-plugin": "^21.2.0",
"@wordpress/scripts": "^23.7.2",
"glob": "^11.0.0",
"imagemin": "^9.0.0",
"imagemin-cli": "^8.0.0",
"imagemin-gifsicle": "^7.0.0",
"imagemin-jpegtran": "^7.0.0",
"imagemin-pngquant": "^10.0.0",
"imagemin-svgo": "^11.0.1",
"npm-watch": "^0.13.0",
"postcss-cli": "^11.0.0",
"sass": "^1.79.4"
},
"watch": {
"build:css": {
"extensions": "scss",
"patterns": [
"src/scss"
]
},
"build:js": {
"extensions": "js",
"patterns": [
"src/js"
]
},
"dump": {
"extensions": "js,txt,css",
"patterns": [
"assets/js",
"assets/css"
],
"delay": 500
},
"imagemin": {
"extensions": "jpg,jpeg,gif,png,svg",
"patterns": [
"src/img"
]
},
"lint:css": {
"extensions": "scss",
"patterns": [
"src/scss"
]
},
"lint:js": {
"extensions": "js",
"patterns": [
"src"
]
}
}
}