Skip to content

Commit

Permalink
export bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rannn505 committed Dec 21, 2016
1 parent ab857a4 commit 948b240
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -29,9 +29,9 @@ $ npm run generate mode=del obj1 obj2 obj3... (DELETE OBJECTS)
- Include `Reducers` in [combineReducers()](http://redux.js.org/docs/api/combineReducers.html):
```javascript
import { combineReducers } from 'redux'
import user from './node_modules/reduxbknd-sdk/auth/authReducer'
import obj1 from './node_modules/reduxbknd-sdk/obj1/obj1Reducer'
import obj2 from './node_modules/reduxbknd-sdk/obj2/obj2Reducer'
import user from './node_modules/reduxbknd-sdk/src/auth/authReducer'
import obj1 from './node_modules/reduxbknd-sdk/src/obj1/obj1Reducer'
import obj2 from './node_modules/reduxbknd-sdk/src/obj2/obj2Reducer'

combineReducers({
user,
Expand All @@ -41,7 +41,7 @@ combineReducers({
```
- Import `Actions` and dispatch them happily! :smile:
```javascript
import { getUserDetails, signin, useAnonymousAuth, signout } from './node_modules/reduxbknd-sdk/auth/authActions'
import { getUserDetails, signin, useAnonymousAuth, signout } from './node_modules/reduxbknd-sdk/src/auth/authActions'

store.dispatch(signin(username, password))
store.dispatch(getUserDetails())
Expand Down
2 changes: 1 addition & 1 deletion index.js
@@ -1,2 +1,2 @@
export * from './src/auth/authActions'
export authReducer from './src/auth/authReducer'
export { default as user } from './src/auth/authReducer'
5 changes: 3 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "reduxbknd-sdk",
"version": "1.0.1",
"version": "1.0.2",
"description": "Backand SDK for Redux",
"main": "index.js",
"files": [
Expand All @@ -16,7 +16,8 @@
"author": "Backand",
"license": "MIT",
"dependencies": {
"vanillabknd-sdk": "^1.0.1"
"vanillabknd-sdk": "^1.0.1",
"redux-thunk": "^2.1.0"
},
"devDependencies": {},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/object_generator.js
Expand Up @@ -63,7 +63,7 @@ params.forEach(name => {
fs.writeFileSync(reducer, reducer_gen(name));
fs.writeFileSync(actions, actions_gen(name));
fs.appendFileSync(index, `${os.EOL}export * from './src/${dir}/${name}Actions'`);
fs.appendFileSync(index, `${os.EOL}export ${name}Reducer from './src/${dir}/${name}Reducer'`);
fs.appendFileSync(index, `${os.EOL}export { default as ${name} } from './src/${dir}/${name}Reducer'`);
console.log(`Object ${name} has been created`);
}

Expand Down

0 comments on commit 948b240

Please sign in to comment.