fix(core): update

This commit is contained in:
2019-10-12 16:54:03 +02:00
parent b73807baf0
commit 5fe27ee706
6 changed files with 85 additions and 29 deletions

View File

@@ -38,8 +38,13 @@ export class TsWatch {
case 'gitzone_element':
this.watcherMap.add(
new Watcher({
filePathToWatch: plugins.path.join(paths.cwd, 'ts_web'),
commandToExecute: 'npm run build',
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 htmlHandler.copyHtml();
},
timeout: null
})
);