0.0.3 • Published 10 years ago

boreal v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

boreal

CSS Coverage for Pattern Libraries

License MIT

boreal is a code coverage tool to be used in pattern libraries, styleguides, themes and any other "twitter bootstrap like" project.

Boreal Screenshot

The main idea behind boreal is to provide a sort of "automated testing" to stylesheets. boreal works by analysing your set of stylesheets and a set of markup documentation that explains how to use your stylesheets. The exit will be "green" if everything in the stylesheets is demonstrated in the documentation, otherwise boreal will exit as "red", displaying which classes are missing in your docs.

With boreal you can easily add your stylesheets into continuous integration. Using the documentation as "tests" against the stylesheets of the pattern library.

Usage

Install boreal (globally if you like)

$ npm install boreal -g

Then you can simply call the coverage command of boreal pointing to the directory if your stylesheets and of your documentation markup: coverage <stylesheet> <markup>

$ boreal coverage path/to/stylesheets path/to/docs

The exit code will be 0 if all classes are being used in the documentation markup

Currently, boreal supports css, scss and less stylesheets and html, php, erb and twig files for markup.

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago