Skip to content

Commit

Permalink
start of storybook support
Browse files Browse the repository at this point in the history
  • Loading branch information
rloomans committed Apr 11, 2016
1 parent 765bb73 commit 67d6804
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { configure } from '@kadira/storybook';

function loadStories() {
//require('../client/js/components/stories/button');
// require as many stories as you need.
}

configure(loadStories, module);
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"url": "https://github.com/mvillis/measure-mate/issues"
},
"scripts": {
"postinstall": "gulp build --production"
"postinstall": "gulp build --production",
"storybook": "start-storybook -p 9001"
},
"browserify": {
"transform": [
Expand Down Expand Up @@ -85,5 +86,8 @@
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.0.0",
"watchify": "^3.4.0"
},
"devDependencies": {
"@kadira/storybook": "^1.8.0"
}
}

0 comments on commit 67d6804

Please sign in to comment.