2023-02-16 14:02:39 -08:00
# omorphia
2022-03-07 21:55:31 -08:00
2023-02-16 14:02:39 -08:00
This template should help get you started developing with Vue 3 in Vite.
2022-06-25 12:32:03 -07:00
2023-02-16 14:02:39 -08:00
## Recommended IDE Setup
2022-06-25 12:32:03 -07:00
2023-02-16 14:02:39 -08:00
[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 ).
2022-03-07 21:55:31 -08:00
2023-02-16 14:02:39 -08:00
## Type Support for `.vue` Imports in TS
2022-03-07 21:55:31 -08:00
2023-02-16 14:02:39 -08:00
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.
2022-06-21 00:38:52 -07:00
2023-02-16 14:02:39 -08:00
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:
2022-06-21 00:38:52 -07:00
2023-02-16 14:02:39 -08:00
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.
2022-06-21 00:38:52 -07:00
2023-02-16 14:02:39 -08:00
## Customize configuration
2022-03-07 21:55:31 -08:00
2023-02-16 14:02:39 -08:00
See [Vite Configuration Reference ](https://vitejs.dev/config/ ).
2022-03-07 21:55:31 -08:00
2023-02-16 14:02:39 -08:00
## Project Setup
2022-06-21 00:38:52 -07:00
2023-02-16 14:02:39 -08:00
```sh
npm install
2022-06-21 00:38:52 -07:00
```
2023-02-16 14:02:39 -08:00
### Compile and Hot-Reload for Development
2022-06-13 11:34:46 -07:00
2023-02-16 14:02:39 -08:00
```sh
npm run dev
```
2022-06-13 11:34:46 -07:00
2023-02-16 14:02:39 -08:00
### Type-Check, Compile and Minify for Production
2022-06-13 11:34:46 -07:00
2023-02-16 14:02:39 -08:00
```sh
npm run build
```
2022-03-09 21:27:53 -08:00
2023-02-16 14:02:39 -08:00
### Lint with [ESLint](https://eslint.org/)
2022-03-09 21:27:53 -08:00
2023-02-16 14:02:39 -08:00
```sh
npm run lint
2022-05-20 00:10:15 -07:00
```