-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
54 lines (37 loc) · 965 Bytes
/
app.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
46
47
48
49
50
51
52
53
54
#!/usr/bin/env node
const XT = require('@cogsmith/xt').Init();
const App = XT.App; const LOG = XT.LOG;
//XT.Log.SetLevel('warn');
//
const Zest = require('./lib');
//
const NODE = {};
NODE.fs = require('fs');
NODE.http = require('http');
const LIB = {};
LIB.mocha = require('mocha'); const mocha = LIB.mocha;
LIB.chalk = require('chalk'); const chalk = LIB.chalk;
//
App.InitLog = function () {
//XT.Log.SetLevel('warn');
}
App.InitArgs = function () {
// App.Argy = yargs(process.argv);
}
App.InitInfo = function () {
// App.SetInfo('App', function () { return 'ZEST' });
}
App.InitData = function () {
}
App.Init = function () {
}
App.InitDone = function () {
}
App.Main = async function () {
//LOG.WARN('App.Args', App.Args);
//LOG.WARN('', { PCWD: process.cwd(), DIRNAME: __dirname });
//LOG.WARN(XT.Meta.Full);
//LOG.WARN(App.Meta.Full);
setTimeout(async () => { await Zest.AppMain(App); }, 2500);
}
App.Run();