Yeoman generator for KOPS
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
yo kops <project-name>
<project-name>
will be the folder where the project structure will be generated
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
- Accept project name via argument or via prompt
- Generate package.json according to user input
- Set name
- Set version
- Set description
- Set keywords
- Set author
- Set license
- Remove fields
- homepage
- bugs
- repository
- Remove LICENSE file from template
- Fix private methods names (prepend _)