-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (24 loc) · 837 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var auth, graphql, mixin, redux, router, sound;
auth = require("./auth");
graphql = require("./graphql");
mixin = require("./mixin");
redux = require("./redux");
window.riot = require("riot");
router = require("./router");
sound = require("./sound");
module.exports = {
init: function(arg) {
var actionsAndReducers, apiBase, bootstrap, layoutTagName, mixins, sounds;
apiBase = arg.apiBase, actionsAndReducers = arg.actionsAndReducers, bootstrap = arg.bootstrap, layoutTagName = arg.layoutTagName, mixins = arg.mixins, sounds = arg.sounds;
auth.init(apiBase);
graphql.init(apiBase);
redux.init(actionsAndReducers || {});
if (sounds != null) {
sound.init(sounds);
}
mixin.init(mixins);
riot.mount(layoutTagName || "layout");
router.init(bootstrap);
return router.start();
}
};