1.0.2 • Published 7 years ago
es6-components v1.0.2
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
Option | Description |
---|---|
g | Generate a Component |
generate | Generate a Component |
name | A Component name |
s | Create component to 'Object', by default its generate by collection |
single | Create component to 'Object', by default its generate by collection |
-c | Generate a Controller to Component |
-controller | Generate a Controller to Component |
-es2015 | Generate the component with es2015, by default its generate with es6 |