Add SASS compilation and sync the CSS files

This commit is contained in:
Ismail El Korchi 2020-04-08 22:36:58 +01:00
parent f5248e18ef
commit b07e5d3682
15 changed files with 226 additions and 238 deletions

View file

@ -17,10 +17,12 @@
"url": "https://github.com/Automattic/_s/issues"
},
"devDependencies": {
"@wordpress/scripts": "^7.2.0"
"node-sass": "^4.13.1",
"@wordpress/scripts": "^7.2.0"
},
"scripts": {
"lint:scss": "wp-scripts lint-style 'sass/**/*.scss'",
"lint:js": "wp-scripts lint-js 'js/*.js'"
"compile:css": "node-sass sass/style.scss style.css && node-sass sass/woocommerce.scss woocommerce.css && stylelint '*.css' --fix || true && stylelint '*.css' --fix",
"lint:scss": "wp-scripts lint-style 'sass/**/*.scss'",
"lint:js": "wp-scripts lint-js 'js/*.js'"
}
}