1.0.2 • Published 7 years ago

es6-components v1.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

es6-components

Generate ES6 Components from command line.

Install

You can install it on npm.

npm install es6-components -g

Generate Component

Open the terminal, and type

component g name

The component will be generated in the root, "./name/name-component.js"

Options

OptionDescription
gGenerate a Component
generateGenerate a Component
nameA Component name
sCreate component to 'Object', by default its generate by collection
singleCreate component to 'Object', by default its generate by collection
-cGenerate a Controller to Component
-controllerGenerate a Controller to Component
-es2015Generate the component with es2015, by default its generate with es6

License

MIT License