-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
38 lines (31 loc) · 701 Bytes
/
Copy pathapp.js
File metadata and controls
38 lines (31 loc) · 701 Bytes
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
33
34
35
36
37
38
// globals
m = {}; // all modules
g = {}; // all global variables (ex. settings)
// Require modules
[
"express",
"compression",
"path",
"fs",
"serve-favicon",
"cookie-parser",
"body-parser",
"gulp",
"gulp-less",
"gulp-clean-css",
"./settingsConstr",
"./classLoader"
].forEach(function(x){
// store required modules in "m"
m[x.replace(/\W/g,'')] = require(x);
});
// console.log("All loaded modules", Object.keys(m));
// constructs g.settings object
m.settingsConstr();
// loads all classes
m.classLoader();
// console.log("All loaded classes", Object.keys(g.classes));
// start LessWatch
// new g.classes.LessWatch();
// start express server
new g.classes.Server();