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

60
node_modules/listr-verbose-renderer/index.js generated vendored Normal file
View File

@@ -0,0 +1,60 @@
'use strict';
const figures = require('figures');
const cliCursor = require('cli-cursor');
const utils = require('./lib/utils');
const renderHelper = (task, event) => {
if (event.type === 'STATE') {
const message = task.isPending() ? 'started' : task.state;
utils.log(`${task.title} [${message}]`);
if (task.isSkipped() && task.output) {
utils.log(`${figures.arrowRight} ${task.output}`);
}
} else if (event.type === 'DATA') {
utils.log(`${figures.arrowRight} ${event.data}`);
} else if (event.type === 'TITLE') {
utils.log(`${task.title} [title changed]`);
}
};
const render = tasks => {
for (const task of tasks) {
task.subscribe(
event => {
if (event.type === 'SUBTASKS') {
render(task.subtasks);
return;
}
renderHelper(task, event);
},
err => {
console.log(err);
}
);
}
};
class VerboseRenderer {
constructor(tasks) {
this._tasks = tasks;
}
static get nonTTY() {
return true;
}
render() {
cliCursor.hide();
render(this._tasks);
}
end() {
cliCursor.show();
}
}
module.exports = VerboseRenderer;

14
node_modules/listr-verbose-renderer/lib/utils.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
'use strict';
const chalk = require('chalk');
const pad = n => n < 10 ? `0${n}` : n;
const currentTime = () => {
const now = new Date();
return pad(now.getHours()) + ':' + pad(now.getMinutes()) + ':' + pad(now.getSeconds());
};
exports.log = output => {
console.log(chalk.dim(`[${currentTime()}]`) + ` ${output}`);
};

21
node_modules/listr-verbose-renderer/license generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Sam Verschueren <sam.verschueren@gmail.com> (github.com/SamVerschueren)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

41
node_modules/listr-verbose-renderer/package.json generated vendored Normal file
View File

@@ -0,0 +1,41 @@
{
"name": "listr-verbose-renderer",
"version": "0.3.0",
"description": "Listr verbose renderer",
"license": "MIT",
"repository": "SamVerschueren/listr-verbose-renderer",
"author": {
"name": "Sam Verschueren",
"email": "sam.verschueren@gmail.com",
"url": "github.com/SamVerschueren"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo"
},
"files": [
"index.js",
"lib"
],
"keywords": [
"listr",
"verbose",
"renderer",
"rendering",
"custom",
"format"
],
"dependencies": {
"chalk": "^1.1.3",
"cli-cursor": "^1.0.2",
"figures": "^1.7.0"
},
"devDependencies": {
"xo": "*"
},
"xo": {
"esnext": true
}
}

45
node_modules/listr-verbose-renderer/readme.md generated vendored Normal file
View File

@@ -0,0 +1,45 @@
# listr-verbose-renderer [![Build Status](https://travis-ci.org/SamVerschueren/listr-verbose-renderer.svg?branch=master)](https://travis-ci.org/SamVerschueren/listr-verbose-renderer)
> [Listr](https://github.com/SamVerschueren/listr) verbose renderer
<img src="screenshot.gif" />
## Install
```
$ npm install --save listr-verbose-renderer
```
## Usage
```js
const VerboseRenderer = require('listr-verbose-renderer');
const Listr = require('listr');
const list = new Listr([
{
title: 'foo',
task: () => Promise.resolve('bar')
}
], {
renderer: VerboseRenderer
});
list.run();
```
> Note: This renderer supports non-TTY environments.
## Related
- [listr](https://github.com/SamVerschueren/listr) - Terminal task list
- [listr-update-renderer](https://github.com/SamVerschueren/listr-update-renderer) - Listr update renderer
- [listr-silent-renderer](https://github.com/SamVerschueren/listr-silent-renderer) - Suppress Listr rendering output
## License
MIT © [Sam Verschueren](https://github.com/SamVerschueren)