gulp-theideabureau-pattern-library
v0.1.7
Published
Generates a JSON output of a templates structure to drive The Idea Bureau Pattern Library.
Downloads
4
Maintainers
Readme
gulp-theideabureau-pattern-library
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
Thanks
Many thanks to @masondesu for his work creating the gulp-directory-map upon which this plugin is based on.