fix(core): update
This commit is contained in:
parent
0a302bee95
commit
9302e78f86
@ -36,13 +36,18 @@ export class TsWatch {
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case 'gitzone_element':
|
case 'gitzone_element':
|
||||||
|
const smartserve = new plugins.smartserve.SmartServe({
|
||||||
|
injectReload: true,
|
||||||
|
serveDir: './dist_web/'
|
||||||
|
});
|
||||||
|
await smartserve.start();
|
||||||
this.watcherMap.add(
|
this.watcherMap.add(
|
||||||
new Watcher({
|
new Watcher({
|
||||||
filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'),
|
filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'),
|
||||||
commandToExecute: async () => {
|
commandToExecute: async () => {
|
||||||
const tsbundle = new plugins.tsbundle.TsBundle();
|
const tsbundle = new plugins.tsbundle.TsBundle();
|
||||||
const htmlHandler = new plugins.tsbundle.HtmlHandler();
|
const htmlHandler = new plugins.tsbundle.HtmlHandler();
|
||||||
await tsbundle.buildProduction('./ts_web', 'dist_web');
|
await tsbundle.buildProduction('./ts_web', './dist_web');
|
||||||
await htmlHandler.copyHtml();
|
await htmlHandler.copyHtml();
|
||||||
},
|
},
|
||||||
timeout: null
|
timeout: null
|
||||||
|
@ -15,7 +15,8 @@ import * as smartcli from '@pushrocks/smartcli';
|
|||||||
import * as smartdelay from '@pushrocks/smartdelay';
|
import * as smartdelay from '@pushrocks/smartdelay';
|
||||||
import * as smartlog from '@pushrocks/smartlog';
|
import * as smartlog from '@pushrocks/smartlog';
|
||||||
import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local';
|
import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local';
|
||||||
|
import * as smartserve from '@pushrocks/smartserve';
|
||||||
import * as smartshell from '@pushrocks/smartshell';
|
import * as smartshell from '@pushrocks/smartshell';
|
||||||
import * as taskbuffer from '@pushrocks/taskbuffer';
|
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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user