-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
65 lines (65 loc) · 2.86 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
{
"name": "photosynthesic-my-snow-monkey",
"version": "1.0.1",
"description": "My Snow Monkey Starter Kit",
"main": "build/index.js",
"scripts": {
"postinstall": "husky install && composer install",
"start": "wp-env start && open http://localhost:5432",
"build": "npm run build:css & npm run build:js",
"watch": "npm run watch:css & npm run watch:js",
"release": "npm run release:css & npm run release:js",
"sass": "sass --no-source-map src/scss/style.scss:src/style.css & sass --no-source-map src/scss/editor-style.scss:src/editor-style.css",
"autoprefix": "npx postcss src/**/*.css --use autoprefixer -d src/ --no-map",
"svginline": "npx postcss src/**/*.css --use postcss-inline-svg -d src/ --no-map",
"lint:css": "wp-scripts lint-style 'src/**/*.css' --fix",
"build:css": "npm run sass && npx postcss src/**/*.css --use postcss-inline-svg autoprefixer -d build/ --no-map && npm run lint:css",
"minify:css": "sass --style=compressed build/style.css:build/style.min.css",
"watch:css": "nodemon -e scss -x \"npm run build:css\"",
"release:css": "npm run build:css && npm run minify:css",
"lint:js": "wp-scripts lint-js './src/js'",
"build:js": "npx webpack --mode development",
"watch:js": "nodemon -e js -x \"npx webpack --mode development\"",
"release:js": "npx webpack --mode production",
"dist:copy": "cp ./my-snow-monkey.php ./dist/my-snow-monkey/ & cp ./color-config.json ./dist/my-snow-monkey/ & cp -R ./build/ ./dist/my-snow-monkey/build/ & cp -R ./block-pattern/ ./dist/my-snow-monkey/block-pattern/ & cp -R ./includes/ ./dist/my-snow-monkey/includes/",
"dist:zip": "cd ./dist/ && bestzip my-snow-monkey.zip *",
"dist": "run-s dist:*",
"init:colors": "node color-picker.js",
"check-licenses": "wp-scripts check-licenses",
"lint:php": "composer format & composer phpcs",
"rimraf": "rimraf src/svg/dist",
"imageminsvgo": "node src/svg/imagemin-svgo.js",
"prebuildsprite": "npm run imageminsvgo",
"buildsprite": "svgstore -o build/svg/svgsprite.svg build/svg/icons/**/*.svg --inline",
"embedsprite": "node src/svg/embed-sprite.js",
"svgsprite": "npm run rimraf && npm run buildsprite && npm run embedsprite"
},
"author": "photosynthesic",
"license": "GPL-2.0+",
"devDependencies": {
"@wordpress/env": "^3.0.2",
"@wordpress/scripts": "7.1.2",
"autoprefixer": "^9.7.4",
"bestzip": "^2.2.0",
"husky": "^5.0.4",
"npm-run-all": "^4.1.5",
"postcss-inline-svg": "^4.1.0",
"sass": "^1.27.0"
},
"dependencies": {
"@ixkaito/imagemin": "^0.1.0",
"ejs": "^3.0.1",
"focus-visible": "^5.2.0",
"glightbox": "^2.0.6",
"imagemin": "^7.0.1",
"imagemin-svgo": "^7.1.0",
"nodemon": "^2.0.2",
"postcss": "^8.2.10",
"postcss-cli": "^7.1.0",
"svgstore-cli": "^1.3.1"
},
"browserslist": [
"last 1 version",
"> 1% in JP"
]
}