2020-05-22 07:25:34 +00:00
|
|
|
"use strict";
|
2021-03-08 00:26:44 +00:00
|
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
|
|
if (k2 === undefined) k2 = k;
|
|
|
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
|
|
}) : (function(o, m, k, k2) {
|
|
|
|
if (k2 === undefined) k2 = k;
|
|
|
|
o[k2] = m[k];
|
|
|
|
}));
|
|
|
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
|
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
|
|
}) : function(o, v) {
|
|
|
|
o["default"] = v;
|
|
|
|
});
|
2020-05-22 07:25:34 +00:00
|
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
|
if (mod && mod.__esModule) return mod;
|
|
|
|
var result = {};
|
2021-08-18 16:55:43 +00:00
|
|
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
2021-03-08 00:26:44 +00:00
|
|
|
__setModuleDefault(result, mod);
|
2020-05-22 07:25:34 +00:00
|
|
|
return result;
|
|
|
|
};
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2021-03-08 00:26:44 +00:00
|
|
|
exports.runCli = void 0;
|
2020-05-22 07:25:34 +00:00
|
|
|
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();
|
|
|
|
});
|
2021-08-18 16:55:43 +00:00
|
|
|
const runCli = async () => {
|
2021-03-08 00:26:44 +00:00
|
|
|
tswatchCli.startParse();
|
|
|
|
};
|
2021-08-18 16:55:43 +00:00
|
|
|
exports.runCli = runCli;
|
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5jbGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy90c3dhdGNoLmNsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMkRBQTZDO0FBRTdDLHVEQUEyQztBQUUzQyx1RUFBb0Q7QUFFcEQsTUFBTSxVQUFVLEdBQUcsSUFBSSxPQUFPLENBQUMsUUFBUSx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