a tiny node app for pushing story to propriatery storybook
node v12.x or higher.
# 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
-
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.
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}