@outlandish/sanger-components
v0.2.5
Published
Shared Vue components for MalariaGEN.
Downloads
59
Keywords
Readme
sanger-components
Shared Vue components for MalariaGEN.
Usage in other projects:
npm i @outlandish/sanger-components
- Add global css:
node_modules/@outlandish/sanger-components/dist/sanger-components.css
import SangerComponents from @outlandish/sanger-components
Vue.use(SangerComponents)
Project setup
cp .npmrc.example .npmrc
- Add a FontAwesome Pro token to
.npmrc
npm i
Adding a component
- Create a new component folder by copying the
_component-template
folder - Add the component to
plugin.js
- Demo the component in
App.vue
Compiles and hot-reloads for development
npm run serve
Compiles and minifies library for production
npm run build
Runs automatically as part of npm install
(via prepare
script in package.json)
Outputs reusable component library for use in other sanger projects, with external
dependencies (see peerDependencies
in package.json)
Lints and fixes files
npm run lint
Customize configuration
Publishing
npm version <new version>
git push
npm publish
(this will require logging in to npm, if not already)