This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur).
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.
To use this project with Nix, you need to have Nix installed.
nix develop -c $SHELL
which node
# /nix/store/rs7ap24fi2lfzvr9pgi8wah44sdbmbks-nodejs-22.16.0/bin/node
which yarn
# /nix/store/8v2mz5gfxnw7205jxahcj9dv29jb35db-yarn-1.22.22/bin/yarn
This command will run the project directly from the GitHub repository without cloning it first. It uses Nix to set up the environment and dependencies and serving the project using Caddy.
nix run github:soramitsukhmer-lab/nix-vue-project
See Vite Configuration Reference.
pnpm install
pnpm dev
pnpm build
Lint with ESLint
pnpm lint