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.
npm install
npm run dev
npm run build
Run Unit Tests with Vitest
npm run test:unit
Run End-to-End Tests with Cypress
npm run test:e2e:dev
This 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:e2e
Lint with ESLint
npm run lint
- Components:
-
Button:
- Our template provides use with our own version of button with pre-defined and customizable details
- Import the Button component into your file using <!! import Button from "_dirrname/Button/Button.vue">
- PASS or BINDED value to our button are welcome!
- PROPS for Button components: a. text="someString" its default value is null, value type is STRING, this is the text that show on the Button b. routeLink="someString" its default value is '', value type is STRING or URI/URL/Path, this is the redirection link of the Button c. icon="someString" its default value is null, value type is STRING of iconify icon name. d. iconPosition="someString" its default value is null, set value to 'left' or 'right' to indicate the position of icon. e. isUpperCase=Boolean its default value is false, set value to true to make the button become disable.
text: { type: String, default: null }, routeLink: { type: String, default: '' }, icon: { type: String, default: null, }, iconPosition: { type: String, default: null }, isUppercase: { type: Boolean, default: false }, isDisabled: { type: Boolean, default: false }, btnClass: { type: String, default: 'btn btn-primary', required: true }, isLoading: { type: Boolean, default: false, }, externalLink: { type: String, default: null }
-