This project makes use of Yarn workspaces, so yarn (v1) is required in your system path.
After cloning the repo, run yarn install.
To start developing components and website together, run yarn start and open http://localhost:3000 in your browser.
yarn workspace @loremlabs/monet run storybook
# or
cd monet
yarn storybookcd website
yarn devyarn build
# or, build components separately
yarn build-monet # built monet are in ./monet/dist
yarn build-website # built website is in ./website/build
yarn build-storybooks # built storybooks are in ./monet/dist/storybook and ./website/build/storybook respetivelyOnly @loremlabs/monet is meant be publishing to npm.
- Bump package version for
@loremlabs/monetand use same in the dependent@loremlabs/website. - Create a release commit (say, with message
x.y.z) andgit push. - Create a new release at https://github.com/LoremLabs/monet/releases/new and publish it. Also add a changelog/release summary (you can edit the it later).
- A GitHub Action will then automatically run
scripts/release.shto publish the package to npm with correct directories and file names (don't simply runnpm publishlocally! Run./scripts/release.shif you wish to publish from your computer).