gulp-theideabureau-pattern-library

0.1.7 • Public • Published

gulp-theideabureau-pattern-library

NPM version

Generates a JSON output of a templates structure to drive The Idea Bureau Pattern Library.

Usage

First, install gulp-theideabureau-pattern-library as a development dependency:

npm install --save-dev gulp-theideabureau-pattern-library

Then, add it to your gulpfile.js:

var patternLibrary = require("gulp-theideabureau-pattern-library");
    
gulp.src('app/**/*.html')
    .pipe(patternLibrary({
        filename: 'paths.json'
    }))
    .pipe(gulp.dest('patterns'));
 

The pattern library accepts a structure of HTML files within /patterns/templates.

patters
    |_templates
        |_1.navigation
            |_1.primary-nav.html
            |_2.secondary-nav.html
        |_2.lists
            |_1.ordered
            |_2.unordered
            |_3.definition

License

MIT License

Thanks

Many thanks to @masondesu for his work creating the gulp-directory-map upon which this plugin is based on.

Package Sidebar

Install

npm i gulp-theideabureau-pattern-library

Weekly Downloads

1

Version

0.1.7

License

MIT

Last publish

Collaborators

  • beneverard