Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 30e280a

Browse files
committedJan 19, 2020
Add storybook
1 parent 4ee7548 commit 30e280a

File tree

3 files changed

+8938
-1734
lines changed

3 files changed

+8938
-1734
lines changed
 

‎.storybook/main.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
stories: ['../stories/**/*.stories.js'],
3+
addons: ['@storybook/addon-actions', '@storybook/addon-links'],
4+
webpackFinal: async config => {
5+
// do mutation to the config
6+
7+
return config;
8+
},
9+
};

‎package-lock.json

Lines changed: 8922 additions & 1733 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"fetch-examples:prod": "cross-env NODE_ENV=production node ./dist/fetch-examples.bundle.js",
2121
"fetch-examples-gg:prod": "cross-env NODE_ENV=production node ./dist/fetch-examples-gg.bundle.js",
2222
"fetch-examples-ml5:prod": "cross-env NODE_ENV=production node ./dist/fetch-examples-ml5.bundle.js",
23-
"heroku-postbuild": "touch .env; npm run build"
23+
"heroku-postbuild": "touch .env; npm run build",
24+
"storybook": "start-storybook -p 6006",
25+
"build-storybook": "build-storybook"
2426
},
2527
"jest": {
2628
"setupFiles": [
@@ -58,6 +60,10 @@
5860
"@babel/plugin-transform-react-inline-elements": "^7.2.0",
5961
"@babel/preset-env": "^7.4.5",
6062
"@babel/preset-react": "^7.0.0",
63+
"@storybook/addon-actions": "^5.3.6",
64+
"@storybook/addon-links": "^5.3.6",
65+
"@storybook/addons": "^5.3.6",
66+
"@storybook/react": "^5.3.6",
6167
"babel-core": "^7.0.0-bridge.0",
6268
"babel-eslint": "^9.0.0",
6369
"babel-jest": "^24.8.0",

0 commit comments

Comments
 (0)
Please sign in to comment.