ffffng/frontend
2022-08-30 17:08:27 +02:00
..
public Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
src Add checkbox for monitoring when creating node. 2022-08-30 17:08:27 +02:00
.eslintrc.cjs ESLint: Allow NodeJS global. 2022-08-25 22:45:38 +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 Frontend: Update typescript. 2022-08-30 15:21:13 +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 ESLint: Auto format and fix some warnings / errors. 2022-08-23 19:08:39 +02:00
yarn.lock Frontend: Update typescript. 2022-08-30 15:21:13 +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