gulp-dss

0.1.1 • Public • Published

gulp-dss

A plugin for Gulp to generate UI documentation with DSS Parser.

Basic Usage

var dss = require('gulp-dss');
 
gulp.task('dss', function() {
  return gulp.src('app/assets/stylesheets/**/*.{sass,scss}')
    .pipe(dss({
      output: 'index.html',
      templatePath: path.join(__dirname, 'templates')
    }))
    .pipe(gulp.dest('ui-docs/'));
});

Templates

The templatePath option points to the folder containing the templates.

You should create your own module.html and base.html, but there are some default ones provided.

The module.html template is rendered with the Generated Object from DSS.

The base.html template is rendered the content.

The template engine used is Nunjucks.

Roadmap

  • Write better readme
  • Provide better default templates that automatically include the stylesheets

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-dss

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • jaysoo