diverta-story-cli

0.0.8 • Public • Published

diverta-storybook-cli

a tiny node app for pushing story to propriatery storybook

Pre-requisties

node v12.x or higher.

Usage

# dsc push <distPath> <htmlPath> <storybookPath> <storyName>
dsc push ./dist ../coding/story/html ~/workspace/storybook front-xxx
# or using env variables.
# dsc push ./oscd ./story/html $STORYBOOK front-oscd-xxx

Arguments

  • distPath: The path where distnation files located
    (typically front-xxx/vue/dist or front-xxx/coding/oscd).
  • htmlPath: The path where story html codes located
    (typically front-xxx/coding/story/html).
  • storybookPath: The path where the cloned local repository dir from our Storybook App.
  • storyName: Unique name of the story, this will become story name listed in Storybook category.

How works

This app is for uploading customized story files which match our Storybook App.

Following generating frontend apps by front_templates,
the result holds for ./coding/story directory.
That directory is NOT for general Storybook app.
doc

First, you need to clone our Storybook App repository from here.
Next, write some JS codes into ./coding/story/html.
Then you can look components catarogue as like styleguides with typing follows.
dsc push ${TemplateDir} ${StorybookDir}

Readme

Keywords

none

Package Sidebar

Install

npm i diverta-story-cli

Weekly Downloads

14

Version

0.0.8

License

none

Unpacked Size

7.84 kB

Total Files

8

Last publish

Collaborators

  • yabe_diverta