17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
|
import * as plugins from './tswatch.plugins';
|
||
|
import * as paths from './tswatch.paths';
|
||
|
|
||
|
import { TsWatch } from './tswatch.classes.tswatch';
|
||
|
|
||
|
const tswatchCli = new plugins.smartcli.Smartcli();
|
||
|
|
||
|
tswatchCli.addCommand('test').subscribe(argvArg => {
|
||
|
const tsWatch = new TsWatch({
|
||
|
filePathToWatch: paths.cwd,
|
||
|
commandToExecute: 'npm run test2'
|
||
|
});
|
||
|
tsWatch.start();
|
||
|
});
|
||
|
|
||
|
tswatchCli.startParse();
|