fix(core): update
This commit is contained in:
parent
79940cec3f
commit
bd4ccbd215
@ -74,6 +74,15 @@ export class TsWatch {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case 'gitzone_service':
|
||||||
|
this.watcherMap.add(
|
||||||
|
new Watcher({
|
||||||
|
filePathToWatch: plugins.path.join(paths.cwd, './ts/'),
|
||||||
|
commandToExecute: 'npm run startTs',
|
||||||
|
timeout: null
|
||||||
|
})
|
||||||
|
);
|
||||||
|
break;
|
||||||
case 'echoSomething':
|
case 'echoSomething':
|
||||||
const tsWatchInstanceEchoSomething = new Watcher({
|
const tsWatchInstanceEchoSomething = new Watcher({
|
||||||
filePathToWatch: plugins.path.join(paths.cwd, './ts'),
|
filePathToWatch: plugins.path.join(paths.cwd, './ts'),
|
||||||
|
@ -8,18 +8,6 @@ const tswatchCli = new plugins.smartcli.Smartcli();
|
|||||||
|
|
||||||
// standard behaviour will assume gitzone setup
|
// standard behaviour will assume gitzone setup
|
||||||
|
|
||||||
tswatchCli.addCommand('test').subscribe(async argvArg => {
|
|
||||||
logger.log('info', `running test task`);
|
|
||||||
const tsWatch = new TsWatch('test');
|
|
||||||
await tsWatch.start();
|
|
||||||
});
|
|
||||||
|
|
||||||
tswatchCli.addCommand('website').subscribe(async argvArg => {
|
|
||||||
logger.log('info', `running watch task for a gitzone website project`);
|
|
||||||
const tsWatch = new TsWatch('gitzone_website');
|
|
||||||
await tsWatch.start();
|
|
||||||
});
|
|
||||||
|
|
||||||
tswatchCli.addCommand('element').subscribe(async argvArg => {
|
tswatchCli.addCommand('element').subscribe(async argvArg => {
|
||||||
logger.log('info', `running watch task for a gitzone element project`);
|
logger.log('info', `running watch task for a gitzone element project`);
|
||||||
const tsWatch = new TsWatch('gitzone_element');
|
const tsWatch = new TsWatch('gitzone_element');
|
||||||
@ -32,4 +20,22 @@ tswatchCli.addCommand('npm').subscribe(async argvArg => {
|
|||||||
await tsWatch.start();
|
await tsWatch.start();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tswatchCli.addCommand('service').subscribe(async argvArg => {
|
||||||
|
logger.log('info', `running test task`);
|
||||||
|
const tsWatch = new TsWatch('gitzone_service');
|
||||||
|
await tsWatch.start();
|
||||||
|
});
|
||||||
|
|
||||||
|
tswatchCli.addCommand('test').subscribe(async argvArg => {
|
||||||
|
logger.log('info', `running test task`);
|
||||||
|
const tsWatch = new TsWatch('test');
|
||||||
|
await tsWatch.start();
|
||||||
|
});
|
||||||
|
|
||||||
|
tswatchCli.addCommand('website').subscribe(async argvArg => {
|
||||||
|
logger.log('info', `running watch task for a gitzone website project`);
|
||||||
|
const tsWatch = new TsWatch('gitzone_website');
|
||||||
|
await tsWatch.start();
|
||||||
|
});
|
||||||
|
|
||||||
tswatchCli.startParse();
|
tswatchCli.startParse();
|
||||||
|
Loading…
Reference in New Issue
Block a user