This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
yarn or yarn install
yarn dev
yarn build
Run Unit Tests with Vitest
yarn test:unit
Lint with ESLint
yarn lint
/src
/modules
/app
/ui
/components
/store
/router
/constant
/assets
/composable
/helper
...
/other
/ui
/components
/store
/routes
/constant
/composable
...
/plugins
/tests
/e2e
/unit
Berisi inti aplikasi vue dan komponen umum lainnya
Berisi konfigurasi library 3rd party yang digunakan
- Store -> moduleName.store.js
- Routes -> moduleName.route.js
- UI Page -> ModuleNameUI.vue [Page]
- UI Component -> components/ModuleName.vue [Component]
- Constant -> moduleName.constant.js
- Composable Method Name -> composableName_methodName
- State Name -> moduleName_stateName ....
Jika ada methods di setiap component atau ada suatu business logic yang memang complex, direkomendasikan untuk menggunakan comment. Berikut format comments yang sering digunakan di project ini:
/**
* @description Some function
*
* @param {string} string
*
* @return {string} string
*/
const func = (string = '') => {
return string;
};
Comment menggunakan dokumentasi dari plain javascript https://javascript.info/comments
Library | Description |
---|---|
vue-router | Router |
vuetify | UI Library |
vue3-easy-data-table | Data Table |
keycloak-js | Keycloak Adapter |
pinia | State Management |
@vuelidate | Form Validator |
axios | Http Client |
lodash | Helper Array/Object |
moment | Helper Date |
@sentry/vue | Error & Performance Monitoring |
@vueuse | Composable Helper |