storybook-host

v5.2.0
A React Storybook decorator with helpful display options for hosting components under test
react react-storybook helper ui

ui

start-storybook -p 3000 -c ./.storybook -s ./static

start

npm run build && npm run ui

test

./node_modules/mocha/bin/mocha --require ts-node/register --watch-extensions ts,tsx 'src/**/*.test.ts{,x}'

tdd

npm run test -- --reporter min --watch

prettier

node ./node_modules/prettier/bin-prettier all --write 'src/**/*.ts{,x}'

tslint

node ./node_modules/tslint/bin/tslint 'src/**/*.ts{,x}' --format verbose --fix $@

lint

npm run prettier && npm run tslint

build

rm -rf ./lib && node ./node_modules/typescript/bin/tsc

prepare

npm run lint && npm test && npm run build
npm i storybook-host

Metadata

  • MIT
  • Whatever
  • Phil Cockfield
  • released 10/26/2020

Downloads

Maintainers