removed unnessecery watchers

This commit is contained in:
WolverinDEV 2020-08-05 16:48:28 +02:00
parent e59fb839c9
commit d6f7f85b8b

28
file.ts
View file

@ -580,16 +580,6 @@ async function main_serve(target: "client" | "web", mode: "rel" | "dev", port: n
} }
async function main_develop(node: boolean, target: "client" | "web", port: number, flags: string[]) { async function main_develop(node: boolean, target: "client" | "web", port: number, flags: string[]) {
const tscwatcher = new watcher.TSCWatcher();
try {
if(flags.indexOf("--no-tsc") == -1)
await tscwatcher.start();
const sasswatcher = new watcher.SASSWatcher();
try {
if(flags.indexOf("--no-sass") == -1)
await sasswatcher.start();
const webpackwatcher = new watcher.WebPackWatcher(target); const webpackwatcher = new watcher.WebPackWatcher(target);
try { try {
@ -632,24 +622,6 @@ async function main_develop(node: boolean, target: "client" | "web", port: numbe
console.warn("Failed to stop WebPack watcher: %o", error instanceof Error ? error.message : error); console.warn("Failed to stop WebPack watcher: %o", error instanceof Error ? error.message : error);
} }
} }
} catch(error) {
console.error("Failed to start SASS watcher: %o", error instanceof Error ? error.message : error);
} finally {
try {
await sasswatcher.stop();
} catch(error) {
console.warn("Failed to stop SASS watcher: %o", error instanceof Error ? error.message : error);
}
}
} catch(error) {
console.error("Failed to start TSC watcher: %o", error instanceof Error ? error.message : error);
} finally {
try {
await tscwatcher.stop();
} catch(error) {
console.warn("Failed to stop TSC watcher: %o", error instanceof Error ? error.message : error);
}
}
} }
async function git_tag() { async function git_tag() {