[state]: watchers return a state

This commit is contained in:
2020-04-30 15:19:58 +02:00
parent 6d43cbc725
commit f0a98ba685
11 changed files with 57 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
import * as minimist from 'minimist'
import * as path from 'path'
import {dwatch} from './lib/dwatch'
import {Watcher} from "./lib/types/state";
process.on('uncaughtException', (err) => {
// Dunno why this specific exception is not caught
@@ -20,9 +21,9 @@ process.on('unhandledRejection', (err) => {
console.log('Starting...')
try {
await dwatch(argv.conf || path.join(__dirname, '../app.yml'))
const watchers: Watcher[] = await dwatch(argv.conf || path.join(__dirname, '../app.yml'))
} catch (e) {
// webappServe(watchers)
console.error(e)
}
})()