Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

worksafe-component-library

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worksafe-component-library

A Vue.js component library for use in WorkSafe family websites

  • 2.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

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

FAQs

Package last updated on 18 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc