Compare commits

..

4 Commits

Author SHA1 Message Date
4d23145529 1.0.32 2020-03-09 14:52:38 +00:00
27e0d7588d fix(core): update 2020-03-09 14:52:37 +00:00
88d4bf6be0 1.0.31 2020-03-05 09:26:41 +00:00
d4f8215f35 fix(core): update 2020-03-05 09:26:41 +00:00
3 changed files with 1198 additions and 1000 deletions

2170
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@gitzone/tswatch",
"version": "1.0.30",
"version": "1.0.32",
"private": false,
"description": "watch typescript projects during development",
"main": "dist/index.js",
@@ -17,24 +17,24 @@
"devDependencies": {
"@gitzone/tsbuild": "^2.1.17",
"@gitzone/tstest": "^1.0.28",
"@pushrocks/tapbundle": "^3.0.13",
"@types/node": "^12.7.12",
"tslint": "^5.20.0",
"@pushrocks/tapbundle": "^3.2.0",
"@types/node": "^13.9.0",
"tslint": "^6.0.0",
"tslint-config-prettier": "^1.18.0"
},
"dependencies": {
"@gitzone/tsbundle": "^1.0.47",
"@gitzone/tsbundle": "^1.0.51",
"@gitzone/tsrun": "^1.2.8",
"@pushrocks/early": "^3.0.3",
"@pushrocks/lik": "^3.0.11",
"@pushrocks/lik": "^3.0.19",
"@pushrocks/smartchok": "^1.0.23",
"@pushrocks/smartcli": "^3.0.7",
"@pushrocks/smartdelay": "^2.0.3",
"@pushrocks/smartlog": "^2.0.19",
"@pushrocks/smartdelay": "^2.0.6",
"@pushrocks/smartlog": "^2.0.21",
"@pushrocks/smartlog-destination-local": "^8.0.2",
"@pushrocks/smartserve": "^1.1.37",
"@pushrocks/smartserve": "^1.1.39",
"@pushrocks/smartshell": "^2.0.25",
"@pushrocks/taskbuffer": "^2.0.15"
"@pushrocks/taskbuffer": "^2.1.1"
},
"files": [
"ts/**/*",

View File

@@ -38,10 +38,11 @@ export class TsWatch {
break;
case 'gitzone_element':
// lets create a standard server
console.log('bundling TypeScript files to "dist_watch" Note: This is for development only!');
this.smartserve = new plugins.smartserve.SmartServe({
port: 3001,
injectReload: true,
serveDir: plugins.path.join(paths.cwd, './dist_web/')
serveDir: plugins.path.join(paths.cwd, './dist_watch/')
});
this.watcherMap.add(
new Watcher({
@@ -49,8 +50,8 @@ export class TsWatch {
commandToExecute: async () => {
const tsbundle = new plugins.tsbundle.TsBundle();
const htmlHandler = new plugins.tsbundle.HtmlHandler();
await tsbundle.buildProduction('./ts_web/index.ts', './dist_web/bundle.js');
await htmlHandler.copyHtml();
await tsbundle.buildTest('./ts_web/index.ts', './dist_watch/bundle.js');
await htmlHandler.copyHtml(plugins.path.join(process.cwd(), './dist_watch/index.html'));
},
timeout: null
})
@@ -98,6 +99,7 @@ export class TsWatch {
await watcher.start();
});
if (this.smartserve) {
await this.smartserve.start();
}
}