https://github.com/primer/primer-module-build
Scripts to build primer SCSS modules into CSS and stats
https://github.com/primer/primer-module-build
Last synced: 3 months ago
JSON representation
Scripts to build primer SCSS modules into CSS and stats
- Host: GitHub
- URL: https://github.com/primer/primer-module-build
- Owner: primer
- License: mit
- Archived: true
- Created: 2016-10-28T15:54:07.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T22:39:25.000Z (over 7 years ago)
- Last Synced: 2025-01-10T13:53:09.403Z (12 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Primer Module Build Script
[](https://www.npmjs.org/package/primer-module-build)
[](https://travis-ci.org/primer/primer-module-build)
> Scripts to build primer SCSS modules into CSS and stats
## Install
This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-module-build` with this command.
```
$ npm install --save primer-module-build
```
## Documentation & Usage
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.
## License
[MIT](./LICENSE) © [GitHub](https://github.com/)
[primer-css]: https://github.com/primer/primer
[docs]: http://primercss.io/
[npm]: https://www.npmjs.com/
[install-npm]: https://docs.npmjs.com/getting-started/installing-node
[sass]: http://sass-lang.com/