Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
e4278ed270 | |||
8ae0f960ac | |||
c9a3b996cb | |||
d81d19008a | |||
e4ef6bad8f | |||
2873314742 | |||
e26fa92744 | |||
995f296319 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tswatch",
|
"name": "@gitzone/tswatch",
|
||||||
"version": "1.0.23",
|
"version": "1.0.27",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tswatch",
|
"name": "@gitzone/tswatch",
|
||||||
"version": "1.0.23",
|
"version": "1.0.27",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "watch typescript projects during development",
|
"description": "watch typescript projects during development",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@@ -37,6 +37,7 @@ export class TsWatch {
|
|||||||
break;
|
break;
|
||||||
case 'gitzone_element':
|
case 'gitzone_element':
|
||||||
const smartserve = new plugins.smartserve.SmartServe({
|
const smartserve = new plugins.smartserve.SmartServe({
|
||||||
|
port: 3001,
|
||||||
injectReload: true,
|
injectReload: true,
|
||||||
serveDir: './dist_web/'
|
serveDir: './dist_web/'
|
||||||
});
|
});
|
||||||
@@ -47,7 +48,7 @@ export class TsWatch {
|
|||||||
commandToExecute: async () => {
|
commandToExecute: async () => {
|
||||||
const tsbundle = new plugins.tsbundle.TsBundle();
|
const tsbundle = new plugins.tsbundle.TsBundle();
|
||||||
const htmlHandler = new plugins.tsbundle.HtmlHandler();
|
const htmlHandler = new plugins.tsbundle.HtmlHandler();
|
||||||
await tsbundle.buildProduction('./ts_web', './dist_web');
|
await tsbundle.buildProduction('./ts_web/index.ts', './dist_web/bundle.js');
|
||||||
await htmlHandler.copyHtml();
|
await htmlHandler.copyHtml();
|
||||||
},
|
},
|
||||||
timeout: null
|
timeout: null
|
||||||
@@ -74,7 +75,7 @@ export class TsWatch {
|
|||||||
break;
|
break;
|
||||||
case 'echoSomething':
|
case 'echoSomething':
|
||||||
const tsWatchInstanceEchoSomething = new Watcher({
|
const tsWatchInstanceEchoSomething = new Watcher({
|
||||||
filePathToWatch: paths.cwd,
|
filePathToWatch: plugins.path.join(paths.cwd, './ts'),
|
||||||
commandToExecute: 'npm -v',
|
commandToExecute: 'npm -v',
|
||||||
timeout: null
|
timeout: null
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user