gulp-livingcss
Version:
Gulp wrapper for the LivingCSS Style Guide Generator
40 lines (25 loc) • 1.03 kB
Markdown
[](https://travis-ci.org/straker/gulp-livingcss)
Gulp wrapper for the LivingCSS Style Guide Generator.
*Issues with the output should be reported on the LivingCSS [github repo](https://github.com/straker/livingcss/issues).*
```
$ npm install --save-dev gulp-livingcss
```
```js
var gulp = require('gulp');
var livingcss = require('gulp-livingcss');
gulp.task('default', function () {
gulp.src('src/styles.css')
.pipe(livingcss('dist'))
.pipe(gulp.dest('dist'))
});
```
The `dest` parameter is used to create the correct relative URLs from the Style Guide to the linked stylesheets. See the LivingCSS [dest](https://github.com/straker/livingcss#usage).
See the LivingCSS [options](https://github.com/straker/livingcss#options).
* `streamContext` - If the task should return the context object rather than the generated HTML file.