Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
89fae2edc9 | |||
82b09ad253 | |||
57ce71cda3 | |||
b171a14c0a | |||
63e0d7fe9e | |||
e2bc505c41 | |||
af82480644 | |||
27a08f11b7 | |||
073f978626 | |||
8d7ab769e1 | |||
8ebc438e2d | |||
d0d158ee87 | |||
3ada286495 |
1664
package-lock.json
generated
1664
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tswatch",
|
"name": "@gitzone/tswatch",
|
||||||
"version": "1.0.69",
|
"version": "1.0.76",
|
||||||
"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",
|
||||||
@@ -16,24 +16,24 @@
|
|||||||
"build": "(tsbuild --web --skiplibcheck --allowimplicitany)"
|
"build": "(tsbuild --web --skiplibcheck --allowimplicitany)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.59",
|
"@gitzone/tsbuild": "^2.1.61",
|
||||||
"@gitzone/tstest": "^1.0.69",
|
"@gitzone/tstest": "^1.0.70",
|
||||||
"@pushrocks/tapbundle": "^5.0.2",
|
"@pushrocks/tapbundle": "^5.0.3",
|
||||||
"@types/node": "^17.0.21"
|
"@types/node": "^17.0.23"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gitzone/tsbundle": "^1.0.100",
|
"@gitzone/tsbundle": "^1.0.102",
|
||||||
"@gitzone/tsrun": "^1.2.31",
|
"@gitzone/tsrun": "^1.2.32",
|
||||||
"@pushrocks/early": "^3.0.3",
|
"@pushrocks/early": "^4.0.2",
|
||||||
"@pushrocks/lik": "^5.0.4",
|
"@pushrocks/lik": "^5.0.4",
|
||||||
"@pushrocks/smartchok": "^1.0.23",
|
"@pushrocks/smartchok": "^1.0.23",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
||||||
"@pushrocks/smartserve": "^2.0.2",
|
"@pushrocks/smartserve": "^2.0.18",
|
||||||
"@pushrocks/smartshell": "^2.0.30",
|
"@pushrocks/smartshell": "^2.0.30",
|
||||||
"@pushrocks/taskbuffer": "^2.1.17"
|
"@pushrocks/taskbuffer": "^3.0.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
@@ -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,17 +99,16 @@ 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'
|
||||||
});
|
});
|
||||||
await smartserve.reload();
|
|
||||||
}
|
}
|
||||||
this.watcherMap.add(
|
this.watcherMap.add(
|
||||||
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,
|
||||||
})
|
})
|
||||||
@@ -125,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,
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user