Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

LabeliaLabs/substra-ui

Substra-ui ⚠️ DEPRECATED ⚠️

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.

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