Files
Vue3Template/Vue3TCli/README.md
2024-09-27 00:58:46 +08:00

35 lines
1.3 KiB
Markdown
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## tsvue3-cli
项目模板[Vue3Template](https://github.com/helpcode/Vue3Template)的官方cli脚手架工具让你更加快速的创建项目感受编码的乐趣。
> 1项目模板[https://github.com/helpcode/Vue3Template](https://github.com/helpcode/Vue3Template)
> 2项目注解包[https://www.npmjs.com/package/vue3decorators](https://www.npmjs.com/package/vue3decorators)
> 3自动路由插件[https://www.npmjs.com/package/vue-cli-plugin-autorouter](https://www.npmjs.com/package/vue-cli-plugin-autorouter)
## 安装
一行命令解决一切
> npm install -g tsvue3-cli
## 使用
你只需要简单的输入以下几条命令即可愉快运行网站:
```js
$ tsvue init project # 创建项目 project 为你项目名字(自定义)
$ cd project # 进入项目
$ npm run dev # 运行网站
```
## 注意
- 1请先安装`git`并确保`git`命令能在终端中正确反馈,因为`cli`脚手架需要通过`git`来安装下载代码到你的项目中。
- 2`init`下载速度是基于你的网速决定的,如果太慢不需要着急等待片刻就好。
- 3`cli`插件会自动帮你进行`npm i`来解决依赖,如果你的`npm`网速很慢,那么在终端看到`🎉 Download Success...`提示后,可以`Ctrl + C`强制结束终端的依赖下载,进而采用`cnpm i`