Skip to content

Commit

Permalink
Extract stories.json for storybook composition
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed Oct 7, 2021
1 parent a7c9349 commit 57e59eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/.vercel/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ mkdir -p ui-dist/ui
mv dist/* ui-dist/ui/

yarn build-storybook
yarn extract-storybook
cp storybook-static/stories.json ui-dist/ui/
mv storybook-static ui-dist/storybook/

1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"lint:js": "eslint .",
"start": "./node_modules/ember-cli/bin/ember server",
"build-storybook": "STORYBOOK=true ember build && build-storybook -s dist",
"extract-storybook": "sb extract",
"storybook": "STORYBOOK=true start-storybook -p 6006 -s dist",
"test": "npm-run-all lint:* test:*",
"test:ember": "ember test"
Expand Down
5 changes: 5 additions & 0 deletions ui/public/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"versions": {
"main": "https://nomad-storybook-and-ui.vercel.app/storybook"
}
}

0 comments on commit 57e59eb

Please sign in to comment.