CRC is a monorepo using Lerna and contains many packages that are installed separately while depending on each other.
This package exports a component called CourierProvider
which creates a context object that is required for the following packages.
CourierToast
is a non modal, component used to display brief, optional-expiring windows of information to a user. This can be integrated with a push
provider or can be triggered manually.
CourierInbox
is a component used to display a history of read
and unread
messages to a user.
All commands in a monorepo are run in the root
of the project. You should never have to navigate into any of the sub-packages to do any development.
-
yarn
There is a postinstall task that will bootstrap the
lerna
project andsymlink
each package to eachother if they have dependencies to other packages in this repo. -
yarn start
This will initiate a
storybook
instance insidepackages/storybook
. THis is where all development for these packages should be done. -
yarn publish
This will publish the packages to
npm
and version them together. This should only be run viagithub actions
. -
yarn typecheck
Run typechecking on each package
-
yarn build
Run
babel
and transpile each package to a consumable jsdist
folder. -
yarn clean
Cleans all
node_modules
from each package and deletes the rootnode_modules
. Sometimes useful if packages have gotten out of date.