add action wrapper

This commit is contained in:
casperlamboo 2017-11-17 20:47:37 +01:00
parent 28cc6ba0b6
commit f3652b19bc
3 changed files with 32 additions and 22 deletions

View File

@ -69,3 +69,8 @@ render((
<App /> <App />
</Provider> </Provider>
), document.getElementById('app')); ), document.getElementById('app'));
import actionWrapper from 'redux-action-wrapper';
import * as actions from './src/actions/index.js';
window.actions = actionWrapper(actions, store.dispatch);

10
package-lock.json generated
View File

@ -6983,6 +6983,12 @@
"symbol-observable": "1.0.4" "symbol-observable": "1.0.4"
} }
}, },
"redux-action-wrapper": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/redux-action-wrapper/-/redux-action-wrapper-1.0.1.tgz",
"integrity": "sha1-ZvYnxrNQ/mu7McYve+lKXkeLnj4=",
"dev": true
},
"redux-form": { "redux-form": {
"version": "7.1.2", "version": "7.1.2",
"resolved": "https://registry.npmjs.org/redux-form/-/redux-form-7.1.2.tgz", "resolved": "https://registry.npmjs.org/redux-form/-/redux-form-7.1.2.tgz",
@ -7770,9 +7776,7 @@
"integrity": "sha1-O3+UeQrz4CHawfRKJhdWnKIDKws=" "integrity": "sha1-O3+UeQrz4CHawfRKJhdWnKIDKws="
}, },
"three-js-csg": { "three-js-csg": {
"version": "72.0.0", "version": "github:Doodle3D/three-js-csg#a36f23da6e9be2405a9094de5709cb0ae8f58045"
"resolved": "https://registry.npmjs.org/three-js-csg/-/three-js-csg-72.0.0.tgz",
"integrity": "sha1-aeauRB8/AQiebxPIfHKI4cQ4C7w="
}, },
"through2": { "through2": {
"version": "2.0.3", "version": "2.0.3",

View File

@ -42,29 +42,13 @@
"semver": "^5.4.1", "semver": "^5.4.1",
"shortid": "^2.2.8", "shortid": "^2.2.8",
"three": "^0.83.0", "three": "^0.83.0",
"three-js-csg": "^72.0.0", "three-js-csg": "github:Doodle3D/three-js-csg",
"valid-url": "^1.0.9" "valid-url": "^1.0.9"
}, },
"devDependencies": { "devDependencies": {
"redux-logger": "^3.0.6",
"raw-loader": "^0.5.1",
"react-svg-inline": "^2.0.1",
"react-router-redux": "^4.0.8",
"redux-promise-middleware": "^4.4.2",
"redux-thunk": "^2.2.0",
"redux": "^3.7.2",
"file-loader": "^1.1.5",
"webpack-dev-server": "^2.9.4",
"babel-plugin-transform-runtime": "^6.23.0",
"html-webpack-plugin": "^2.30.1",
"html-webpack-template": "^6.0.2",
"react-dom": "^16.1.1",
"webpack": "^3.8.1",
"worker-loader": "^1.1.0",
"yml-loader": "^2.1.0",
"babel-cli": "6.24.1", "babel-cli": "6.24.1",
"babel-core": "6.24.1", "babel-core": "6.24.1",
"babel-loader": "7.0.0", "babel-loader": "^7.0.0",
"babel-plugin-add-module-exports": "0.2.1", "babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-inline-import": "^2.0.6", "babel-plugin-inline-import": "^2.0.6",
"babel-plugin-ramda": "^1.4.3", "babel-plugin-ramda": "^1.4.3",
@ -73,11 +57,28 @@
"babel-plugin-transform-es2015-classes": "^6.24.1", "babel-plugin-transform-es2015-classes": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-regenerator": "^6.26.0", "babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1", "babel-preset-env": "^1.6.1",
"babel-preset-es2015": "6.24.1", "babel-preset-es2015": "6.24.1",
"babel-preset-react": "^6.24.1", "babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1", "babel-preset-stage-0": "^6.24.1",
"react-tap-event-plugin": "^3.0.2" "file-loader": "^1.1.5",
"html-webpack-plugin": "^2.30.1",
"html-webpack-template": "^6.0.2",
"raw-loader": "^0.5.1",
"react-dom": "^16.1.1",
"react-router-redux": "^4.0.8",
"react-svg-inline": "^2.0.1",
"react-tap-event-plugin": "^3.0.2",
"redux": "^3.7.2",
"redux-action-wrapper": "^1.0.1",
"redux-logger": "^3.0.6",
"redux-promise-middleware": "^4.4.2",
"redux-thunk": "^2.2.0",
"webpack": "^3.8.1",
"webpack-dev-server": "^2.9.4",
"worker-loader": "^1.1.0",
"yml-loader": "^2.1.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",