Compare commits

...

2 Commits

Author SHA1 Message Date
82557c96d6 1.0.10 2019-05-13 18:54:06 +02:00
c94d89fa8a fix(core): update 2019-05-13 18:54:05 +02:00
3 changed files with 6 additions and 8 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "@gitzone/tswatch", "name": "@gitzone/tswatch",
"version": "1.0.9", "version": "1.0.10",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@gitzone/tswatch", "name": "@gitzone/tswatch",
"version": "1.0.9", "version": "1.0.10",
"private": false, "private": false,
"description": "watch typescript projects during development", "description": "watch typescript projects during development",
"main": "dist/index.js", "main": "dist/index.js",

View File

@@ -18,20 +18,18 @@ export class TsWatch {
public async start() { public async start() {
switch (this.watchmode) { switch (this.watchmode) {
case 'test': case 'test':
const tsWatchInstanceTest = new Watcher({ this.watcherMap.add(new Watcher({
filePathToWatch: paths.cwd, filePathToWatch: paths.cwd,
commandToExecute: 'npm run test2', commandToExecute: 'npm run test2',
timeout: null timeout: null
}); }));
this.watcherMap.add(tsWatchInstanceTest);
break; break;
case 'gitzone_npm': case 'gitzone_npm':
const tsWatchInstanceGitzoneNpm = new Watcher({ this.watcherMap.add(new Watcher({
filePathToWatch: paths.cwd, filePathToWatch: paths.cwd,
commandToExecute: 'npm run test', commandToExecute: 'npm run test',
timeout: null timeout: null
}); }));
this.watcherMap.add(tsWatchInstanceGitzoneNpm);
break; break;
case 'gitzone_website': case 'gitzone_website':
// server directory // server directory