fix(core): update
This commit is contained in:
parent
f48ba50236
commit
d876b09337
2
dist_ts/index.d.ts
vendored
Normal file
2
dist_ts/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from './tswatch.classes.tswatch';
|
||||
import './tswatch.cli';
|
18
dist_ts/index.js
Normal file
18
dist_ts/index.js
Normal file
@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const early = __importStar(require("@pushrocks/early"));
|
||||
early.start('tswatch');
|
||||
__export(require("./tswatch.classes.tswatch"));
|
||||
require("./tswatch.cli");
|
||||
early.stop();
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSx3REFBMEM7QUFDMUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUN2QiwrQ0FBMEM7QUFDMUMseUJBQXVCO0FBQ3ZCLEtBQUssQ0FBQyxJQUFJLEVBQUUsQ0FBQyJ9
|
1
dist_ts/interfaces/index.d.ts
vendored
Normal file
1
dist_ts/interfaces/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from './interfaces.watchmodes';
|
3
dist_ts/interfaces/index.js
Normal file
3
dist_ts/interfaces/index.js
Normal file
@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9pbnRlcmZhY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
1
dist_ts/interfaces/interfaces.watchmodes.d.ts
vendored
Normal file
1
dist_ts/interfaces/interfaces.watchmodes.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare type TWatchModes = 'test' | 'gitzone_npm' | 'gitzone_service' | 'gitzone_element' | 'gitzone_website' | 'echoSomething';
|
3
dist_ts/interfaces/interfaces.watchmodes.js
Normal file
3
dist_ts/interfaces/interfaces.watchmodes.js
Normal file
@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy53YXRjaG1vZGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvaW50ZXJmYWNlcy9pbnRlcmZhY2VzLndhdGNobW9kZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
3
dist_ts/tswatch.classes.parcel.d.ts
vendored
Normal file
3
dist_ts/tswatch.classes.parcel.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export declare class Parcel {
|
||||
start(): Promise<void>;
|
||||
}
|
44
dist_ts/tswatch.classes.parcel.js
Normal file
44
dist_ts/tswatch.classes.parcel.js
Normal file
@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const plugins = __importStar(require("./tswatch.plugins"));
|
||||
const paths = __importStar(require("./tswatch.paths"));
|
||||
class Parcel {
|
||||
async start() {
|
||||
const entryFiles = plugins.path.join(paths.cwd, './html/index.html');
|
||||
// Bundler options
|
||||
const options = {
|
||||
outDir: './dist_watch',
|
||||
outFile: 'index.html',
|
||||
publicUrl: '/',
|
||||
watch: true,
|
||||
cache: true,
|
||||
cacheDir: '.nogit/.parcelcache',
|
||||
contentHash: false,
|
||||
global: 'moduleName',
|
||||
minify: false,
|
||||
scopeHoist: false,
|
||||
target: 'browser',
|
||||
bundleNodeModules: true,
|
||||
https: null,
|
||||
logLevel: 3,
|
||||
hmr: true,
|
||||
hmrPort: 3003,
|
||||
sourceMaps: true,
|
||||
hmrHostname: '',
|
||||
detailedReport: false // Prints a detailed report of the bundles, assets, filesizes and times, defaults to false, reports are only printed if watch is disabled
|
||||
};
|
||||
const bundler = new plugins.parcel(entryFiles, options);
|
||||
// Run the bundler, this returns the main bundle
|
||||
// Use the events if you're using watch mode as this promise will only trigger once and not for every rebuild
|
||||
const bundle = await bundler.serve(3002);
|
||||
}
|
||||
}
|
||||
exports.Parcel = Parcel;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5jbGFzc2VzLnBhcmNlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3Rzd2F0Y2guY2xhc3Nlcy5wYXJjZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsMkRBQTZDO0FBQzdDLHVEQUF5QztBQUV6QyxNQUFhLE1BQU07SUFDVixLQUFLLENBQUMsS0FBSztRQUNoQixNQUFNLFVBQVUsR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLG1CQUFtQixDQUFDLENBQUM7UUFFckUsa0JBQWtCO1FBQ2xCLE1BQU0sT0FBTyxHQUFpQztZQUM1QyxNQUFNLEVBQUUsY0FBYztZQUN0QixPQUFPLEVBQUUsWUFBWTtZQUNyQixTQUFTLEVBQUUsR0FBRztZQUNkLEtBQUssRUFBRSxJQUFJO1lBQ1gsS0FBSyxFQUFFLElBQUk7WUFDWCxRQUFRLEVBQUUscUJBQXFCO1lBQy9CLFdBQVcsRUFBRSxLQUFLO1lBQ2xCLE1BQU0sRUFBRSxZQUFZO1lBQ3BCLE1BQU0sRUFBRSxLQUFLO1lBQ2IsVUFBVSxFQUFFLEtBQUs7WUFDakIsTUFBTSxFQUFFLFNBQVM7WUFDakIsaUJBQWlCLEVBQUUsSUFBSTtZQUN2QixLQUFLLEVBQUUsSUFBSTtZQUNYLFFBQVEsRUFBRSxDQUFDO1lBQ1gsR0FBRyxFQUFFLElBQUk7WUFDVCxPQUFPLEVBQUUsSUFBSTtZQUNiLFVBQVUsRUFBRSxJQUFJO1lBQ2hCLFdBQVcsRUFBRSxFQUFFO1lBQ2YsY0FBYyxFQUFFLEtBQUssQ0FBQyx5SUFBeUk7U0FDaEssQ0FBQztRQUVGLE1BQU0sT0FBTyxHQUFHLElBQUksT0FBTyxDQUFDLE1BQU0sQ0FBQyxVQUFVLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFFeEQsZ0RBQWdEO1FBQ2hELDZHQUE2RztRQUM3RyxNQUFNLE1BQU0sR0FBRyxNQUFNLE9BQU8sQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDM0MsQ0FBQztDQUNGO0FBakNELHdCQWlDQyJ9
|
17
dist_ts/tswatch.classes.tswatch.d.ts
vendored
Normal file
17
dist_ts/tswatch.classes.tswatch.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
import * as plugins from './tswatch.plugins';
|
||||
import * as interfaces from './interfaces';
|
||||
import { Watcher } from './tswatch.classes.watcher';
|
||||
export declare class TsWatch {
|
||||
watchmode: interfaces.TWatchModes;
|
||||
watcherMap: plugins.lik.ObjectMap<Watcher>;
|
||||
smartserve: plugins.smartserve.SmartServe;
|
||||
constructor(watchmodeArg: interfaces.TWatchModes);
|
||||
/**
|
||||
* starts the TsWatch instance
|
||||
*/
|
||||
start(): Promise<void>;
|
||||
/**
|
||||
* stops the execution of any active Watchers
|
||||
*/
|
||||
stop(): Promise<void>;
|
||||
}
|
95
dist_ts/tswatch.classes.tswatch.js
Normal file
95
dist_ts/tswatch.classes.tswatch.js
Normal file
@ -0,0 +1,95 @@
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const plugins = __importStar(require("./tswatch.plugins"));
|
||||
const paths = __importStar(require("./tswatch.paths"));
|
||||
const tswatch_classes_watcher_1 = require("./tswatch.classes.watcher");
|
||||
const tswatch_classes_parcel_1 = require("./tswatch.classes.parcel");
|
||||
class TsWatch {
|
||||
constructor(watchmodeArg) {
|
||||
this.watcherMap = new plugins.lik.ObjectMap();
|
||||
this.watchmode = watchmodeArg;
|
||||
}
|
||||
/**
|
||||
* starts the TsWatch instance
|
||||
*/
|
||||
async start() {
|
||||
switch (this.watchmode) {
|
||||
case 'test':
|
||||
this.watcherMap.add(new tswatch_classes_watcher_1.Watcher({
|
||||
filePathToWatch: paths.cwd,
|
||||
commandToExecute: 'npm run test2',
|
||||
timeout: null
|
||||
}));
|
||||
break;
|
||||
case 'gitzone_npm':
|
||||
this.watcherMap.add(new tswatch_classes_watcher_1.Watcher({
|
||||
filePathToWatch: paths.cwd,
|
||||
commandToExecute: 'npm run test',
|
||||
timeout: null
|
||||
}));
|
||||
break;
|
||||
case 'gitzone_element':
|
||||
// lets create a standard server
|
||||
console.log('bundling TypeScript files to "dist_watch" Note: This is for development only!');
|
||||
const parcel = new tswatch_classes_parcel_1.Parcel();
|
||||
await parcel.start();
|
||||
break;
|
||||
case 'gitzone_website':
|
||||
this.watcherMap.add(new tswatch_classes_watcher_1.Watcher({
|
||||
filePathToWatch: plugins.path.join(paths.cwd, './ts/'),
|
||||
commandToExecute: 'npm run startTs',
|
||||
timeout: null
|
||||
}));
|
||||
// client directory
|
||||
this.watcherMap.add(new tswatch_classes_watcher_1.Watcher({
|
||||
filePathToWatch: plugins.path.join(paths.cwd, './ts_web/'),
|
||||
commandToExecute: 'npm run build',
|
||||
timeout: null
|
||||
}));
|
||||
break;
|
||||
case 'gitzone_service':
|
||||
this.watcherMap.add(new tswatch_classes_watcher_1.Watcher({
|
||||
filePathToWatch: plugins.path.join(paths.cwd, './ts/'),
|
||||
commandToExecute: 'npm run startTs',
|
||||
timeout: null
|
||||
}));
|
||||
break;
|
||||
case 'echoSomething':
|
||||
const tsWatchInstanceEchoSomething = new tswatch_classes_watcher_1.Watcher({
|
||||
filePathToWatch: plugins.path.join(paths.cwd, './ts'),
|
||||
commandToExecute: 'npm -v',
|
||||
timeout: null
|
||||
});
|
||||
this.watcherMap.add(tsWatchInstanceEchoSomething);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
this.watcherMap.forEach(async (watcher) => {
|
||||
await watcher.start();
|
||||
});
|
||||
if (this.smartserve) {
|
||||
await this.smartserve.start();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* stops the execution of any active Watchers
|
||||
*/
|
||||
async stop() {
|
||||
if (this.smartserve) {
|
||||
await this.smartserve.stop();
|
||||
}
|
||||
this.watcherMap.forEach(async (watcher) => {
|
||||
await watcher.stop();
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.TsWatch = TsWatch;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5jbGFzc2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file
@ -0,0 +1,35 @@
|
||||
export declare type TCommandFunction = () => Promise<void>;
|
||||
export interface IWatcherConstructorOptions {
|
||||
filePathToWatch: string;
|
||||
commandToExecute: string | TCommandFunction;
|
||||
timeout?: number;
|
||||
}
|
||||
/**
|
||||
* A watcher keeps track of one child execution
|
||||
*/
|
||||
export declare class Watcher {
|
||||
/**
|
||||
* used to execute shell commands
|
||||
*/
|
||||
private smartshellInstance;
|
||||
private currentExecution;
|
||||
private smartchokWatcher;
|
||||
private options;
|
||||
constructor(optionsArg: IWatcherConstructorOptions);
|
||||
/**
|
||||
* start the file
|
||||
*/
|
||||
start(): Promise<void>;
|
||||
/**
|
||||
* updates the current execution
|
||||
*/
|
||||
private updateCurrentExecution;
|
||||
/**
|
||||
* this method sets up a clean exit strategy
|
||||
*/
|
||||
private setupCleanup;
|
||||
/**
|
||||
* stops the watcher
|
||||
*/
|
||||
stop(): Promise<void>;
|
||||
}
|
99
dist_ts/tswatch.classes.watcher.js
Normal file
99
dist_ts/tswatch.classes.watcher.js
Normal file
@ -0,0 +1,99 @@
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const plugins = __importStar(require("./tswatch.plugins"));
|
||||
const tswatch_logging_1 = require("./tswatch.logging");
|
||||
/**
|
||||
* A watcher keeps track of one child execution
|
||||
*/
|
||||
class Watcher {
|
||||
constructor(optionsArg) {
|
||||
/**
|
||||
* used to execute shell commands
|
||||
*/
|
||||
this.smartshellInstance = new plugins.smartshell.Smartshell({
|
||||
executor: 'bash'
|
||||
});
|
||||
this.smartchokWatcher = new plugins.smartchok.Smartchok([], {});
|
||||
this.options = optionsArg;
|
||||
}
|
||||
/**
|
||||
* start the file
|
||||
*/
|
||||
async start() {
|
||||
await this.setupCleanup();
|
||||
console.log(`Looking at ${this.options.filePathToWatch} for changes`);
|
||||
this.smartchokWatcher.add([this.options.filePathToWatch]); // __dirname refers to the directory of this very file
|
||||
await this.smartchokWatcher.start();
|
||||
const changeObservable = await this.smartchokWatcher.getObservableFor('change');
|
||||
changeObservable.subscribe(() => {
|
||||
this.updateCurrentExecution();
|
||||
});
|
||||
await this.updateCurrentExecution();
|
||||
}
|
||||
/**
|
||||
* updates the current execution
|
||||
*/
|
||||
async updateCurrentExecution() {
|
||||
if (typeof this.options.commandToExecute === 'string') {
|
||||
if (this.currentExecution) {
|
||||
tswatch_logging_1.logger.log('ok', `reexecuting ${this.options.commandToExecute}`);
|
||||
this.currentExecution.kill();
|
||||
}
|
||||
else {
|
||||
tswatch_logging_1.logger.log('ok', `executing ${this.options.commandToExecute} for the first time`);
|
||||
}
|
||||
this.currentExecution = await this.smartshellInstance.execStreaming(this.options.commandToExecute);
|
||||
}
|
||||
else {
|
||||
console.log('cannot run execution task');
|
||||
}
|
||||
}
|
||||
/**
|
||||
* this method sets up a clean exit strategy
|
||||
*/
|
||||
async setupCleanup() {
|
||||
const cleanup = () => {
|
||||
if (this.currentExecution) {
|
||||
process.kill(-this.currentExecution.childProcess.pid);
|
||||
}
|
||||
};
|
||||
process.on('exit', () => {
|
||||
console.log('');
|
||||
console.log('now exiting!');
|
||||
cleanup();
|
||||
process.exit(0);
|
||||
});
|
||||
process.on('SIGINT', () => {
|
||||
console.log('');
|
||||
console.log('ok! got SIGINT We are exiting! Just cleaning up to exit neatly :)');
|
||||
cleanup();
|
||||
process.exit(0);
|
||||
});
|
||||
// handle timeout
|
||||
if (this.options.timeout) {
|
||||
plugins.smartdelay.delayFor(this.options.timeout).then(() => {
|
||||
console.log(`timed out afer ${this.options.timeout} milliseconds! exiting!`);
|
||||
cleanup();
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
}
|
||||
/**
|
||||
* stops the watcher
|
||||
*/
|
||||
async stop() {
|
||||
await this.smartchokWatcher.stop();
|
||||
if (this.currentExecution && !this.currentExecution.childProcess.killed) {
|
||||
process.kill(-this.currentExecution.childProcess.pid);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.Watcher = Watcher;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5jbGFzc2VzLndhdGNoZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy90c3dhdGNoLmNsYXNzZXMud2F0Y2hlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSwyREFBNkM7QUFDN0MsdURBQTJDO0FBVTNDOztHQUVHO0FBQ0gsTUFBYSxPQUFPO0lBWWxCLFlBQVksVUFBc0M7UUFYbEQ7O1dBRUc7UUFDSyx1QkFBa0IsR0FBRyxJQUFJLE9BQU8sQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDO1lBQzdELFFBQVEsRUFBRSxNQUFNO1NBQ2pCLENBQUMsQ0FBQztRQUdLLHFCQUFnQixHQUFHLElBQUksT0FBTyxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBSWpFLElBQUksQ0FBQyxPQUFPLEdBQUcsVUFBVSxDQUFDO0lBQzVCLENBQUM7SUFFRDs7T0FFRztJQUNJLEtBQUssQ0FBQyxLQUFLO1FBQ2hCLE1BQU0sSUFBSSxDQUFDLFlBQVksRUFBRSxDQUFDO1FBQzFCLE9BQU8sQ0FBQyxHQUFHLENBQUMsY0FBYyxJQUFJLENBQUMsT0FBTyxDQUFDLGVBQWUsY0FBYyxDQUFDLENBQUM7UUFDdEUsSUFBSSxDQUFDLGdCQUFnQixDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQyxDQUFDLHN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0FBQyxHQUFHLENBQUMsa0JBQWtCLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyx5QkFBeUIsQ0FBQyxDQUFDO2dCQUM3RSxPQUFPLEVBQUUsQ0FBQztnQkFDVixPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ2xCLENBQUMsQ0FBQyxDQUFDO1NBQ0o7SUFDSCxDQUFDO0lBRUQ7O09BRUc7SUFDSSxLQUFLLENBQUMsSUFBSTtRQUNmLE1BQU0sSUFBSSxDQUFDLGdCQUFnQixDQUFDLElBQUksRUFBRSxDQUFDO1FBQ25DLElBQUksSUFBSSxDQUFDLGdCQUFnQixJQUFJLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLFlBQVksQ0FBQyxNQUFNLEVBQUU7WUFDdkUsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxZQUFZLENBQUMsR0FBRyxDQUFDLENBQUM7U0FDdkQ7SUFDSCxDQUFDO0NBQ0Y7QUEzRkQsMEJBMkZDIn0=
|
1
dist_ts/tswatch.cli.d.ts
vendored
Normal file
1
dist_ts/tswatch.cli.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export {};
|
41
dist_ts/tswatch.cli.js
Normal file
41
dist_ts/tswatch.cli.js
Normal file
@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const plugins = __importStar(require("./tswatch.plugins"));
|
||||
const tswatch_logging_1 = require("./tswatch.logging");
|
||||
const tswatch_classes_tswatch_1 = require("./tswatch.classes.tswatch");
|
||||
const tswatchCli = new plugins.smartcli.Smartcli();
|
||||
// standard behaviour will assume gitzone setup
|
||||
tswatchCli.addCommand('element').subscribe(async (argvArg) => {
|
||||
tswatch_logging_1.logger.log('info', `running watch task for a gitzone element project`);
|
||||
const tsWatch = new tswatch_classes_tswatch_1.TsWatch('gitzone_element');
|
||||
await tsWatch.start();
|
||||
});
|
||||
tswatchCli.addCommand('npm').subscribe(async (argvArg) => {
|
||||
tswatch_logging_1.logger.log('info', `running watch task for a gitzone element project`);
|
||||
const tsWatch = new tswatch_classes_tswatch_1.TsWatch('gitzone_npm');
|
||||
await tsWatch.start();
|
||||
});
|
||||
tswatchCli.addCommand('service').subscribe(async (argvArg) => {
|
||||
tswatch_logging_1.logger.log('info', `running test task`);
|
||||
const tsWatch = new tswatch_classes_tswatch_1.TsWatch('gitzone_service');
|
||||
await tsWatch.start();
|
||||
});
|
||||
tswatchCli.addCommand('test').subscribe(async (argvArg) => {
|
||||
tswatch_logging_1.logger.log('info', `running test task`);
|
||||
const tsWatch = new tswatch_classes_tswatch_1.TsWatch('test');
|
||||
await tsWatch.start();
|
||||
});
|
||||
tswatchCli.addCommand('website').subscribe(async (argvArg) => {
|
||||
tswatch_logging_1.logger.log('info', `running watch task for a gitzone website project`);
|
||||
const tsWatch = new tswatch_classes_tswatch_1.TsWatch('gitzone_website');
|
||||
await tsWatch.start();
|
||||
});
|
||||
tswatchCli.startParse();
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5jbGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy90c3dhdGNoLmNsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSwyREFBNkM7QUFFN0MsdURBQTJDO0FBRTNDLHVFQUFvRDtBQUVwRCxNQUFNLFVBQVUsR0FBRyxJQUFJLE9BQU8sQ0FBQyxRQUFRLENBQUMsUUFBUSxFQUFFLENBQUM7QUFFbkQsK0NB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sT0FBTyxFQUFDLEVBQUU7SUFDdEQsd0JBQU0sQ0FBQyxHQUFHLENBQUMsTUFBTSxFQUFFLG1CQUFtQixDQUFDLENBQUM7SUFDeEMsTUFBTSxPQUFPLEdBQUcsSUFBSSxpQ0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3BDLE1BQU0sT0FBTyxDQUFDLEtBQUssRUFBRSxDQUFDO0FBQ3hCLENBQUMsQ0FBQyxDQUFDO0FBRUgsVUFBVSxDQUFDLFVBQVUsQ0FBQyxTQUFTLENBQUMsQ0FBQyxTQUFTLENBQUMsS0FBSyxFQUFDLE9BQU8sRUFBQyxFQUFFO0lBQ3pELHdCQUFNLENBQUMsR0FBRyxDQUFDLE1BQU0sRUFBRSxrREFBa0QsQ0FBQyxDQUFDO0lBQ3ZFLE1BQU0sT0FBTyxHQUFHLElBQUksaUNBQU8sQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0lBQy9DLE1BQU0sT0FBTyxDQUFDLEtBQUssRUFBRSxDQUFDO0FBQ3hCLENBQUMsQ0FBQyxDQUFDO0FBRUgsVUFBVSxDQUFDLFVBQVUsRUFBRSxDQUFDIn0=
|
2
dist_ts/tswatch.logging.d.ts
vendored
Normal file
2
dist_ts/tswatch.logging.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import * as plugins from './tswatch.plugins';
|
||||
export declare const logger: plugins.smartlog.Smartlog;
|
23
dist_ts/tswatch.logging.js
Normal file
23
dist_ts/tswatch.logging.js
Normal file
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const plugins = __importStar(require("./tswatch.plugins"));
|
||||
exports.logger = new plugins.smartlog.Smartlog({
|
||||
logContext: {
|
||||
company: 'Some Company',
|
||||
companyunit: 'Some CompanyUnit',
|
||||
containerName: 'Some Containername',
|
||||
environment: 'local',
|
||||
runtime: 'node',
|
||||
zone: 'gitzone'
|
||||
},
|
||||
minimumLogLevel: 'silly'
|
||||
});
|
||||
exports.logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5sb2dnaW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvdHN3YXRjaC5sb2dnaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLDJEQUE2QztBQUVoQyxRQUFBLE1BQU0sR0FBRyxJQUFJLE9BQU8sQ0FBQyxRQUFRLENBQUMsUUFBUSxDQUFDO0lBQ2xELFVBQVUsRUFBRTtRQUNWLE9BQU8sRUFBRSxjQUFjO1FBQ3ZCLFdBQVcsRUFBRSxrQkFBa0I7UUFDL0IsYUFBYSxFQUFFLG9CQUFvQjtRQUNuQyxXQUFXLEVBQUUsT0FBTztRQUNwQixPQUFPLEVBQUUsTUFBTTtRQUNmLElBQUksRUFBRSxTQUFTO0tBQ2hCO0lBQ0QsZUFBZSxFQUFFLE9BQU87Q0FDekIsQ0FBQyxDQUFDO0FBRUgsY0FBTSxDQUFDLGlCQUFpQixDQUFDLElBQUksT0FBTyxDQUFDLHdCQUF3QixDQUFDLGdCQUFnQixFQUFFLENBQUMsQ0FBQyJ9
|
1
dist_ts/tswatch.paths.d.ts
vendored
Normal file
1
dist_ts/tswatch.paths.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare const cwd: string;
|
4
dist_ts/tswatch.paths.js
Normal file
4
dist_ts/tswatch.paths.js
Normal file
@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.cwd = process.cwd();
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5wYXRocy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3Rzd2F0Y2gucGF0aHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFFYSxRQUFBLEdBQUcsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUMifQ==
|
14
dist_ts/tswatch.plugins.d.ts
vendored
Normal file
14
dist_ts/tswatch.plugins.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import * as path from 'path';
|
||||
export { path };
|
||||
import * as lik from '@pushrocks/lik';
|
||||
import * as smartchok from '@pushrocks/smartchok';
|
||||
import * as smartcli from '@pushrocks/smartcli';
|
||||
import * as smartdelay from '@pushrocks/smartdelay';
|
||||
import * as smartlog from '@pushrocks/smartlog';
|
||||
import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local';
|
||||
import * as smartserve from '@pushrocks/smartserve';
|
||||
import * as smartshell from '@pushrocks/smartshell';
|
||||
import * as taskbuffer from '@pushrocks/taskbuffer';
|
||||
export { lik, smartchok, smartcli, smartdelay, smartlog, smartlogDestinationLocal, smartserve, smartshell, taskbuffer };
|
||||
import parcel from 'parcel-bundler';
|
||||
export { parcel };
|
37
dist_ts/tswatch.plugins.js
Normal file
37
dist_ts/tswatch.plugins.js
Normal file
@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const path = __importStar(require("path"));
|
||||
exports.path = path;
|
||||
// @pushrocks scope
|
||||
const lik = __importStar(require("@pushrocks/lik"));
|
||||
exports.lik = lik;
|
||||
const smartchok = __importStar(require("@pushrocks/smartchok"));
|
||||
exports.smartchok = smartchok;
|
||||
const smartcli = __importStar(require("@pushrocks/smartcli"));
|
||||
exports.smartcli = smartcli;
|
||||
const smartdelay = __importStar(require("@pushrocks/smartdelay"));
|
||||
exports.smartdelay = smartdelay;
|
||||
const smartlog = __importStar(require("@pushrocks/smartlog"));
|
||||
exports.smartlog = smartlog;
|
||||
const smartlogDestinationLocal = __importStar(require("@pushrocks/smartlog-destination-local"));
|
||||
exports.smartlogDestinationLocal = smartlogDestinationLocal;
|
||||
const smartserve = __importStar(require("@pushrocks/smartserve"));
|
||||
exports.smartserve = smartserve;
|
||||
const smartshell = __importStar(require("@pushrocks/smartshell"));
|
||||
exports.smartshell = smartshell;
|
||||
const taskbuffer = __importStar(require("@pushrocks/taskbuffer"));
|
||||
exports.taskbuffer = taskbuffer;
|
||||
// third party scope
|
||||
const parcel_bundler_1 = __importDefault(require("parcel-bundler"));
|
||||
exports.parcel = parcel_bundler_1.default;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvdHN3YXRjaC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBLDJDQUE2QjtBQUNwQixvQkFBSTtBQUViLG1CQUFtQjtBQUNuQixvREFBc0M7QUFXcEMsa0JBQUc7QUFWTCxnRUFBa0Q7QUFXaEQsOEJBQVM7QUFWWCw4REFBZ0Q7QUFXOUMsNEJBQVE7QUFWVixrRUFBb0Q7QUFXbEQsZ0NBQVU7QUFWWiw4REFBZ0Q7QUFXOUMsNEJBQVE7QUFWVixnR0FBa0Y7QUFXaEYsNERBQXdCO0FBVjFCLGtFQUFvRDtBQVdsRCxnQ0FBVTtBQVZaLGtFQUFvRDtBQVdsRCxnQ0FBVTtBQVZaLGtFQUFvRDtBQVdsRCxnQ0FBVTtBQUdaLG9CQUFvQjtBQUNwQixvRUFBb0M7QUFFM0IsaUJBRkYsd0JBQU0sQ0FFRSJ9
|
@ -7,7 +7,7 @@ import { Parcel } from './tswatch.classes.parcel';
|
||||
|
||||
export class TsWatch {
|
||||
public watchmode: interfaces.TWatchModes;
|
||||
public watcherMap = new plugins.lik.Objectmap<Watcher>();
|
||||
public watcherMap = new plugins.lik.ObjectMap<Watcher>();
|
||||
public smartserve: plugins.smartserve.SmartServe;
|
||||
|
||||
constructor(watchmodeArg: interfaces.TWatchModes) {
|
||||
|
Loading…
Reference in New Issue
Block a user