fix(core): update

This commit is contained in:
2018-10-28 02:48:43 +02:00
commit fb382bba21
15 changed files with 1766 additions and 0 deletions

16
ts/tswatch.cli.ts Normal file
View File

@@ -0,0 +1,16 @@
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();