generator-kops
v1.2.1
Published
Yeoman generator for KOPS
Downloads
2
Maintainers
Readme
generator-kops
Yeoman generator for KOPS
Installation
First, install Yeoman and generator-kops using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-kops
To create your project
yo kops <project-name>
<project-name>
will be the folder where the project structure will be generated
To generate a new knockout component
Note: make sure you are on the project root directory
yo kops:component <component-name>
Example:
yo kops:component nav-bar
This will generate:
src/components/nav-bar/nav-bar.js
src/components/nav-bar/nav-bar.pug
src/components/nav-bar/nav-bar.styl
TODOs
- [X] Accept project name via argument or via prompt
- [X] Generate package.json according to user input
- [X] Set name
- [X] Set version
- [X] Set description
- [X] Set keywords
- [X] Set author
- [X] Set license
- [X] Remove fields
- [X] homepage
- [X] bugs
- [X] repository
- [X] Remove LICENSE file from template
- [X] Fix private methods names (prepend _)