Compare commits

..

7 Commits

Author SHA1 Message Date
63e0d7fe9e 1.0.74 2022-03-22 23:13:23 +01:00
e2bc505c41 1.0.73 2022-03-18 20:54:12 +01:00
af82480644 fix(core): update 2022-03-18 20:54:12 +01:00
27a08f11b7 1.0.72 2022-03-18 20:32:27 +01:00
073f978626 fix(core): update 2022-03-18 20:32:26 +01:00
8d7ab769e1 1.0.71 2022-03-18 20:32:00 +01:00
8ebc438e2d fix(core): update 2022-03-18 20:31:59 +01:00
3 changed files with 10 additions and 10 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@gitzone/tswatch", "name": "@gitzone/tswatch",
"version": "1.0.70", "version": "1.0.74",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@gitzone/tswatch", "name": "@gitzone/tswatch",
"version": "1.0.70", "version": "1.0.74",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@gitzone/tsbundle": "^1.0.100", "@gitzone/tsbundle": "^1.0.100",

View File

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

View File

@@ -49,7 +49,7 @@ export class TsWatch {
port: 3002, port: 3002,
}); });
const bundleAndReload = async () => { const bundleAndReloadElement = async () => {
await tsbundle.build(paths.cwd, './html/index.ts', './dist_watch/bundle.js', { await tsbundle.build(paths.cwd, './html/index.ts', './dist_watch/bundle.js', {
bundler: 'esbuild' bundler: 'esbuild'
}); });
@@ -59,7 +59,7 @@ export class TsWatch {
new Watcher({ new Watcher({
filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'), filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'),
functionToCall: async () => { functionToCall: async () => {
await bundleAndReload(); await bundleAndReloadElement();
}, },
timeout: null, timeout: null,
}) })
@@ -78,7 +78,7 @@ export class TsWatch {
'./dist_watch/index.html' './dist_watch/index.html'
) )
); );
await bundleAndReload(); await bundleAndReloadElement();
}, },
timeout: null, timeout: null,
}) })
@@ -99,7 +99,7 @@ export class TsWatch {
timeout: null, timeout: null,
}) })
); );
const bundleAndReload2 = async () => { const bundleAndReloadWebsite = async () => {
await tsbundle.build(paths.cwd, './ts_web/index.ts', './dist_serve/bundle.js', { await tsbundle.build(paths.cwd, './ts_web/index.ts', './dist_serve/bundle.js', {
bundler: 'esbuild' bundler: 'esbuild'
}); });
@@ -108,7 +108,7 @@ export class TsWatch {
new Watcher({ new Watcher({
filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'), filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'),
functionToCall: async () => { functionToCall: async () => {
await bundleAndReload2(); await bundleAndReloadWebsite();
}, },
timeout: null, timeout: null,
}) })
@@ -124,10 +124,10 @@ export class TsWatch {
), ),
plugins.path.join( plugins.path.join(
paths.cwd, paths.cwd,
'./dist_watch/index.html' './dist_serve/index.html'
) )
); );
await bundleAndReload(); await bundleAndReloadWebsite();
}, },
timeout: null, timeout: null,
}) })