0.2.6 • Published 6 years ago
easy-front-build v0.2.6
Easy-Front-Builder
Why?
This package help us to generate modules (directories) inside creates the js, html and css files, you put your module name, generate and code!
How Install?
- Install locale to your project - not recommended
$ npm install easy-front-build
Install global *recommended
npm install -g easy-front-build
how configure? (option only in local)
if you will installed locally in your project you should added the package in your index.js:
index.js
const web = require('easy-front-module'); const yargs = require('yargs').yargs; web.createDirectory(yargs);
Usage
- use locale
The case common to generate a module of logic:
$ node index.js --name="FileName" [--ui, --logic, --ui --logic]
To generate a module of ui:
$ node index.js --name="FileName" [--ui, --logic, --ui --logic]
or
$ npm run create -- --name="fileName" [--ui, --logic]
- use global
easy-front-build --name="myModule" [--logic, --ui, --logic --ui]
This will generate the js if you use the flag --logic, in the other hand if you use the flag --ui, So you add the flags --logic --ui you can generate the three file (js, html, css) in you moduleName will generated a directory, the html and css files in the front_modules directory
Directory of project:
yourProject
├── _package.json
├── _node_modules
| ├── *<any>
| └── *<any>
├── _front_modules
| ├── miModule
├── services-iModule.html
├── services-miModule.css
├── services-miModule.js
Collaboration
- Abraham Espinosa
- Jorge A. Hernandez
- A. Alejandro Caravantes
License
MIT
Free Software, Hell Yeah!