Created
July 27, 2017 04:39
-
-
Save ibare/6dd1d286f2c84bfccd1f966f40138e0d to your computer and use it in GitHub Desktop.
Business module package for woowahanjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as actions from './actions'; | |
import * as plugins from './plugins'; | |
import myMiddleware from './middleware/mymiddleware'; | |
import reducers from './reducers'; | |
import views from './views'; | |
export default { | |
view: views.shopFinder, | |
setup: function(app) { | |
try { | |
app.set(myMiddleware); | |
app.use(reducers); | |
app.use([ | |
Woowahan.Plugin('toggleClass', plugins.toggleClassPlugin), | |
Woowahan.Plugin('show', plugins.showPlugin) | |
]); | |
return true; | |
} catch(e) { | |
return false; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment