2.8.9 • Published 10 months ago

@sanger-surveillance-operations/ui-library v2.8.9

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Install

Install the component library as a dependency using npm.

npm install @sanger-surveillance-operations/ui-library

Register

Register the components with Vue and import styles to make them globally available in your app.

import Vue from 'vue'
import SangerComponents from '@sanger-surveillance-operations/ui-library'
import '@sanger-surveillance-operations/ui-library/dist/ui-library.css'

Vue.use(SangerComponents)

Use

Now you can use them in your own Vue components.

<template>
  <div>
    <sa-button text="A button" />
  </div>
</template>

Contribute

Project setup

npm install

Adding a component

  1. Create a new component folder by copying the _component-template folder
  2. Rename the component, test files and their contents by replacing SaComponent with Sa[YourComponentName] following the structure of the other components.
  3. Add the component to src/components/index.js

Start the development server

npm start

Build for production

npm run build

Lint and fix files

npm run lint

Publish a new version

npm login # if not already logged in
npm version <new version>
git push
npm publish

A production build is automatically created before publishing so there's no need to explicitly run npm run build.

2.8.9

10 months ago

2.8.8

2 years ago

2.8.5

2 years ago

2.8.4

2 years ago

2.8.7

2 years ago

2.8.6

2 years ago

2.6.71

3 years ago

2.8.3

3 years ago

2.8.2

3 years ago

2.8.1

3 years ago

2.8.0

3 years ago

2.6.73

3 years ago

2.6.74

3 years ago

0.3.0-alpha2

3 years ago

0.3.0-alpha3

3 years ago

0.3.0-alpha1

3 years ago

0.2.3

3 years ago