项目作者: ericis
项目描述 :
Corporate code generator
高级语言: JavaScript
项目地址: git://github.com/ericis/generator-corpcode.git
Generates Corporate Code Generators
This project currently creates generators that are customized for corporate implementation.
Required: Install Node
Creating a Corporate Generator
- Install Node
- Install Yeoman Code Generator engine and register the command globally on your local machine with
npm i yo -g
- Clone this code repository
git clone https://github.com/ericis/generator-corpcode.git
- Install the generator’s dependencies with
npm i
- Link it as a global NPM command locally with
npm link
- Create a new, empty directory to create the generator in.
- Create your corporate generator:
yo corpcode widgetco "WidgetCo Java Microservices code generator" "WidgetCo" "com.widgetco" "Eric Swanson <ericis@users.noreply.github.com>"
Setup a Corporate Generator
- Install Node
- Install Yeoman Code Generator engine and register the command globally on your local machine with
npm i yo -g
- After getting the source code for your Corporate generator on your local machine
- Install the generator’s dependencies with
npm i
- Link it as a global NPM command locally with
npm link
- Create a new, empty directory.
- Run:
yo widgetco:service example
Get help by running yo widgetco:service --help