@worksafevictoria/wcl
v1.35.1
Published
This repo contains all the common components used on the [WorkSafe Victoria](https://www.worksafe.vic.gov.au) public website.
Downloads
1,270
Readme
Worksafe Component Library v2
This repo contains all the common components used on the WorkSafe Victoria public website.
Minimum Requirements
- Yarn -> Latest (Needed for workspaces)
- Node -> latest version 18.19.0
- VSCode preferred
- ESLint should be installed globally (npm install -g eslint)
- Vue Dev tools plugin for Chrome / Firefox
Fresh Install
git clone <this-repo>
chmod +x bin/clean.sh
yarn reinstall
Run Dev
yarn dev
Build
yarn build
Deploy
chmod +x bin/deploy.sh
yarn deploy
Release - Dry run
yarn dryrun
Release
yarn release
Usage Instructions - Yarn - recommended
yarn add @worksafevictoria/wcl
Usage Instructions - npm
npm i @worksafevictoria/wcl
Nuxt - if you have errors after importing
# nuxt.config.js
build {
transpile: ['@worksafevictoria/wcl', 'xxx', 'xxx', 'xxx']
}
Import example
<template>
<container>
<row>
<column :md="6">
<cta-button @clicked="$emit('nextScreen')">Start</cta-button>
</column>
</row>
</container>
</template>
<script>
import { Container, Column, Row, CtaButton } from '@worksafevictoria/wcl'
export default {
components: { Container, Column, Row, CtaButton }
}
</script>
<style lang="scss" scoped>
@import './styles';
</style>