Skip to content

PebbleRoad/gulp-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-tree

Tree creates a structured hierarchical JSON from a folder structure

Usage

First, install gulp-tree as a development dependency:

npm install --save-dev gulp-tree

Then, add it to your gulpfile.js:

var tree = require("gulp-tree");

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

API

tree(options)

options.patternsPath

Type: String|Number

Default: ./src/patterns

Directory where the patterns are located

options.jsonPath

Type: String

Default: './src/json'

Directory where the json should be saved

Usage

Tree creates a structured hierarchical JSON from a folder structure

License

MIT License

About

Create a hierarchical tree JSON from a folder

Resources

License

Stars

Watchers

Forks

Packages

No packages published