https://github.com/lancejiang/vue3_chrome_template
vue3 vite 谷歌插件模板 / 淘宝获取订单插件
https://github.com/lancejiang/vue3_chrome_template
Last synced: 3 months ago
JSON representation
vue3 vite 谷歌插件模板 / 淘宝获取订单插件
- Host: GitHub
- URL: https://github.com/lancejiang/vue3_chrome_template
- Owner: LanceJiang
- Created: 2023-05-10T07:03:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-16T09:26:57.000Z (almost 2 years ago)
- Last Synced: 2025-01-08T17:09:10.644Z (5 months ago)
- Language: Vue
- Homepage:
- Size: 292 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue3_chrome_template
该模板应该可以帮助您开始在 Vite 中使用 Vue 3 进行开发
## 推荐的 IDE 设置
[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).
## 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.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.## 自定义配置
查看 [Vite 配置参考](https://vitejs.dev/config/).
## Project Setup
```sh
npm install
```### Compile and Hot-Reload for Development
```sh
npm start | npm run build:watch
```### Type-Check, Compile and Minify for Production
```sh
npm run build
```### Run Unit Tests with [Vitest](https://vitest.dev/)
```sh
npm run test:unit
```### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```