From 9302e78f86f80939764cb1b673c56c29cbcea586 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 12 Oct 2019 17:12:50 +0200 Subject: [PATCH] fix(core): update --- ts/tswatch.classes.tswatch.ts | 7 ++++++- ts/tswatch.plugins.ts | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ts/tswatch.classes.tswatch.ts b/ts/tswatch.classes.tswatch.ts index e80de2d..e9a9b21 100644 --- a/ts/tswatch.classes.tswatch.ts +++ b/ts/tswatch.classes.tswatch.ts @@ -36,13 +36,18 @@ export class TsWatch { ); break; case 'gitzone_element': + const smartserve = new plugins.smartserve.SmartServe({ + injectReload: true, + serveDir: './dist_web/' + }); + await smartserve.start(); this.watcherMap.add( new Watcher({ filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'), commandToExecute: async () => { const tsbundle = new plugins.tsbundle.TsBundle(); const htmlHandler = new plugins.tsbundle.HtmlHandler(); - await tsbundle.buildProduction('./ts_web', 'dist_web'); + await tsbundle.buildProduction('./ts_web', './dist_web'); await htmlHandler.copyHtml(); }, timeout: null diff --git a/ts/tswatch.plugins.ts b/ts/tswatch.plugins.ts index d807e7d..43d95bd 100644 --- a/ts/tswatch.plugins.ts +++ b/ts/tswatch.plugins.ts @@ -15,7 +15,8 @@ import * as smartcli from '@pushrocks/smartcli'; import * as smartdelay from '@pushrocks/smartdelay'; import * as smartlog from '@pushrocks/smartlog'; import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local'; +import * as smartserve from '@pushrocks/smartserve'; import * as smartshell from '@pushrocks/smartshell'; import * as taskbuffer from '@pushrocks/taskbuffer'; -export { lik, smartchok, smartcli, smartdelay, smartlog, smartlogDestinationLocal, smartshell, taskbuffer }; +export { lik, smartchok, smartcli, smartdelay, smartlog, smartlogDestinationLocal, smartserve, smartshell, taskbuffer };