pattern-importer
v0.0.13
Published
Scripts to import html patterns according to the standards set out by github.com/pattern-library.
Downloads
3
Readme
Pattern Importer
A node module for importing HTML patterns following the Pattern Library model.
pattern-importer
takes a batch of pre-compiled templates (twig, swig, plain html, etc), with their supporting javascript files, and pre-compiled stylesheets (sass, less, plain css, etc) and converts them to HTML, CSS, and Javascript. It also replaces {{dataPlaceholders}} with default data from the patterns, or your project's data set.
Installation
Install pattern-importer
in your project:
`npm install pattern-importer`
Usage
General Usage
Add the pattern-library as a npm dependency:
npm install pattern-library
Require the gulp task in your gulpfile.js (See the complete Gulp task details first)
var importPatterns = require('pattern-importer').gulpImportPatterns(gulp,options);
Trigger the gulp task
gulp patterns-import