tswatch/dist_ts/tswatch.cli.js

41 lines
3.8 KiB
JavaScript
Raw Normal View History

2020-05-22 07:25:34 +00:00
"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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN3YXRjaC5jbGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy90c3dhdGNoLmNsaS50cyJdLCJuYW1lcyI6W10sIm1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