React UI component library for IPG web applications
pnpm install --save @ipguk/react-ui
For a list of supported components run storybook. The basic syntax for usage is shown below for a generic "Component".
import React from "react";
import { Component } from "@ipguk/react-ui";
function Example() {
return <Component>Here we go</Component>;
}
Run storybook to explore all of the components and documentation.
pnpm run storybook
To release a new version, follow these steps.
-
Check that all tests pass
pnpm test
-
Up version the package using
pnpm version major|minor|patch|prerelease
-
Push the release and tag to Git
git push
git push --tags
-
Run the publish command
Note: If publishing for the first time you will need to login to npm
pnpm login
pnpm publish --access=public
Note: If publishing a prerelease ensure that it is tagged as next rather than latest
pnpm publish --access=public --tag=next
-
Publish the release on GitHub
MIT © IPG Automotive