Storybook Addon CssVar Theming
Overwrite Story CSSVars for displaying theming changes
Development scripts
-
yarn start
runs babel in watch mode and starts Storybook -
yarn build
build and package your addon code
Switch from TypeScript to JavaScript
Don't want to use TypeScript? We offer a handy eject command: yarn eject-ts
This will convert all code to JS. It is a destructive process, so we recommended running this before you start writing any code.
Release Management
Setup
This project is configured to use auto for release management. It generates a changelog and pushes it to both GitHub and npm. Therefore, you need to configure access to both:
-
NPM_TOKEN
Create a token with both Read and Publish permissions. -
GH_TOKEN
Create a token with therepo
scope.
Local
To use auto
locally create a .env
file at the root of your project and add your tokens to it:
GH_TOKEN=<value you just got from GitHub>
NPM_TOKEN=<value you just got from npm>