Giter Club home page Giter Club logo

animal-cli's Introduction

animal-cli

npm install animal-cli -g

animal-cli是一个通用脚手架工程,用户可以添加自己维护的工程模板,用于初始化项目。脚手架以下命令行操作:

1、anim add

添加脚手架工程模板,通过交互式提示用户添加模板信息:

E:\animal>anim add
     _          _                 _   _
    / \   _ __ (_)_ __ ___   __ _| | | |
   / _ \ | '_ \| | '_ ` _ \ / _` | | | |
  / ___ \| | | | | | | | | | (_| | | |_|
 /_/   \_\_| |_|_|_| |_| |_|\__,_|_| (_)

? 请输入模板名称 zMock
? 请输入模板地址 https://github.com/Anglay/zMock.git#master
√ 模板添加成功!

* 支持以下模板创建项目

✔ zMock

2、anim list

查看已经添加维护的工程模板

E:\animal>anim list
     _          _                 _   _
    / \   _ __ (_)_ __ ___   __ _| | | |
   / _ \ | '_ \| | '_ ` _ \ / _` | | | |
  / ___ \| | | | | | | | | | (_| | | |_|
 /_/   \_\_| |_|_|_| |_| |_|\__,_|_| (_)

* 支持以下模板创建项目

✔ zMock

3、anim init

用于初始化项目

E:\animal>anim init
     _          _                 _   _
    / \   _ __ (_)_ __ ___   __ _| | | |
   / _ \ | '_ \| | '_ ` _ \ / _` | | | |
  / ___ \| | | | | | | | | | (_| | | |_|
 /_/   \_\_| |_|_|_| |_| |_|\__,_|_| (_)

? 请输入项目名称 zMock-test
? 请输入项目描述 zMock-test
? 请选择项目模板 zMock
√ 模板下载成功!
✔ 创建: zMock-test/.editorconfig
✔ 创建: zMock-test/.eslintrc
✔ 创建: zMock-test/.gitee
✔ 创建: zMock-test/.gitignore
✔ 创建: zMock-test/.roadhogrc.mock.js
✔ 创建: zMock-test/.webpackrc
✔ 创建: zMock-test/dist
✔ 创建: zMock-test/mock
✔ 创建: zMock-test/public
✔ 创建: zMock-test/README.en.md
✔ 创建: zMock-test/README.md
✔ 创建: zMock-test/src
✔ 创建: zMock-test/yarn.lock
✔ 创建: zMock-test/package.json


? 是否安装依赖(npm install)? (Use arrow keys)
> 是(YES)
  否(NO)

4、anim del

用于删除以添加的模板

E:\animal>anim del
     _          _                 _   _
    / \   _ __ (_)_ __ ___   __ _| | | |
   / _ \ | '_ \| | '_ ` _ \ / _` | | | |
  / ___ \| | | | | | | | | | (_| | | |_|
 /_/   \_\_| |_|_|_| |_| |_|\__,_|_| (_)

? 请选择需要删除的模板 zMock
√ 模板删除成功!

* 暂无模板,请通过anim add添加模板管理

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.