fix(core): update
This commit is contained in:
parent
c1a93102be
commit
db19c7480f
1
dist/index.d.ts
vendored
1
dist/index.d.ts
vendored
@ -1 +1,2 @@
|
|||||||
export * from './smartinteract.classes.smartinteract';
|
export * from './smartinteract.classes.smartinteract';
|
||||||
|
export * from './smartinteract.classes.answerbucket';
|
||||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -4,4 +4,5 @@ function __export(m) {
|
|||||||
}
|
}
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
__export(require("./smartinteract.classes.smartinteract"));
|
__export(require("./smartinteract.classes.smartinteract"));
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDJEQUFxRCJ9
|
__export(require("./smartinteract.classes.answerbucket"));
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDJEQUFzRDtBQUN0RCwwREFBcUQifQ==
|
28
dist/smartinteract.classes.smartinteract.d.ts
vendored
28
dist/smartinteract.classes.smartinteract.d.ts
vendored
@ -1,5 +1,11 @@
|
|||||||
import { Objectmap } from 'lik';
|
import { AnswerBucket } from './smartinteract.classes.answerbucket';
|
||||||
|
/**
|
||||||
|
* the availeable question types
|
||||||
|
*/
|
||||||
export declare type questionType = 'input' | 'confirm' | 'list' | 'rawlist' | 'expand' | 'checkbox' | 'password' | 'editor';
|
export declare type questionType = 'input' | 'confirm' | 'list' | 'rawlist' | 'expand' | 'checkbox' | 'password' | 'editor';
|
||||||
|
/**
|
||||||
|
* a choice
|
||||||
|
*/
|
||||||
export interface IChoiceObject {
|
export interface IChoiceObject {
|
||||||
name: string;
|
name: string;
|
||||||
value: any;
|
value: any;
|
||||||
@ -47,23 +53,5 @@ export declare class SmartInteract {
|
|||||||
/**
|
/**
|
||||||
* checks if the current env is valid for userinput
|
* checks if the current env is valid for userinput
|
||||||
*/
|
*/
|
||||||
private isValidEnv();
|
private isValidEnv;
|
||||||
}
|
|
||||||
/**
|
|
||||||
* class AnswerBucket holds answers
|
|
||||||
*/
|
|
||||||
export declare class AnswerBucket {
|
|
||||||
answerMap: Objectmap<IAnswerObject>;
|
|
||||||
/**
|
|
||||||
* add an answer to the bucket
|
|
||||||
*/
|
|
||||||
addAnswer(answerArg: IAnswerObject): void;
|
|
||||||
/**
|
|
||||||
* gets an answer for a specific name
|
|
||||||
*/
|
|
||||||
getAnswerFor(nameArg: string): any;
|
|
||||||
/**
|
|
||||||
* gets all answers as array
|
|
||||||
*/
|
|
||||||
getAllAnswers(): IAnswerObject[];
|
|
||||||
}
|
}
|
||||||
|
86
dist/smartinteract.classes.smartinteract.js
vendored
86
dist/smartinteract.classes.smartinteract.js
vendored
@ -1,16 +1,15 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
if (mod && mod.__esModule) return mod;
|
||||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
var result = {};
|
||||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
result["default"] = mod;
|
||||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
return result;
|
||||||
});
|
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./smartinteract.plugins");
|
const plugins = __importStar(require("./smartinteract.plugins"));
|
||||||
const smartq = require("smartq");
|
const smartpromise = __importStar(require("@pushrocks/smartpromise"));
|
||||||
const lik_1 = require("lik");
|
const smartinteract_classes_answerbucket_1 = require("./smartinteract.classes.answerbucket");
|
||||||
/**
|
/**
|
||||||
* class SmartInteract - allows to specify an user interaction during runtime
|
* class SmartInteract - allows to specify an user interaction during runtime
|
||||||
*/
|
*/
|
||||||
@ -22,7 +21,7 @@ class SmartInteract {
|
|||||||
/**
|
/**
|
||||||
* holds the qestion queue, that is emptied once you call
|
* holds the qestion queue, that is emptied once you call
|
||||||
*/
|
*/
|
||||||
this.questionMap = new lik_1.Objectmap();
|
this.questionMap = new plugins.lik.Objectmap();
|
||||||
if (questionArrayArg) {
|
if (questionArrayArg) {
|
||||||
this.addQuestions(questionArrayArg);
|
this.addQuestions(questionArrayArg);
|
||||||
}
|
}
|
||||||
@ -32,32 +31,33 @@ class SmartInteract {
|
|||||||
* skips the queue
|
* skips the queue
|
||||||
*/
|
*/
|
||||||
askQuestion(optionsArg) {
|
askQuestion(optionsArg) {
|
||||||
let done = smartq.defer();
|
const done = smartpromise.defer();
|
||||||
if (this.isValidEnv()) {
|
if (this.isValidEnv()) {
|
||||||
plugins.inquirer.prompt([{
|
plugins.inquirer
|
||||||
|
.prompt([
|
||||||
|
{
|
||||||
name: optionsArg.name,
|
name: optionsArg.name,
|
||||||
type: optionsArg.type,
|
type: optionsArg.type,
|
||||||
message: optionsArg.message,
|
message: optionsArg.message,
|
||||||
default: optionsArg.default,
|
default: optionsArg.default,
|
||||||
choices: optionsArg.choices,
|
choices: optionsArg.choices,
|
||||||
validate: optionsArg.validate
|
validate: optionsArg.validate
|
||||||
}]).then((answers) => {
|
|
||||||
// adjust to the fact that now dots define paths for inquirer
|
|
||||||
let answerValue = answers;
|
|
||||||
let nameArray = optionsArg.name.split('.');
|
|
||||||
for (let name of nameArray) {
|
|
||||||
answerValue = answerValue[name];
|
|
||||||
}
|
}
|
||||||
|
])
|
||||||
|
.then(answers => {
|
||||||
|
// adjust to the fact that now dots define paths for inquirer
|
||||||
|
const answerValue = plugins.smartparam.smartGet(answers, optionsArg.name);
|
||||||
done.resolve({
|
done.resolve({
|
||||||
name: optionsArg.name,
|
name: optionsArg.name,
|
||||||
value: answerValue
|
value: answerValue
|
||||||
});
|
});
|
||||||
}).catch(err => {
|
})
|
||||||
|
.catch(err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let answer = {
|
const answer = {
|
||||||
name: optionsArg.name,
|
name: optionsArg.name,
|
||||||
value: optionsArg.default
|
value: optionsArg.default
|
||||||
};
|
};
|
||||||
@ -75,19 +75,19 @@ class SmartInteract {
|
|||||||
* run the question queue
|
* run the question queue
|
||||||
*/
|
*/
|
||||||
runQueue() {
|
runQueue() {
|
||||||
let done = smartq.defer();
|
const done = smartpromise.defer();
|
||||||
let answerBucket = new AnswerBucket();
|
const answerBucket = new smartinteract_classes_answerbucket_1.AnswerBucket();
|
||||||
let handleQuestion = () => __awaiter(this, void 0, void 0, function* () {
|
const handleQuestion = async () => {
|
||||||
if (!this.questionMap.isEmpty()) {
|
if (!this.questionMap.isEmpty()) {
|
||||||
let oneQuestion = this.questionMap.getOneAndRemove();
|
const oneQuestion = this.questionMap.getOneAndRemove();
|
||||||
let answer = yield this.askQuestion(oneQuestion);
|
const answer = await this.askQuestion(oneQuestion);
|
||||||
answerBucket.addAnswer(answer);
|
answerBucket.addAnswer(answer);
|
||||||
handleQuestion(); // recursion: as questions until empty
|
handleQuestion(); // recursion: as questions until empty
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
done.resolve(answerBucket); // when empty, then resolve promise
|
done.resolve(answerBucket); // when empty, then resolve promise
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
handleQuestion();
|
handleQuestion();
|
||||||
return done.promise;
|
return done.promise;
|
||||||
}
|
}
|
||||||
@ -104,34 +104,4 @@ class SmartInteract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.SmartInteract = SmartInteract;
|
exports.SmartInteract = SmartInteract;
|
||||||
/**
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRpbnRlcmFjdC5jbGFzc2VzLnNtYXJ0aW50ZXJhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGludGVyYWN0LmNsYXNzZXMuc21hcnRpbnRlcmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxpRUFBbUQ7QUFDbkQsc0VBQXdEO0FBQ3hELDZGQUFvRTtBQXlDcEU7O0dBRUc7QUFDSCxNQUFhLGFBQWE7SUFNeEI7O09BRUc7SUFDSCxZQUFZLGdCQUFvQztRQVJoRDs7V0FFRztRQUNLLGdCQUFXLEdBQUcsSUFBSSxPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsRUFBbUIsQ0FBQztRQU1qRSxJQUFJLGdCQUFnQixFQUFFO1lBQ3BCLElBQUksQ0FBQyxZQUFZLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztTQUNyQztJQUNILENBQUM7SUFDRDs7O09BR0c7SUFDSCxXQUFXLENBQUMsVUFBMkI7UUFDckMsTUFBTSxJQUFJLEdBQUcsWUFBWSxDQUFDLEtBQUssRUFBaUIsQ0FBQztRQUNqRCxJQUFJLElBQUksQ0FBQyxVQUFVLEVBQUUsRUFBRTtZQUNyQixPQUFPLENBQUMsUUFBUTtpQkFDYixNQUFNLENBQUM7Z0JBQ047b0JBQ0UsSUFBSSxFQUFFLFVBQVUsQ0FBQyxJQUFJO29CQUNyQixJQUFJLEVBQUUsVUFBVSxDQUFDLElBQUk7b0JBQ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FBQVE7UUFDTixNQUFNLElBQUksR0FBRyxZQUFZLENBQUMsS0FBSyxFQUFnQixDQUFDO1FBQ2hELE1BQU0sWUFBWSxHQUFHLElBQUksaURBQVksRUFBRSxDQUFDO1FBQ3hDLE1BQU0sY0FBYyxHQUFHLEtBQUssSUFBSSxFQUFFO1lBQ2hDLElBQUksQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLE9BQU8sRUFBRSxFQUFFO2dCQUMvQixNQUFNLFdBQVcsR0FBRyxJQUFJLENBQUMsV0FBVyxDQUFDLGVBQWUsRUFBRSxDQUFDO2dCQUN2RCxNQUFNLE1BQU0sR0FBa0IsTUFBTSxJQUFJLENBQUMsV0FBVyxDQUFDLFdBQVcsQ0FBQyxDQUFDO2dCQUNsRSxZQUFZLENBQUMsU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFDO2dCQUMvQixjQUFjLEVBQUUsQ0FBQyxDQUFDLHNDQUFzQzthQUN6RDtpQkFBTTtnQkFDTCxJQUFJLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQyxDQUFDLENBQUMsbUNBQW1DO2FBQ2hFO1FBQ0gsQ0FBQyxDQUFDO1FBQ0YsY0FBYyxFQUFFLENBQUM7UUFDakIsT0FBTyxJQUFJLENBQUMsT0FBTyxDQUFDO0lBQ3RCLENBQUM7SUFFRDs7T0FFRztJQUNLLFVBQVU7UUFDaEIsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFO1lBQ25CLE9BQU8sSUFBSSxDQUFDO1NBQ2I7YUFBTTtZQUNMLE9BQU8sS0FBSyxDQUFDO1NBQ2Q7SUFDSCxDQUFDO0NBQ0Y7QUEzRkQsc0NBMkZDIn0=
|
||||||
* class AnswerBucket holds answers
|
|
||||||
*/
|
|
||||||
class AnswerBucket {
|
|
||||||
constructor() {
|
|
||||||
this.answerMap = new lik_1.Objectmap();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* add an answer to the bucket
|
|
||||||
*/
|
|
||||||
addAnswer(answerArg) {
|
|
||||||
this.answerMap.add(answerArg);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* gets an answer for a specific name
|
|
||||||
*/
|
|
||||||
getAnswerFor(nameArg) {
|
|
||||||
let answer = this.answerMap.find(answerArg => {
|
|
||||||
return answerArg.name === nameArg;
|
|
||||||
});
|
|
||||||
return answer.value;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* gets all answers as array
|
|
||||||
*/
|
|
||||||
getAllAnswers() {
|
|
||||||
return this.answerMap.getArray();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
exports.AnswerBucket = AnswerBucket;
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRpbnRlcmFjdC5jbGFzc2VzLnNtYXJ0aW50ZXJhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGludGVyYWN0LmNsYXNzZXMuc21hcnRpbnRlcmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsbURBQWtEO0FBQ2xELGlDQUFnQztBQUNoQyw2QkFBK0I7QUEyQi9COztHQUVHO0FBQ0g7SUFPRTs7T0FFRztJQUNILFlBQWEsZ0JBQW9DO1FBUmpEOztXQUVHO1FBQ0ssZ0JBQVcsR0FBRyxJQUFJLGVBQVMsRUFBbUIsQ0FBQTtRQU1wRCxFQUFFLENBQUMsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUM7WUFDckIsSUFBSSxDQUFDLFlBQVksQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO1FBQ3JDLENBQUM7SUFDSCxDQUFDO0lBQ0Q7OztPQUdHO0lBQ0gsV0FBVyxDQUFFLFVBQTJCO1FBQ3RDLElBQUksSUFBSSxHQUFHLE1BQU0sQ0FBQyxLQUFLLEVBQWlCLENBQUE7UUFDeEMsRUFBR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ts
vendored
@ -1,3 +1,5 @@
|
|||||||
import 'typings-global';
|
import * as lik from '@pushrocks/lik';
|
||||||
|
import * as smartparam from '@pushrocks/smartparam';
|
||||||
|
export { lik, smartparam };
|
||||||
import * as inquirer from 'inquirer';
|
import * as inquirer from 'inquirer';
|
||||||
export { inquirer };
|
export { inquirer };
|
||||||
|
18
dist/smartinteract.plugins.js
vendored
18
dist/smartinteract.plugins.js
vendored
@ -1,6 +1,18 @@
|
|||||||
"use strict";
|
"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 });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
require("typings-global");
|
// pushrocks scope
|
||||||
const inquirer = require("inquirer");
|
const lik = __importStar(require("@pushrocks/lik"));
|
||||||
|
exports.lik = lik;
|
||||||
|
const smartparam = __importStar(require("@pushrocks/smartparam"));
|
||||||
|
exports.smartparam = smartparam;
|
||||||
|
// third party scope
|
||||||
|
const inquirer = __importStar(require("inquirer"));
|
||||||
exports.inquirer = inquirer;
|
exports.inquirer = inquirer;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRpbnRlcmFjdC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRpbnRlcmFjdC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCO0FBQ3ZCLHFDQUFvQztBQUdsQyw0QkFBUSJ9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRpbnRlcmFjdC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRpbnRlcmFjdC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLGtCQUFrQjtBQUNsQixvREFBc0M7QUFHN0Isa0JBQUc7QUFGWixrRUFBb0Q7QUFFdEMsZ0NBQVU7QUFFeEIsb0JBQW9CO0FBQ3BCLG1EQUFxQztBQUU1Qiw0QkFBUSJ9
|
971
package-lock.json
generated
971
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,9 +6,8 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tsrun test/test.ts",
|
"test": "(tstest test/)",
|
||||||
"testLocal": "(npmts --notest && ts-node --compilerOptions '{\"target\":\"es6\"}' test/test.ts)",
|
"build": "(tsbuild)"
|
||||||
"build": "(npmts --notest)"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -32,7 +31,8 @@
|
|||||||
"inquirer": "^7.0.4"
|
"inquirer": "^7.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsrun": "^1.2.8",
|
"@gitzone/tsbuild": "^2.1.17",
|
||||||
|
"@gitzone/tstest": "^1.0.28",
|
||||||
"@pushrocks/tapbundle": "^3.2.0",
|
"@pushrocks/tapbundle": "^3.2.0",
|
||||||
"tslint": "^6.0.0",
|
"tslint": "^6.0.0",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user