ffffng/frontend
2022-08-23 17:17:51 +02:00
..
public Initial setup for new frontend. 2022-05-19 12:05:44 +02:00
src More readable link styling in ErrorCards. 2022-08-23 17:17:11 +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 Update frontend dependencies. 2022-08-23 14:58:19 +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 Local testing. 2022-08-23 17:17:51 +02:00
yarn.lock Update frontend dependencies. 2022-08-23 14:58:19 +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