Skip to content

Commit

Permalink
Documentation: Adding Deploy storybook script
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jun 7, 2017
1 parent 4b70309 commit 9f4a7e1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ gutenberg.pot
*.log
yarn.lock
gutenberg.zip
storybook-static
6 changes: 6 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const config = require( '../webpack.config' );
const webpack = require( 'webpack' );
config.module.rules = [
// Exclude the sass loader to override it
...config.module.rules.filter( ( rule ) => ! rule.test.test( '.scss' ) ),
Expand Down Expand Up @@ -26,4 +27,9 @@ config.module.rules = [
];
config.externals = [];

// Exclude Uglify Plugin to avoid breaking the React Components Display Name
config.plugins = config.plugins.filter( plugin => {
return plugin.constructor !== webpack.optimize.UglifyJsPlugin;
} );

module.exports = config;
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,12 @@ script:
npm install || exit 1
npm run ci || exit 1
fi
before_deploy:
- npm install && npm run build-storybook

deploy:
provider: surge
project: ./storybook-static/
domain: gutenberg-devdoc.surge.sh
skip_cleanup: true

0 comments on commit 9f4a7e1

Please sign in to comment.