Before getting started, you should have the following installed and running:
[To be updated]
| Port | |
|---|---|
| 5173 | debugging |
| 8081 | deployed via http-server |
npm install openapi-typescript-fetch
npx openapi-typescript http://192.168.178.23:8090/docs/?format=openapi --output src\services\fetcher\PrekitApiV1.ts
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Volar provides a feature called "Takeover Mode" to improve performance. In takeover mode, Volar provides support for both Vue and TS files using a single TS language service instance. Otherwise, you will have two TS language service instances running in parallel, which is a bit inefficient and can lead to performance issues in large projects. To activate follow these instructions.
Vue.js Dev Tools (Chrome) Recommended browser plugin. There are also plugins for other browsers.
.vue Imports in TSTypeScript 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:
Extensions: Show Built-in Extensions from VSCode's command paletteTypeScript and JavaScript Language Features, right click and select Disable (Workspace)Developer: Reload Window from the command palette.See Vite Configuration Reference.
npm install
npm run dev
npm run build
npm run test:unit
npm run build
npm run test:e2e # or `npm run test:e2e:ci` for headless testing
npm run lint
Prefer Vue Component API over Options API.
Create *.d.ts files for JavaScript code:
npx -p typescript tsc src/**/*.js --declaration --allowJs --emitDeclarationOnly --outDir types
Please see Jira board and use git smart commits to handle issues properly.
The branch structue will strongly follow the git-flow best-practices.
Content type
Image
Digest
sha256:427d77db1…
Size
35.4 MB
Last updated
over 2 years ago
docker pull tillschoepe/prekit-frontend