filestructure-to-json
v1.1.1
Published
creates a json file mapping the directories and files structure from a given path
Downloads
1
Readme
This module will help you generate json files from your files structure, automating parts of your app
Install
Install with npm:
$ npm install --save-dev filestructure-to-json
Install with yarn:
$ yarn add filestructure-to-json
Install with bower
$ bower install filestructure-to-json --save
Usage
Make a gulp task for creating and updateing a json file which contains a files structucture for a given path. (Works just with two levels structure)
const filestructureToJson = require('filestructure-to-json');
gulp.task('components-json', function() {
const entryPath = './components';
const destFolder = './components/components.json';
filestructureToJson(entryPath, destFolder);
});
License
MIT © Catalin Nita