No description
Find a file
2024-11-16 15:26:35 -08:00
.vscode new file: .dockerignore 2024-11-15 09:13:20 -08:00
cypress new file: .dockerignore 2024-11-15 09:13:20 -08:00
public new file: .dockerignore 2024-11-15 09:13:20 -08:00
src Rewind from a user account system. Not necessary. 2024-11-16 15:26:35 -08:00
.dockerignore new file: .dockerignore 2024-11-15 09:13:20 -08:00
.editorconfig new file: .dockerignore 2024-11-15 09:13:20 -08:00
.gitignore new file: .dockerignore 2024-11-15 09:13:20 -08:00
.prettierrc.json new file: .dockerignore 2024-11-15 09:13:20 -08:00
cypress.config.ts new file: .dockerignore 2024-11-15 09:13:20 -08:00
docker-compose.yml new file: .dockerignore 2024-11-15 09:13:20 -08:00
Dockerfile new file: .dockerignore 2024-11-15 09:13:20 -08:00
env.d.ts new file: .dockerignore 2024-11-15 09:13:20 -08:00
eslint.config.js new file: .dockerignore 2024-11-15 09:13:20 -08:00
index.html It's just the beginning. 2024-11-15 20:36:25 -08:00
package-lock.json More work? 2024-11-16 14:14:49 -08:00
package.json Rewind from a user account system. Not necessary. 2024-11-16 15:26:35 -08:00
postcss.config.js new file: .dockerignore 2024-11-15 09:13:20 -08:00
README.md new file: .dockerignore 2024-11-15 09:13:20 -08:00
tailwind.config.js new file: .dockerignore 2024-11-15 09:13:20 -08:00
tsconfig.app.json More work? 2024-11-16 14:14:49 -08:00
tsconfig.json More work? 2024-11-16 14:14:49 -08:00
tsconfig.node.json new file: .dockerignore 2024-11-15 09:13:20 -08:00
tsconfig.vitest.json new file: .dockerignore 2024-11-15 09:13:20 -08:00
vite.config.ts new file: .dockerignore 2024-11-15 09:13:20 -08:00
vitest.config.ts new file: .dockerignore 2024-11-15 09:13:20 -08:00

Hub Site

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

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

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Run End-to-End Tests with Cypress

npm run test:e2e:dev

This runs the end-to-end tests against the Vite development server. It is much faster than the production build.

But it's still recommended to test the production build with test:e2e before deploying (e.g. in CI environments):

npm run build
npm run test:e2e

Lint with ESLint

npm run lint