UNPKG

wv-gotcha

Version:

![](https://raw.githubusercontent.com/wV-software/icons/main/Wv/Product%20Icon/wv_128x128.png) wv-local-service-bus # Purpose To accumulate your walkthroughs to accomplish your common tasks with less effort.

215 lines 7.24 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mcq_CircuitsTasks = void 0; const Shell_1 = require("./Shell"); const Mcq_1 = require("./Mcq"); class Mcq_Code extends Mcq_1.Mcq { constructor() { super(...arguments); this.options = [ new WTR_CodeWvCore(), new WTR_Code_Circuits(), new WTR_Code_AngularSample(), new WTR_Code_ReactSample(), new WTR_Code_Contracts(), new WTR_Code_Extension(), new WTR_Code_View(), new WTR_Code_Gotcha(), new WTR_Code_LocalService(), new WTR_Code_LocalBroker(), new WTR_Code_ExtensionResources(), ]; } get _deduceOptionText() { return option => option.text; } } class Mcq_CircuitsTasks extends Mcq_1.Mcq { constructor() { super(...arguments); this.options = [ new WTR_Code(), new WTR_BuildView(), new WTR_RunTempBroker(), ]; } get _deduceOptionText() { return (option) => { return option.text; }; } } exports.Mcq_CircuitsTasks = Mcq_CircuitsTasks; class WTR_Code { constructor() { this.text = `Code`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const walkthrough = yield new Mcq_Code().selectAsync('Code what?'); yield walkthrough.execAsync(); }); } } class WTR_Code_Circuits { constructor() { this.text = `Code dotWire`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/_FinalCircuits/dotwire`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); }); } } class WTR_Code_ExtensionResources { constructor() { this.text = `Extension Resources`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/_FinalCircuits/circuit-bench-site/vscode-extension-resources`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); }); } } class WTR_Code_AngularSample { constructor() { this.text = `Code Angular-Sample`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/_FinalCircuits/circuits-sample-angular`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); // Dialog.exec(`npm run update-dep`, path); }); } } class WTR_Code_ReactSample { constructor() { this.text = `Code React-Sample`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/_FinalCircuits/circuits-sample-react`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); // Dialog.exec(`npm run update-dep`, path); }); } } class WTR_Code_View { constructor() { this.text = `Code View`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/_FinalCircuits/extension-view`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); // Dialog.exec(`npm run update-dep`, path); }); } } class WTR_Code_Gotcha { constructor() { this.text = `Code Gotcha`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/wv-gotcha`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); }); } } class WTR_Code_Extension { constructor() { this.text = `Code Extension`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/_FinalCircuits/extension`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); // Dialog.exec(`npm run update-dep`, path); }); } } class WTR_Code_Contracts { constructor() { this.text = `Code Contracts`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/_FinalCircuits/contracts`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); // Dialog.exec(`npm run update-dep`, path); }); } } class WTR_Code_LocalService { constructor() { this.text = `Code Local Service`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/wv-local-service`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); }); } } class WTR_Code_LocalBroker { constructor() { this.text = `Code Local Broker`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const path = `G:/_MyProjects/_MyNodeProjects/wv-local-service-broker`; Shell_1.Shell.info(`Please wait for vscode to open`); Shell_1.Shell.exec(`code \"${path}\"`); }); } } class WTR_BuildView { constructor() { this.text = 'Build the view'; } execAsync() { Shell_1.Shell.exec('npm run deploy', 'G:/_MyProjects/_MyNodeProjects/_FinalCircuits/extension-view'); return Promise.resolve(); } } class WTR_RunTempBroker { constructor() { this.text = 'Run temp broker'; } execAsync() { Shell_1.Shell.exec('node ./dist/run', `G:/_MyProjects/_MyNodeProjects/wv-local-service-broker`); return Promise.resolve(); } } class WTR_CodeWvCore { constructor() { this.text = 'Code wv_core'; } execAsync() { Shell_1.Shell.exec('code .', `G:/_MyProjects/_MyDenoProjects/wv_core/wv_core`); return Promise.resolve(); } } //# sourceMappingURL=Mcq_CircuitsTasks.js.map