-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-module.js
45 lines (30 loc) · 955 Bytes
/
app-module.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
33
34
35
36
37
38
39
40
41
42
43
44
45
// Generated by CoffeeScript 1.12.4
var Core, colors, fs, homeDir, path, program;
colors = require('colors');
path = require('path');
program = require('commander');
fs = require('fs');
global.VERSION = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8')).version;
global.DEBUG = process.env.DEBUG || false;
global.PLATFORM = process.platform;
Core = require('plethora-atlas-core');
homeDir = Core.getHomeDir();
global.homeDir = homeDir;
global.modulesDir = path.join(__dirname, 'node_modules/');
global.modules = [];
global.config = {};
global.keys = {};
module.exports = new Promise(function(resolve, reject) {
return Core.initConfig({
version: global.VERSION
}).then(function(res) {
global.Helpers = Core.Helpers;
Core.loadModules(program);
Core.init({
program: program
});
return resolve({
msg: "Initializing..."
});
})["catch"](console.log);
})["catch"](console.log);