2.0.19 • Published 3 years ago
@cube-dev/purple-banner v2.0.19
@cube-dev/purple-banner
The Purple Banner is a React-component for showing Cube Dev, Inc. events on our websites.
Developing
Run Storybook for easy developing by npm run storybook.
Local testing
Build the package by command
npm run build:preview.Note: in some cases there are mistakes with React hooks because of few versions of React. In this case run
npm link __path-to-website-directory__/node_modules/reactin package directory before build command.Run
npm linkto place the package in local registry.Go to webapp directory and run
npm link "@cube-dev/purple-banner". Now you can use@cube-dev/purple-bannerinside your webapp.import PurpleBanner from "@cube-dev/purple-banner";When you'll finish just unlink package by command
npm unlink "@cube-dev/purple-banner".