The home of Spruce and Parsley.
To use this repo, you'll need to:
- Install pnpm Installing via
npmis recommended. - Install dependencies:
pnpm installfrom anywhere in this repo.
Each application's README has instructions for running that app.
Read more about our analytics practices here.
Learn about our monorepo shared library here.
Check out the pnpm Workspaces documentation for more.
To upgrade a dependency across workspaces:
pnpm update [package-name] --latest --recursiveTo remove all installed dependencies:
pnpm cleanYou can then rerun pnpm install.
To run a script in all wokspaces from root:
pnpm -r run [script-name]The -r flag is shorthand for --recursive, and run is optional. For example, pnpm -r codegen is quite handy to update all packages' generated GraphQL files.
If you'd like to run script in one workspace from root:
pnpm --filter [workspace-name] run [script-name]For example, pnpm --filter spruce run storybook.
To run all unit tests across the repository, from root:
pnpm testTo run a particular workspace's unit tests from root:
pnpm test --project [workspace-name]Spruce, Parsley, and @evg-ui/lib all have their own storybooks, but there's also a shared storybook that combines them into one interface. From root, just run:
pnpm storybook