1.0.3 • Published 3 years ago
@greifmatthias/storybook-cssvar-theming-addon v1.0.3
Storybook Addon CssVar Theming
Overwrite Story CSSVars for displaying theming changes
Development scripts
yarn startruns babel in watch mode and starts Storybookyarn buildbuild 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_TOKENCreate a token with both Read and Publish permissions.GH_TOKENCreate a token with thereposcope.
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>