setup Example Vue app

refs #31
This commit is contained in:
Thomas Peetz
2025-08-02 12:07:19 +02:00
parent 6201e433ae
commit 427850bd64
39 changed files with 6262 additions and 8659 deletions
+36 -4
View File
@@ -1,5 +1,17 @@
# kontor-vue
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
This template should help get you started developing with Vue 3 in Vite.
## Recommended IDE Setup
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
## Type Support for `.vue` Imports in TS
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 [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
## Project setup
```
npm install
@@ -15,10 +27,30 @@ npm run serve
npm run build
```
### Lints and fixes files
```
### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
### Run Unit Tests with [Vitest](https://vitest.dev/)
```sh
npm run test:unit
```
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
```sh
npm run test:e2e:dev
```
This runs the end-to-end tests against the Vite development server.
It is much faster than the production build.
But it's still recommended to test the production build with `test:e2e` before deploying (e.g. in CI environments):
```sh
npm run build
npm run test:e2e
```