The Sass Library Boilerplate is a set of files that are a good base to publish well documented and tested Sass libraries, micro-frameworks, mixins and functions.
- Download, clone or fork this repository
- Replace all occurrences of "sass-library", "Sass Library", "user/"… to your own library and user names.
- Also, remove this first part of the README
- Pre-filled README, package.json, sache.json
- SassDoc configuration, with tasks that publish a beautiful documentation to GitHub Pages
- Unit tests with examples
- Continuous integration with Travis
- A changelog
.editorconfig
for consistent whitespace/tabs across files- Eyeglass-enabled
library()
is a Sass mixin that helps doing something.
Short description.
Why the tool was built (optional).
Very simple piece of code showing the most basic usage of library()
.
$library-default-message: 'foo';
@import 'path/to/library/index.scss';
.foo {
@include library();
}
Clone the repository, then:
npm install
npm test
Sass Library's API is documented using SassDoc.
npm run sassdoc
Generate & deploy the documentation to https://user.github.io/sass-library/:
# First time deploying the documentation?
npm run sassdoc-deploy-first-time
# Any other time:
npm run sassdoc-deploy
Source code is licensed under BSD License Clause 2.
Thank you to people who have helped.