- react-components (
@sparrowengg/twigs-react
) → React UI components - react-icons (
@sparrowengg/twigs-react-icons
) → SVG Icons package built with React
This repo is built with lerna to support monorepo. commands can be run from the root folder, and will be applicable for all of the packages under the monorepo
- Clone the repo
- install the dependencies using yarn
yarn install
Twigs uses Stitches and Radix for most of its components.
Storybook is configured for components and icons, so you can run yarn storybook
from the respective directory to start a development view.
$ git clone https://github.com/surveysparrow/twigs.git
$ cd twigs
$ yarn
$ yarn build
$ cd packages/react-components
$ yarn storybook
Other scripts
-
build
npx lerna run build
-
build static storybook
npx lerna run build-storybook
-
To delete all node_modules folders (even from subpackages),
npx lerna clean -y
-
If you'd like to run command against one package alone, run
npx lerna run build --scope=package-name