shapes-and-lines
As the name suggests, this is a library that provides shape and line components.
Available components:
Shapes
: renders multiple shapes that are placed randomly within a containerCurvedLines
: renders multiple random curved linesPolylines
: renders multiple random polylines
Storybook page: https://forbetterorworse.github.io/shapes-and-lines/
Installation
To install the library in your project, run:
npm i shapes-and-lines
yarn add shapes-and-lines
pnpm add shapes-and-lines
Development
Tech Stack
The main tech this library uses:
- React
- React Icons
- Vite
- Storybook
Setup
Steps to setup the project locally:
- Clone the repo
- Run
pnpm i
to install the dependencies - Run
pnpm storybook
to start Storybook
Publishing
Note: If the new changes require documentation updates (README.md
specifically), be sure to make the documentation changes before the package release. Otherwise, the README.md
changes won't be reflected on the NPM package page (ref).
Steps to publish a new package version:
- Run
pnpm version [new-version]
. The command will automatically bump the package version and commit the change - Create a PR with the version bump
- Merge the PR into
main
- On the local environment, ensure the
main
branch is up-to-date - Run
pnpm build
to build the package - Run
pnpm publish --dry-run
to verify the package content - Run
pnpm publish
to publish the package