https://github.com/asasugar/asasugar-cli
🚀 快速生成项目cli工具,模版:多页应用模版、Vue SPA模版(Vue3 Vue2)、React SPA模版(v16.8)、npm插件开发模版
https://github.com/asasugar/asasugar-cli
cli npm
Last synced: about 1 year ago
JSON representation
🚀 快速生成项目cli工具,模版:多页应用模版、Vue SPA模版(Vue3 Vue2)、React SPA模版(v16.8)、npm插件开发模版
- Host: GitHub
- URL: https://github.com/asasugar/asasugar-cli
- Owner: asasugar
- Created: 2018-08-22T03:58:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-14T01:55:35.000Z (over 4 years ago)
- Last Synced: 2025-03-25T15:21:15.299Z (over 1 year ago)
- Topics: cli, npm
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# asasugar-cli
> 多页应用模板 cli 工具(目前支持生成 html 跟 pug 两种方式)
> 单页应用模板支持 Vue 模板、React 模板
> npm插件开发模块支持pnpm管理package
## Start
```bash
# 全局安装cli
pnpm add asasugar-cli -g # use pnpm
npm i asasugar-cli -g # use npm
yarn add asasugar-cli global # use yarn
# 查看版本
asasugar-cli -V
# 创建项目
asasugar-cli init
```
## How to Use [Pnpm](https://github.com/pnpm/pnpm)
```bash
# 全局安装
npm i pnpm -g
```
## How to Use Yarn
```bash
# 全局安装
npm i yarn -g
# 设置镜像源
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
```