vue 项目创建命令

This commit is contained in:
2023-01-31 10:53:37 +08:00
parent 71e3081668
commit 6edcf68fcf
2 changed files with 49 additions and 0 deletions

View File

@ -12,4 +12,6 @@
- default.conf 默认配置文件
- mime.types MIME Types 配置
- [cli.md](./nginx/cli.md) Nginx 命令
- vue
- [cli.md](./vue/cli.md) Vue CLI 命令
- README.md

47
vue/cli.md Normal file
View File

@ -0,0 +1,47 @@
<h1>
Vite
<h3>构建项目</h3>
</h1>
### 创建项目
```bash
npm create vite@latest
# OR
yarn create vite
```
### 使用模板创建项目
```bash
# npm 6.x
npm create vite@latest my-vue-app --template vue
# npm 7+, extra double-dash is needed:
npm create vite@latest my-vue-app -- --template vue
# yarn
yarn create vite my-vue-app --template vue
# pnpm
pnpm create vite my-vue-app --template vue
```
<h1>
Vue CLI
<h3>构建项目</h3>
</h1>
### 安装
```bash
npm install -g @vue/cli
# OR
yarn global add @vue/cli
```
### 创建项目
```bash
vue create hello-world
```