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.

80 lines 4.05 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; 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.WTR_Git_ListBranches = exports.WTR_Git_EditGlobalConfiguration = exports.WTR_DenoPublish = void 0; const Dialog_1 = require("../Dialog"); const _RegisterWalkthrough_1 = require("./_Foundation/_RegisterWalkthrough"); const UPathMan_1 = require("../UPathMan"); // #region deno let WTR_DenoPublish = class WTR_DenoPublish { constructor() { this.text = `Deno-Publish`; } execAsync() { return __awaiter(this, void 0, void 0, function* () { const comment = yield Dialog_1.Dialog.askForTextAsync(`commit comment:`); Dialog_1.Dialog.hintWillExec('Commiting and pushing your changes? press ENTER to continue'); yield Dialog_1.Dialog.promptContinueAsync(); Dialog_1.Dialog.exec(`git add .`); Dialog_1.Dialog.exec(`git commit -m "${comment}"`); Dialog_1.Dialog.exec(`git push`); Dialog_1.Dialog.hintWillExec('Openning releases page:'); const dirName = UPathMan_1.UPathMan.$().currentDir.Name; const releaseUrl = `https://github.com/wV-software/${dirName}/releases/`; // const releaseUrl = `https://github.com/wV-software/wv_core/releases/`; Dialog_1.Dialog.exec(`start ${releaseUrl}`); yield Dialog_1.Dialog.instructAsync(`Find "Draft a new realse" button to start`); }); } }; WTR_DenoPublish = __decorate([ (0, _RegisterWalkthrough_1.RegisterWalkthrough)() ], WTR_DenoPublish); exports.WTR_DenoPublish = WTR_DenoPublish; // #endregion // #region git let WTR_Git_EditGlobalConfiguration = class WTR_Git_EditGlobalConfiguration { constructor() { this.text = 'Git >> Edit global configuration'; } execAsync() { return __awaiter(this, void 0, void 0, function* () { Dialog_1.Dialog.exec(`git config --global core.editor "code --wait"`); Dialog_1.Dialog.exec(`git config --global -e`); }); } }; WTR_Git_EditGlobalConfiguration = __decorate([ (0, _RegisterWalkthrough_1.RegisterWalkthrough)() ], WTR_Git_EditGlobalConfiguration); exports.WTR_Git_EditGlobalConfiguration = WTR_Git_EditGlobalConfiguration; let WTR_Git_ListBranches = class WTR_Git_ListBranches { constructor() { this.text = 'Git >> List branches'; } execAsync() { return __awaiter(this, void 0, void 0, function* () { Dialog_1.Dialog.exec(`git branch`); }); } }; WTR_Git_ListBranches = __decorate([ (0, _RegisterWalkthrough_1.RegisterWalkthrough)() ], WTR_Git_ListBranches); exports.WTR_Git_ListBranches = WTR_Git_ListBranches; // #endregion //# sourceMappingURL=WTR_Git.js.map