fix(core): update
This commit is contained in:
		@@ -1,7 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "compilerOptions": {
 | 
			
		||||
    "esModuleInterop": true,
 | 
			
		||||
    "lib": ["es2015"],
 | 
			
		||||
    "target": "ES2017"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
[Trash Info]
 | 
			
		||||
Path=/home/coder/project/tsconfig.json
 | 
			
		||||
DeletionDate=2019-05-08T21:54:46.502Z
 | 
			
		||||
@@ -34,12 +34,21 @@ export class TsWatch {
 | 
			
		||||
        this.watcherMap.add(tsWatchInstanceGitzoneNpm);
 | 
			
		||||
        break;
 | 
			
		||||
      case 'gitzone_website':
 | 
			
		||||
        const tsWatchInstanceGitzoneWebsite = new Watcher({
 | 
			
		||||
          filePathToWatch: paths.cwd,
 | 
			
		||||
          commandToExecute: 'npm run test',
 | 
			
		||||
        // server directory
 | 
			
		||||
        this.watcherMap.add(
 | 
			
		||||
          new Watcher({
 | 
			
		||||
            filePathToWatch: plugins.path.join(paths.cwd, './ts/'),
 | 
			
		||||
            commandToExecute: 'npm run start',
 | 
			
		||||
            timeout: null
 | 
			
		||||
        });
 | 
			
		||||
        this.watcherMap.add(tsWatchInstanceGitzoneWebsite);
 | 
			
		||||
          })
 | 
			
		||||
        );
 | 
			
		||||
        
 | 
			
		||||
        // client directory
 | 
			
		||||
        this.watcherMap.add(new Watcher({
 | 
			
		||||
          filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'),
 | 
			
		||||
          commandToExecute: 'npm run build',
 | 
			
		||||
          timeout: null
 | 
			
		||||
        }));
 | 
			
		||||
        break;
 | 
			
		||||
      case 'echoSomething':
 | 
			
		||||
        const tsWatchInstanceEchoSomething = new Watcher({
 | 
			
		||||
@@ -63,6 +72,6 @@ export class TsWatch {
 | 
			
		||||
  public async stop() {
 | 
			
		||||
    this.watcherMap.forEach(async watcher => {
 | 
			
		||||
      await watcher.stop();
 | 
			
		||||
    })
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -14,4 +14,10 @@ tswatchCli.addCommand('test').subscribe(async argvArg => {
 | 
			
		||||
  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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user