0.1.3 • Published 9 years ago

ng-mural-patterns-tree v0.1.3

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

gulp-tree

Tree creates a structured hierarchical JSON from a folder structure

Usage

First, install ng-mural-tree as a development dependency:

npm install --save-dev ng-mural-tree

Then, add it to your gulpfile.js:

var tree = require("ng-mural-tree");

gulp.src('./src/*.html')
    .pipe(tree({
        patternsPath: './src/patterns',
        jsonPath: './src/json/'
    }))

API

tree(options)

options.patternsPath

Type: String|Number

Default: ./src/_mural/components/mural_patterns

Directory where the patterns are located

options.jsonPath

Type: String

Default: ./src/_mural/components/mural_data/

Directory where the json should be saved

Usage

Tree creates a structured hierarchical JSON from a folder structure

License

MIT License