Add a bundle script to generate a zip file for theme distribution (#1417)

This commit is contained in:
Ismail El Korchi 2020-04-30 20:15:59 +00:00 committed by GitHub
parent 572888d9cf
commit dfd1dd9e48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 94 additions and 1 deletions

View file

@ -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"
}
}