npm install @cib/bootstrap-componentsNote: This library requires Bootstrap 5.3.8+ as a peer dependency. Install it in your project:
npm install bootstrapIn your main application entry file (e.g., main.js):
import { createApp } from 'vue'
import App from './App.vue'
// Import Bootstrap CSS (once in your app)
import 'bootstrap/dist/css/bootstrap.min.css'
// Import the component library
import { registerComponents } from '@cib/bootstrap-components'
import '@cib/bootstrap-components/dist/bootstrap-components.css'
const app = createApp(App)
// Register all components
registerComponents(app)
app.mount('#app')Alternative: Import individual components
import { BButton, BCard, BModal } from '@cib/bootstrap-components'
app.component('b-button', BButton)
app.component('b-card', BCard)
app.component('b-modal', BModal)VSCode + Volar (and disable Vetur).
See Vite Configuration Reference.
npm installnpm devnpm buildnpm publishRun Unit Tests with Vitest
npm test:unitRun End-to-End Tests with Cypress
npm test:e2e:devThis 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 build
npm test:e2eLint with ESLint
npm lint