Scripts to build primer SCSS modules into CSS and stats
This repository is distributed with npm. After installing npm, you can install primer-module-build
with this command.
$ npm install --save primer-module-build
The script is CLI based. What it does is compiles the scss then runs it throught postcss. Placing the output in the build/build.css
file. Then it compiles some stats on the module and places it in the build/index.js
file.
$ primer-module-build index.scss
The best way to set this up for automation is to place primer-module-build path/to/file.scss
in the "prepublish"
npm script.