0.1.7 • Published 8 years ago

gulp-theideabureau-pattern-library v0.1.7

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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.

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago