mgv-backoffice
v1.0.13
Published
Shared Vue 3 UI component library
Readme
Login
npm login
mgv-backoffice
Shared Vue 3 UI component library.
Prerequisites
- Node.js 18+
- npm
Setup
npm installDevelopment
Watch mode rebuilds on every file change:
npm run devPublishing a new version
1. Build the library
npm run buildThis outputs the bundled files to dist/ (UMD, ESM, type declarations, and CSS).
2. Bump the version
Use one of the following depending on the type of change:
# Patch (bug fixes, small tweaks): 1.0.4 → 1.0.5
npm version patch
# Minor (new components, non-breaking features): 1.0.4 → 1.1.0
npm version minor
# Major (breaking changes): 1.0.4 → 2.0.0
npm version majorThis updates package.json and creates a git tag automatically.
3. Publish to npm
npm publishIf publishing to a private registry or GitHub Packages, make sure your .npmrc is configured with the correct registry URL and auth token.
4. Verify
npm info mgv-backoffice versionQuick one-liner
Build, bump patch, and publish in one go:
npm run build && npm version patch && npm publishUsage in consuming projects
npm install mgv-backofficeimport { BaseButton, BaseBadge, BaseBreadcrumb } from 'mgv-backoffice'
import 'mgv-backoffice/dist/style.css'Components
| Component | Description | |---|---| | BaseAlert | Dismissible alert banner | | BaseBadge | Colored status badge | | BaseBreadcrumb | Auto-generated or manual breadcrumb nav | | BaseButton | Button with color, size, loading, and routing support | | BaseLine | Horizontal divider | | BaseLogo | SVG brand logo | | BaseModal | Confirmation modal dialog | | BaseRow | Card-like content container | | BaseSpinner | Loading spinner | | BaseToast | Toast notification | | ColoredSquares | Colored square indicator | | EuroAmount | Formatted euro currency display | | Pagination | Page navigation | | TrendArrow | Up/down trend indicator with badge |
Peer dependencies
These must be installed in the consuming project:
vue^3.3.0vue-router^4.0.0@heroicons/vue^2.0.0
