1.1.1 • Published 5 years ago

filestructure-to-json v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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