Vue 3 in Vite. + tailwind css .
entry points
- dev :
- prod :
The F2E 六角學院 修煉精神光屋 2023 Mission 1 - 立委競選官網,示範網頁
- 設計稿特別感謝 團隊名稱:團體組長/薩卡班甲魚| UI 設計| OuO 提供。
- 網頁網址 https://minilabmemo.github.io/f2e-election-meowsakka/
- 功能說明:一頁式介紹頁面,關於薩卡/政策/活動/服務頁面說明文字。
- Vue3
- Typescript
- tailwind css
- test :
npm run test:ui,open http://localhost:51204/**vitest**/#/?file=378120240 - e2e :
npm run test:e2e:dev
Use .github/workflows Actions.
- Jobs: test/cypress-run->deploy
This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
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:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
See Vite Configuration Reference.
npm installnpm run devnpm run build
npm run preview 預覽Run Unit Tests with Vitest
npm run test:unitRun End-to-End Tests with Cypress
npm run test:e2e:devThis 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:e2eLint with ESLint
npm run lint