The contents of this library have been merged in the main substra-frontend repository. This library isn't maintained anymore and all future development will occur in the substra-frontend repository.
A shared UI components library for the Substra project.
We use Storybook for component development and testing:
$ yarn storybook
Follow these steps to bypass the package repository and link together the local versions of substra-ui
and substrafront
.
In the substra-ui
directory:
$ yarn link
In the substrafront
directory:
$ yarn link "@substrafoundation/substra-ui"
$ yarn workspace ssr-package link "@substrafoundation/substra-ui"
Then you'll need to make your WIP content available to substrafront by either:
- editing
package.json
in thesubstra-ui
directory, changing"module": "es/index.js",
into"main": "src/index.js",
- or running
yarn build:es --watch
in thesubstra-ui
directory