typescriptifying

This commit is contained in:
Wolfgang Hottgenroth
2018-01-08 21:54:59 +01:00
parent c1fa639ae4
commit 9e39d74084
12 changed files with 607 additions and 105 deletions

17
dist/main.js vendored
View File

@ -1,11 +1,18 @@
class Test {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const logger = require("./log");
const config = require("./config");
// import { mqttHandler } from './MqttDispatcher'
config.readConfig();
class Dispatcher {
constructor() {
console.log("Test constructed");
logger.info("Dispatcher starting");
}
exec() {
console.log("Hello world");
logger.info("Hello world");
// mqttHandler.exec()
}
}
const test = new Test();
test.exec();
const dispatcher = new Dispatcher();
dispatcher.exec();
//# sourceMappingURL=main.js.map