skeleton-assistant

It's an helper library for generator-es6/commonjs/amd-angular

Usage no npm install needed!

<script type="module">
  import skeletonAssistant from 'https://cdn.skypack.dev/skeleton-assistant';
</script>

README

skeleton-assistant

It's an helper library for generator-es6/commonjs/amd-angular

NPM version

Generate code base for generator-es6-angular/generator-amd-angular.

Installation

npm install skeleton-assistant --save

Usage

var ass = require('skeleton-assistant');

ass({sourceType: 'CommonFeature', model: 'es6' name: 'alert', dest: './dist/'});
//A file named: Alert.js will be generated into ./dist/

ass({sourceType: 'LogicalMain', model: 'amd' name: 'home', dest: './dist/'});
//A file named: main.js will be generated into ./dist/

ass({sourceType: 'Routes', model: 'commonjs' name: 'myfavorites', dest: './dist/'});
//A file named: Routes.js will be generated into ./dist/

ass({sourceType: 'LogicalController', model: 'commonjs' name: 'home', dest: './dist/'});
//A file named: HomeController.js will be generated into ./dist/

ass(options)

options.sourceType

Available choices are: [CommonFeature, LogicalController, LogicalMain, Routes]

options.model

Available choices are: [es6, amd, commonjs]

options.name

Module name

options.dest

Output folder

LICENSE

MIT License