-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.ts
36 lines (32 loc) · 853 Bytes
/
app.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
import express from "express";
import init from "./src/index";
import { NAMImportConfig, extensionFilter } from "./src/types";
const port = 3000;
const app = express();
let importConfig: NAMImportConfig = {
appsPath: "E:\\vscode\\nodeappmanager\\test\\testApps",
exportFileName: "export.ts",
reimportDelay: 300,
extension: {
filterType: extensionFilter.blackList,
extensions: [".json"]
}
};
/*
let importConfig: NAMImportConfig = {
appsPath: "E:\\vscode\\nodeappmanagerts\\test\\testAppsDist",
exportFileName: "export.js",
reimportDelay: 300,
extension: {
filterType: extensionFilter.blackList,
extensions: [".json"]
}
};
*/
init(app, importConfig);
app.listen(port, (err) => {
if (err) {
console.log(err);
}
console.log("Listening on port " + port);
});