An open API service indexing awesome lists of open source software.

https://github.com/yxw007/pup-cli

从0到1的一个Mini脚手架
https://github.com/yxw007/pup-cli

cli template vue webpack

Last synced: 4 months ago
JSON representation

从0到1的一个Mini脚手架

Awesome Lists containing this project

README

        

Pup-cli

English | 简体中文


Pup-cli is a very simple scaffolding tool that you may have for vue-CLI why use this pup-CLI of yours? If you are a webpack user before, using vue-CLI generated projects, you will not see the webpack configuration file, because vue-CLI encapsulated webpack layer, so you are confused about how to configure, of course, according to the official website you can slowly configure, but it will take a lot of time.So I thought to use a template project to set up a relatively complete development environment, and then use puP-CLI directly select template project to generate projects, and then can quickly develop.

## Built-in template

- [vue2.x-webpack4.x](https://github.com/yxw007/vue2.x-webpack.x)(Available)
- [vue2.x-webpack5.x](https://github.com/yxw007/vue2.x-webpack.x)(Available)
- [vue3.x-webpack5.x](https://github.com/yxw007/vue3.x-webpack5.x)(Not available)

## Quick start

1. global installation:

```
npm install -g pup-cli
```

2. create project

```
pup-cli create project_name_xxx
```

## More Instructions

-

If you have a template project already built, you can use pup-cli add to add your template project to this scaffold template configuration table, so that you can quickly generate your own template project items.

> ![](https://cdn.jsdelivr.net/gh/yxw007/BlogPicBed@master/img/20211210234210.png)

- command list

```
Usage: pup-cli [options]

Options:
-V, --version output the version number
-h, --help display help for command

Commands:
add add a new template
delete delete a template
list list all the templates
create create a new project from a template
```

## Reference

- https://www.npmjs.com/package/inquirer#questions
- https://www.npmjs.com/package/download-git-repo

## License

MIT © 2022 Potter