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.
See Vite Configuration Reference.
yarnFirstly, it's important to generate the correct TypeScript types from our GraphQL API. For that, run
yarn codegenyarn devyarn buildRun Unit Tests with Vitest
yarn test:unitLint with ESLint
yarn lintDo translations (on MacOS or Ubuntu) with vue3-gettext
This is probably handled by the pipeline, but to do it manually also! You do need a gettext binary which can be found here
- Extract translation keys from your code and creates .po files to translate
yarn gettext:extract- Compile the translated messages from the .po files to a .json to be used in your application
yarn gettext:compile