vue-boiler-template
v0.1.5
Published
## Project Setup ```sh npx vue-boiler-template@`latest_version` project_name ```
Readme
vue-boilerplate
Project Setup
npx vue-boiler-template@`latest_version` project_name For Example -
npx [email protected] vue-templateInstall dependency
npm installCompile and Hot-Reload for Development
npm run devType-Check, Compile and Minify for Production
npm run buildRun Unit Tests with [Vitest]
npm run test:unitLint with [ESLint]
npm run lintComponent Structure
A typical Vue component contains the following sections:
- IMPORTS
- COMPOSABLE
- STORES
- PROPS
- EMITS
- DATA
- SCHEMA
- METHODS
- COMPUTED
- WATCHER
- HOOKS
- TEMPLATE
- STYLE SCOPED
Directory Structure
- src/
- assets/: Static assets like CSS, images, etc.
- components/: Vue components.
- Base/: Base components like buttons, inputs, etc.
- Icons/: Icon components.
- constants/: Constant values used throughout the application.
- layouts/: Layout components.
- locales/: Localization files.
- middleware/: Middleware for API clients, etc.
- models/: TypeScript interfaces and types.
- plugins/: Vue plugins.
- router/: Vue Router configuration.
- services/: Service functions and classes.
- stores/: Pinia stores.
- utils/: Utility functions.
- views/: Vue views or pages.
