mirror of
https://github.com/apache/superset.git
synced 2024-09-20 04:29:47 -04:00
97f18e686b
* 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
930 B
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.