es-next-cli

0.1.5 • Public • Published

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

  1. es-cli-template-koa-react-spa: A template for koa+react project
  2. es-cli-template-koa: A template for koa project
  3. es-cli-template-nodecloud: A template for Yan Rong Tech Inc. nodecloud project

Template Specification

  1. The template must be a git project.

  2. There is a directory called template in project root.

  3. The template files must use twig syntax.

  4. 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"
            }
        }
    }
  5. The template meta and question answer in meta

Dependencies (17)

Dev Dependencies (4)

Package Sidebar

Install

npm i es-next-cli

Weekly Downloads

11

Version

0.1.5

License

MIT

Unpacked Size

29.1 kB

Total Files

33

Last publish

Collaborators

  • yedaodao