superset/superset-frontend/temporary_superset_ui/superset-ui/docs/storybook.md
Krist Wongsuphasawat 97f18e686b build: migrate build tool to nimbus (#281)
* build: migrate to nimbus

* build: update gitignore

* build: update package.json

* build: update travis config

* build: lower engine requirements

* build: adjust typescript config

* fix: errors

* fix: change yarn run to yarn

* fix: lint

(cherry picked from commit 22328c349c9b987eecc5e46fb306e459b6a9cadc)

* fix: eslint rules

* fix: lint

* fix: setup file

* fix: more lint

* fix: lint - pass build and lint

* fix: test setup and babel transform runtime

(cherry picked from commit dd55fd88ced045a8f83ca771705721bf2f930ff0)

* fix: timeout issues

* fix: some broken test due to jest.setTimeout

* fix: computeMaxFontSize tests

* fix: createLoadableRenderer test

* fix: loadble and broken tests due to warnings

* fix: test coverage

* fix: coverage of generator tests

* fix: all unit tests pass

* fix: remove yeutech-lab/react-loadable
2021-11-26 11:45:00 +08:00

930 B

Using Storybook

You can demo your changes by running the storybook demo locally with the following commands:

yarn install
yarn build
cd packages/superset-ui-demo
yarn storybook:run

Alternatively, you can demo your changes by using the following command while in packages/superset-ui-demo:

yarn storybook

Tips

When developing, if you would like to see live changes in Storybook.

Instead of

import { xxx } from '@superset-ui/plugin-chart-horizon';

which will point to the transpiled code.

Do refer to src

import { xxx } from '@superset-ui/plugin-chart-horizon/src';

Then after you are satisfied with all the changes, yarn build the entire project and remove /src from the import statement and check Storybook again. This rarely happens, but the minification sometimes can cause issue and you may see different results ranging from crashing to different behavior.