-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
executable file
·47 lines (35 loc) · 1.04 KB
/
main.ts
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
/// <reference path="./typings/index.d.ts" />
"use strict";
/*
* Created on Tue Jul 30 2019
* Author: Val Liu
* Copyright (c) 2019, iSAP Solution
*/
import 'parse-server';
import './core/alias';
import './core/console-stamp';
import './core/create-file-index';
import { Log } from 'helpers/utility';
const LogTitle = "Startup";
/// todo remove: log loading time
let trace = Log.TraceTime(LogTitle, "Compiler");
import './core/compiler';
import './helpers/shells/config-manager';
trace.end();
trace = Log.TraceTime(LogTitle, "AST Service");
import './services/ast-services/ast-client';
trace.end();
trace = Log.TraceTime(LogTitle, "Create Index");
import './core/create-index';
trace.end();
trace = Log.TraceTime(LogTitle, "Scheduler Loader");
import './core/scheduler-loader';
trace.end();
trace = Log.TraceTime(LogTitle, "Load Main Application");
import './core/main.gen';
trace.end();
trace = Log.TraceTime(LogTitle, "Load Workspace");
import './workspace/main';
trace.end();
// to fix the warning
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "1";