Add a bundle script to generate a zip file for theme distribution (#1417)
This commit is contained in:
parent
572888d9cf
commit
dfd1dd9e48
2 changed files with 94 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@wordpress/scripts": "^9.0.0",
|
||||
"archiver": "^4.0.1",
|
||||
"node-sass": "^4.14.0",
|
||||
"rtlcss": "^2.5.0"
|
||||
},
|
||||
|
@ -38,6 +39,7 @@
|
|||
"compile:css": "node-sass sass/style.scss style.css && node-sass sass/woocommerce.scss woocommerce.css && stylelint '*.css' --fix || true && stylelint '*.css' --fix",
|
||||
"compile:rtl": "rtlcss style.css style-rtl.css",
|
||||
"lint:scss": "wp-scripts lint-style 'sass/**/*.scss'",
|
||||
"lint:js": "wp-scripts lint-js 'js/*.js'"
|
||||
"lint:js": "wp-scripts lint-js 'js/*.js'",
|
||||
"bundle": "node bin/bundle.js"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue