worksafe-component-library
WorkSafe Component Library
This repository contains Vue components and settings used by WorkSafe websites, documented by Storybook. It is designed to be consumed by a Vue app.
Quick start
git clone worksafe-component-library
cd worksafe-component-library
npm install
# Make the library available as a global node module.
npm link
# Start Storybook documentation site
npm start
# Then switch over to your Vue app
cd ../worksafe-client
# "Install" the now-global library as a dependency
npm link worksafe-component-library
Now the components are available for import into your Vue app, e.g.
worksafe-client/src/components/Sidebar/index.vue
import CoolButton from 'worksafe-component-library'
How it works
Make a component, register it for export TODO
Storybook
Cool tool to document Vue components TODO
Deploying the component library
Deploy to Github Pages by running the following command:
yarn deploy
This will build the storybook, and then deploy it to Github by pushing the contents of /dist to origin's gh-pages branch.
Contact
Yavisht Katgara yavisht_katgara@worksafe.vic.gov.au
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.4.1 | ^2.6.10 | ISC | |
| 2.4.0 | ^2.6.10 | ISC | |
| 2.3.1 | ^2.6.10 | ISC | |
| 2.3.0 | ^2.6.10 | ISC | |
| 2.2.0 | ^2.6.10 | ISC | |
| 2.1.0 | ^2.5.13 | ISC | |
| 2.0.3 | ^2.5.13 | ISC | |
| 2.0.2 | ^2.5.13 | ISC | |
| 2.0.1 | ^2.5.13 | ISC | |
| 2.0.0 | ^2.5.13 | ISC | |
| 1.7.10 | ^2.5.13 | ISC | |
| 1.7.9 | ^2.5.13 | ISC | |
| 1.7.8 | ^2.5.13 | ISC | |
| 1.7.7 | ^2.5.13 | ISC | |
| 1.7.6 | ^2.5.13 | ISC | |
| 1.7.5 | ^2.5.13 | ISC | |
| 1.7.4 | ^2.5.13 | ISC | |
| 1.7.3 | ^2.5.13 | ISC | |
| 1.7.2 | ^2.5.13 | ISC | |
| 1.7.1 | ^2.5.13 | ISC | |
| 1.7.0 | ^2.5.13 | ISC | |
| 1.6.4 | ^2.5.13 | ISC | |
| 1.6.3 | ^2.5.13 | ISC | |
| 1.6.2 | ^2.5.13 | ISC | |
| 1.6.1 | ^2.5.13 | ISC | |
| 1.6.0 | ^2.5.13 | ISC | |
| 1.5.5 | ^2.5.13 | ISC | |
| 1.5.4 | ^2.5.13 | ISC | |
| 1.5.3 | ^2.5.13 | ISC | |
| 1.5.2 | ^2.5.13 | ISC |
Showing the latest 30 of 46. See every release on npm