fix(core): update

This commit is contained in:
2020-03-13 17:48:19 +00:00
parent 9525f28507
commit a34d98b840
9 changed files with 132 additions and 57 deletions

View File

@ -39,7 +39,9 @@ export class TsWatch {
break;
case 'gitzone_element':
// lets create a standard server
console.log('bundling TypeScript files to "dist_watch" Note: This is for development only!');
console.log(
'bundling TypeScript files to "dist_watch" Note: This is for development only!'
);
this.smartserve = new plugins.smartserve.SmartServe({
port: 3001,
injectReload: true,
@ -67,14 +69,14 @@ export class TsWatch {
);
break;
case 'gitzone_service':
this.watcherMap.add(
new Watcher({
filePathToWatch: plugins.path.join(paths.cwd, './ts/'),
commandToExecute: 'npm run startTs',
timeout: null
})
);
break;
this.watcherMap.add(
new Watcher({
filePathToWatch: plugins.path.join(paths.cwd, './ts/'),
commandToExecute: 'npm run startTs',
timeout: null
})
);
break;
case 'echoSomething':
const tsWatchInstanceEchoSomething = new Watcher({
filePathToWatch: plugins.path.join(paths.cwd, './ts'),
@ -90,7 +92,6 @@ export class TsWatch {
await watcher.start();
});
if (this.smartserve) {
await this.smartserve.start();
}
}

View File

@ -21,7 +21,7 @@ export class Watcher {
});
/**
* used to execute
* used to execute
*/
private executionTask: plugins.taskbuffer.Task = new plugins.taskbuffer.Task({
name: 'watcherCommandFunctionTask',

View File

@ -12,12 +12,19 @@ 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, smartserve, smartshell, taskbuffer };
export {
lik,
smartchok,
smartcli,
smartdelay,
smartlog,
smartlogDestinationLocal,
smartserve,
smartshell,
taskbuffer
};
// third party scope
import parcel from 'parcel-bundler';
export {
parcel
};
export { parcel };