From 26ad734456794401b7336747a5108b5ab614e2ad Mon Sep 17 00:00:00 2001 From: PeterAlbus Date: Tue, 28 Feb 2023 16:56:44 +0800 Subject: [PATCH] Update README.md. --- README.md | 17 +++++++++++------ src/views/HomeView.vue | 7 ++++--- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5e994ca..ae8f567 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This template should help get you started developing with Vue 3 in Vite. [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). -## Type Support for `.vue` Imports in TS +## Type Support for `.vue` Imports in TS / `.vue` 文件的类型支持 TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. @@ -39,34 +39,39 @@ If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has a See [Vite Configuration Reference](https://vitejs.dev/config/). -## Project Setup +## Project Setup / 安装依赖 ```sh npm install +or pnpm install ``` -### Compile and Hot-Reload for Development +### Compile and Hot-Reload for Development / 编译并启动热更新服务器 ```sh npm run dev +or pnpm run dev ``` -### Type-Check, Compile and Minify for Production +### Type-Check, Compile and Minify for Production / 类型检查并编译 ```sh npm run build +or pnpm run build ``` -### Run Unit Tests with [Vitest](https://vitest.dev/) +### Run Unit Tests with [Vitest](https://vitest.dev/) / 单元测试 ```sh npm run test:unit +or pnpm run test:unit ``` -### Lint with [ESLint](https://eslint.org/) +### Lint with [ESLint](https://eslint.org/) / 使用ESLint ```sh npm run lint +or pnpm run lint ``` diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 3408ea6..cca7f2d 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,8 +1,9 @@