Skip to content

Commit

Permalink
Move modules to storybook-core repo
Browse files Browse the repository at this point in the history
  • Loading branch information
thani-sh committed May 13, 2016
1 parent eb13e1d commit 6def75a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
22 changes: 11 additions & 11 deletions dist/manager.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/manager.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"dev": "DEV_BUILD=1 nodemon --watch src --exec 'npm run prepublish'"
},
"dependencies": {
"@kadira/storybook-core": "^1.26.0",
"airbnb-js-shims": "^1.0.0",
"babel-runtime": "^6.3.14",
"cjson": "^0.4.0",
Expand Down
3 changes: 2 additions & 1 deletion src/client/manager/configs/context.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default function (reduxStore) {
export default function (reduxStore, Preview) {
return {
reduxStore,
Preview,
};
}
9 changes: 5 additions & 4 deletions src/client/manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { createApp } from 'mantra-core';
import buildContext from './configs/context.js';
import UUID from 'uuid';

import apiModule from './modules/api';
import shortcutsModule from './modules/shortcuts';
import apiModule from '@kadira/storybook-core/dist/modules/api';
import shortcutsModule from '@kadira/storybook-core/dist/modules/shortcuts';
import uiModule from '@kadira/storybook-core/dist/modules/ui';
import previewModule from './modules/preview';
import uiModule from './modules/ui';
import Preview from './modules/preview/containers/preview';

const dataId = UUID.v4();

Expand All @@ -19,7 +20,7 @@ const reducer = combineReducers({
});

const reduxStore = createStore(reducer);
const context = buildContext(reduxStore);
const context = buildContext(reduxStore, Preview);
const app = createApp(context);

app.loadModule(apiModule);
Expand Down

0 comments on commit 6def75a

Please sign in to comment.