Skip to content

Instantly share code, notes, and snippets.

@ibare
Created July 27, 2017 04:39
Show Gist options
  • Save ibare/6dd1d286f2c84bfccd1f966f40138e0d to your computer and use it in GitHub Desktop.
Save ibare/6dd1d286f2c84bfccd1f966f40138e0d to your computer and use it in GitHub Desktop.
Business module package for woowahanjs
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