"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("./config");
const start_1 = require("./start");
const config = (0, config_1.default)();
(0, start_1.start)(config).then((app) => {
    console.info(`
I'm ready, listening to port ${config.port}
${config.url}
  `);
});
const livereload_1 = require("livereload");
const path_1 = require("path");
if (config.debug) {
    const dist = (0, path_1.resolve)(__dirname, '../client');
    const server = (0, livereload_1.createServer)({
        delay: 0,
    }, () => {
        console.info(`\nDebug mode\nLive reload server is running.\nWatching ${dist}`);
    });
    server.watch(dist);
}
