Browse Source

Ability to deploy the storybook to gh-pages

master
meriadec 7 years ago
parent
commit
b751decefe
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 1
      .gitignore
  2. 2
      package.json
  3. 13
      scripts/publish-storybook.sh

1
.gitignore

@ -4,4 +4,5 @@
/flow-typed/
/node_modules/
/static/
/storybook-static/
thumbs.db

2
package.json

@ -16,7 +16,7 @@
"flow": "flow",
"lint": "eslint src webpack .storybook",
"storybook": "start-storybook -p 4444",
"build-storybook": "build-storybook"
"publish-storybook": "bash ./scripts/publish-storybook.sh"
},
"electronWebpack": {
"renderer": {

13
scripts/publish-storybook.sh

@ -0,0 +1,13 @@
#!/bin/bash
set -e
rm -rf storybook-static
./node_modules/.bin/build-storybook
cd storybook-static
git init
git remote add origin git@github.com:LedgerHQ/ledger-wallet-desktop.git
git add .
git commit -m 'deploy storybook'
git push -f origin master:gh-pages
printf "deployed with success!"
Loading…
Cancel
Save