diverta-story-cli
v0.0.8
Published
a tiny node app for pushing story to propriatery storybook
Downloads
14
Readme
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
(typicallyfront-xxx/vue/dist
orfront-xxx/coding/oscd
).htmlPath
: The path where story html codes located
(typicallyfront-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.
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}