-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
32 lines (26 loc) · 1.11 KB
/
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
/* -------------------------------------------------- *\
* _ *
* | | ,--.!, *
* _ __ _ _| | ___ _ ___ __/ -*- *
* | '__| | | | |/ / | | / __| ,d08b. '|` *
* | | | |_| | <| |_| \__ \ 0088MM *
* |_| \__,_|_|\_\\__,_|___/ `9MMP' *
* by iflix.com *
* *
* -------------------------------------------------- */
// This is a rukus app.
// require in the things
var Signal = require('rukus-signal');
var UIController = require('./controllers/ui');
// instantiate those things
RukusApp.version = '1.0.0';
RukusApp.movies = require('./controllers/movies');
RukusApp.signals = new Signal(RukusApp, riot);
RukusApp.ui = new UIController();
// mount our components (make them magically available for use in html)
riot.mount('*');
// start our router
require('./routes')();
// copy our index.html to build directory (this sucks)
require("file?name=index.html!./index.html");
// enjoy.