DV1512 / frontend

0 stars 0 forks source link

tm_inside

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

Recommended IDE Setup

VSCode + 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 to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

Git submodule

git submodule update --init --recursive

Compile SDK

Make sure Rust and wasm-pack is installed for this step, if you don't have it, install it by running

cargo install wasm-pack

Then, enter the sdk diretory in the terminal and run

wasm-pack build --features wasm --no-default-features

Install Deps

Bun needs to be installed for running this project, other package managers can be used but are not tested. To do this you need to be in the frontend directory.

bun install

Compile and Hot-Reload for Development

bun dev

Type-Check, Compile and Minify for Production

bun build

Lint with ESLint

bun lint