Compare commits

..

7 Commits

Author SHA1 Message Date
fcd2029744 1.0.13 2019-05-22 16:52:38 +02:00
d89e0a13d5 fix(core): update 2019-05-22 16:52:38 +02:00
64c7815bca 1.0.12 2019-05-22 16:45:49 +02:00
f3e69eb15e fix(core): update 2019-05-22 16:45:48 +02:00
386e4c07c6 1.0.11 2019-05-14 08:45:10 +02:00
82557c96d6 1.0.10 2019-05-13 18:54:06 +02:00
c94d89fa8a fix(core): update 2019-05-13 18:54:05 +02:00
4 changed files with 10 additions and 9 deletions

2
package-lock.json generated
View File

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

View File

@@ -1,12 +1,15 @@
{
"name": "@gitzone/tswatch",
"version": "1.0.9",
"version": "1.0.13",
"private": false,
"description": "watch typescript projects during development",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"author": "Lossless GmbH",
"license": "MIT",
"bin": {
"tswatch": "cli.js"
},
"scripts": {
"test": "(tstest test/)",
"build": "(tsbuild)",

View File

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

View File

@@ -18,6 +18,6 @@ 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();