chore(package): re-init package with commitizen and standard-release

This commit is contained in:
Pavel Pertsev
2018-05-16 12:54:46 +03:00
parent cb4e7a5643
commit eaf2328575
10640 changed files with 609660 additions and 117 deletions

40
node_modules/listr/lib/task-wrapper.js generated vendored Normal file
View File

@@ -0,0 +1,40 @@
'use strict';
const state = require('./state');
class TaskWrapper {
constructor(task) {
this._task = task;
}
set title(title) {
this._task.title = title;
this._task.next({
type: 'TITLE',
data: title
});
}
get title() {
return this._task.title;
}
skip(message) {
if (message && typeof message !== 'string') {
throw new TypeError(`Expected \`message\` to be of type \`string\`, got \`${typeof message}\``);
}
if (message) {
this._task._output = message;
}
this._task.state = state.SKIPPED;
}
run(ctx) {
return this._task.run(ctx, this);
}
}
module.exports = TaskWrapper;