Skip to content

Commit

Permalink
put all storybook stuff in the same directory
Browse files Browse the repository at this point in the history
  • Loading branch information
brainkim committed Aug 30, 2019
1 parent d721148 commit 2ccb7e7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"lint": "eslint --ignore-path .gitignore .",
"prepublishOnly": "yarn run test && yarn run build",
"test": "jest --config jest.config.js --color",
"start-storybook": "start-storybook -p 1337",
"build-storybook": "build-storybook"
"start-storybook": "start-storybook -p 1337 --config-dir stories",
"build-storybook": "build-storybook --config-dir stories"
},
"dependencies": {
"@repeaterjs/repeater": "^2.0.0"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion .storybook/config.js → stories/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { configure } from '@storybook/react';

// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /\.stories\.js$/);
const req = require.context('.', true, /\.stories\.js$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}
Expand Down
File renamed without changes.

0 comments on commit 2ccb7e7

Please sign in to comment.