1.1.4 • Published 4 years ago

@substrafoundation/substra-ui v1.1.4

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
4 years ago

Substra-ui

A shared UI components library for the Substra project.

Storybook

We use Storybook for component development and testing:

$ yarn storybook

Development setup

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 the substra-ui directory, changing "module": "es/index.js", into "main": "src/index.js",
  • or running yarn build:es --watch in the substra-ui directory