Onboarding and Support Components
Following atomic design, this repository contains reusable react components based on VCCUI that
are used to build onboarding, support and education web interfaces, sites and applications.
The components can be viewed in this Storybook
Development
Getting Started
npm install
npm run dev
to run storybooknpm test
to run tests
Publish
The library is automatically published to Github packages when a new tag in the format v.X.X.X
is pushed to Github. Use npm version patsh|minor|major
to bump version an
Install library in a project
The library is published as an NPM Github package. To be able to install it in your project some configuration and Github authentication is needed.
Add a file called .npmrc
to your project and paste the lines below into it to configure NPM to load @volvo-cars packages from the Github registry. The second line
references an environment variable on your machine: VCC_GITHUB_PACKAGES_TOKEN
.
@volvo-cars:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${VCC_GITHUB_PACKAGES_TOKEN}
The value of VCC_GITHUB_PACKAGES_TOKEN should be a
Github Personal Access token
with at least "read:packages" permissions.
If you use the dotenv package in your project it's also possible to define the
variable in the .env
file. In which case you need to do dotenv npm install