0.0.9 • Published 4 years ago
@bigpicturemedical/medkit-vue2 v0.0.9
Medkit (Vue 2 component library)
Usage
Installation
npm i @bigpicturemedical/medkit-vue2
or
yarn add @bigpicturemedical/medkit-vue2Import entire library globally
import Vue from 'vue';
import MedkitVue2 from '@bigpicturemedical/medkit-vue2';
Vue.use(MedkitVue2);Import components from the esm folder to enable tree-shaking
import { MkBadge } from '@bigpicturemedical/medkit-vue2/esm';Demo code can be found under the docs section within storybook.
Local development
Generate new component
npm run create-componentInstall
npm installServe
npm run serveLint
npm run lintor lint and automatically fix files
npm run lint:fixTests
Run all tests
npm run test:unitRun tests in watch mode
npm run test:single BadgeBuild for production
Build everything
npm run buildBuild library
npm run build:libBuild storybook docs
npm run build:docs