ffffng/frontend
2022-08-04 15:33:41 +02:00
..
public Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
src Move shared code into own directory for use in new frontend. 2022-08-04 15:33:41 +02:00
.eslintrc.cjs Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
.gitignore Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
env.d.ts Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
index.html Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
LICENSE Added AGPL v3 license for new frontend. 2022-05-23 12:27:05 +02:00
package.json Updated frontend dependencies. 2022-08-04 14:16:17 +02:00
README.md Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
tsconfig.json Fix: Make typecheck not complain about fetch(). 2022-07-18 18:30:49 +02:00
tsconfig.vite-config.json Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
tsconfig.vitest.json Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
vite.config.ts Mute incorrect warning. 2022-07-14 20:07:51 +02:00
yarn.lock Updated frontend dependencies. 2022-08-04 14:16:17 +02:00

frontend

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

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 TypeScript Vue Plugin (Volar) 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 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.

Customize configuration

See Vite Configuration Reference.

Project Setup

yarn install

Compile and Hot-Reload for Development

yarn run dev

Type-Check, Compile and Minify for Production

yarn run build

Run Unit Tests with Vitest

yarn run test:unit

Lint with ESLint

yarn run lint