epi-storybook v0.4.1-alpha.2
Getting started
Install package dependencies:
yarn install
Run the app
TSDX scaffolds your new library inside /src
.
The recommended workflow is to run TSDX in one terminal:
npm start # or yarn start
This builds to /dist
and runs the project in watch mode so any edits you save inside src
causes a rebuild to /dist
.
Then run either Storybook:
Storybook
Run inside another terminal:
yarn storybook
This loads the stories from ./stories
.
Configuration
Code quality is set up for you with prettier
, husky
, and lint-staged
. Adjust the respective fields in package.json
accordingly.
Jest
Jest tests are set up to run with npm test
or yarn test
.
Bundle analysis
Calculates the real cost of your library using size-limit with npm run size
and visulize it with npm run analyze
.
ERR-OSSL_EVP_UNSUPPORTED
If you run into the SSL Error, you can use export SET NODE_OPTIONS=--openssl-legacy-provider;
to enable openSSL on the NodeJS.
You should have installed NVM (Node Version Manager). If you never had before, just run this command in your terminal:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
- Open your project
- Open the terminal in your project
- Run the command
nvm install 16.13.0
or any older version - After the installation is completed, run nvm use
16.13.0