From 6edcf68fcfb38d235cbe3c63c8fe1f1f7ed4fa86 Mon Sep 17 00:00:00 2001 From: mick Date: Tue, 31 Jan 2023 10:53:37 +0800 Subject: [PATCH] =?UTF-8?q?vue=20=E9=A1=B9=E7=9B=AE=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ vue/cli.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 vue/cli.md diff --git a/README.md b/README.md index 56b39b0..85eccbb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/vue/cli.md b/vue/cli.md new file mode 100644 index 0000000..f9d98f3 --- /dev/null +++ b/vue/cli.md @@ -0,0 +1,47 @@ +

+Vite +

构建项目

+ + +### 创建项目 + +```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 +``` + +

+Vue CLI +

构建项目

+ + +### 安装 + +```bash +npm install -g @vue/cli +# OR +yarn global add @vue/cli +``` + +### 创建项目 + +```bash +vue create hello-world +```