pongni

pongni cli to create all template

Usage no npm install needed!

<script type="module">
  import pongni from 'https://cdn.skypack.dev/pongni';
</script>

README

PongNi Logo

PongNi

一个轻量级的初始化项目工具

Version License

Installation

npm install pongni -g

Usage

打开终端输入pongni 或者 pongni -h , 展示pongni的command列表:

  Usage: pongni <command>


  Commands:

    list   List all the templates
    init   Generate a new project

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

init

通过这个command可以去选择模版然后初始化项目


? Project name: projectName
? Select template: vue
? Project description: A description of project!
? Where to init the project: ./

  pongni ·  Generated "projectName".

# Project has been initialized successfully!
# ==========================================

To Get Started:

  cd projectName
  npm install
  npm run dev
  npm run build

list

展示所有的模版列表.

$ pongni list

┌───────┬────────────────┬────────┐
│ Name  │ Template       │ Branch │
├───────┼────────────────┼────────┤
│ vue   │ vue-template   │ master │
├───────┼────────────────┼────────┤
│ mpvue │ mpvue-template │ master │
├───────┼────────────────┼────────┤
│ koa2  │ koa2-template  │ master │
└───────┴────────────────┴────────┘

Template

vue-template    ->  vue模版
koa2-template   ->  koa2模版
mpvue-template  ->  mpvue模版
...
后期会慢慢更新

License

MIT.