es-next-cli
v0.1.5
Published
A cli for generating projects based on javascript
Downloads
80
Readme
es-cli
A cli for generating projects based on javascript
Installation
Install it via npm:
npm install -g es-next-cli
Then you can invoke it everywhere.
Get Started
Enter the directory where you want to create the project.
Execute the following command in your terminal:
es-cli create
Then select the project template and answer some questions.
Support Template
- es-cli-template-koa-react-spa: A template for koa+react project
- es-cli-template-koa: A template for koa project
- es-cli-template-nodecloud: A template for Yan Rong Tech Inc. nodecloud project
Template Specification
The template must be a git project.
There is a directory called
template
in project root.The template files must use twig syntax.
Available common template variable:
{ "context": { "basic": { "name": "projectName", "author": "author" }, "npm": { "private": true, "lisence": "private" }, "git": { "hasRepo": false, "gitRepo": "https://example.com/" }, "template": { "name": "select template name" } } }
The template meta and question answer in
meta