Skip to content

Commit 65882c8

Browse files
author
Daniil Ryazanov
authored
build: Merge pull request #540 from keindev/dev
build: release v5.0.0
2 parents 5254b79 + ec4d29d commit 65882c8

23 files changed

+847
-284
lines changed

.config/.sharedconfig.override.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
overrideScripts:
2+
"prepare:config": "ts-package-shared-config"
3+
"generate:changelog": "changelog generate --bump"

.config/.vscode/cspell.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.config/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"console": "integratedTerminal",
99
"cwd": "${workspaceFolder}",
1010
"runtimeExecutable": "node",
11-
"runtimeArgs": ["--nolazy", "--inspect-brk=9229", "example/app.js"],
11+
"runtimeArgs": ["--experimental-specifier-resolution=node", "--nolazy", "--inspect-brk=9229", "example/app.js"],
1212
"port": 9229
1313
}
1414
]

.config/jest.modules.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.ghinfo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tasktree-cli",
3-
"version": "4.0.3",
3+
"version": "5.0.0",
44
"description": "Simple terminal task tree - helps you keep track of your tasks in a tree structure.",
55
"keywords": [
66
"cli",
@@ -29,4 +29,4 @@
2929
"logo": "media/logo.svg",
3030
"social-preview": "media/social-preview.png"
3131
}
32-
}
32+
}

.github/workflows/build.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@ name: Build
33
on: [push, pull_request]
44

55
jobs:
6-
triage-labels:
7-
name: Add labels
8-
if: ${{ github.event_name == 'pull_request' }}
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/labeler@main
12-
with:
13-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
14-
sync-labels: true
15-
166
test:
177
name: Test
188
runs-on: ${{ matrix.os }}

.github/workflows/sync.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Synchronize
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened, ready_for_review, locked]
6+
7+
jobs:
8+
labels:
9+
name: Pull Request Labeler
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@main
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
15+
configuration-path: '.github/labeler.yml'
16+
sync-labels: true

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
/.vscode/
1616
/jest.modules.json
1717
/typedoc.json
18-
babel.config.js
18+
babel.config.cjs
1919
coverage
20-
jest.config.js
20+
jest.config.cjs
2121
lib
2222
logs
2323
node_modules/
2424
pids
25+
tsconfig.eslint.json
2526
tsconfig.json
2627
tsconfig.tsbuildinfo
2728
yarn-debug.log*

.npmignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
.prettierrc
1515
.vscode
1616
CODE_OF_CONDUCT.md
17-
babel.config.js
17+
babel.config.cjs
1818
codecov.yml
1919
codegen.yml
2020
coverage/
2121
docs/
2222
example/
23-
jest.config.js
23+
jest.config.cjs
2424
jest.modules.json
2525
media/
2626
node_modules/
2727
src/
28+
tsconfig.eslint.json
2829
tsconfig.json
2930
typedoc.json

CHANGELOG.md

Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,33 @@
1-
# Important Changes
1+
# BREAKING CHANGES
22

3-
## Engines
3+
- Move to ESM [`bff34dc`](https://github.com/keindev/tasktree/commit/bff34dc2b474685e97572af2ee1e4402c473b680)
44

5-
- Bumped **node** from `12.0.0` to `14.0.0`
5+
# Important Changes
66

77
## Dependencies
88

99
<details>
1010
<summary>Dependencies</summary>
1111

12-
- Changed **[stdout-update](https://www.npmjs.com/package/stdout-update/v/1.6.5)** from `^1.6.5` to `1.6.5`
13-
- Bumped **[chalk](https://www.npmjs.com/package/chalk/v/4.1.1)** from `4.1.0` to `4.1.1`
12+
- Bumped **[stdout-update](https://www.npmjs.com/package/stdout-update/v/2.0.0)** from `1.6.5` to `2.0.0`
1413

1514
</details>
1615

1716
<details>
1817
<summary>Dev Dependencies</summary>
1918

20-
- Added **[@babel/plugin-transform-runtime](https://www.npmjs.com/package/@babel/plugin-transform-runtime/v/7.13.15)** with `^7.13.15`
21-
- Added **[@babel/preset-env](https://www.npmjs.com/package/@babel/preset-env/v/7.14.0)** with `^7.14.0`
22-
- Added **[@tagproject/ts-package-shared-config](https://www.npmjs.com/package/@tagproject/ts-package-shared-config/v/1.5.8)** with `^1.5.8`
23-
- Added **[babel-jest](https://www.npmjs.com/package/babel-jest/v/26.6.3)** with `^26.6.3`
24-
- Added **[eslint-plugin-node](https://www.npmjs.com/package/eslint-plugin-node/v/11.1.0)** with `^11.1.0`
25-
- Added **[eslint-plugin-optimize-regex](https://www.npmjs.com/package/eslint-plugin-optimize-regex/v/1.2.0)** with `^1.2.0`
26-
- Added **[eslint-plugin-promise](https://www.npmjs.com/package/eslint-plugin-promise/v/5.1.0)** with `^5.1.0`
27-
- Bumped **[@types/jest](https://www.npmjs.com/package/@types/jest/v/26.0.23)** from `26.0.20` to `26.0.23`
28-
- Bumped **[@types/node](https://www.npmjs.com/package/@types/node/v/15.0.1)** from `14.14.31` to `15.0.1`
29-
- Bumped **[@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin/v/4.22.0)** from `4.16.1` to `4.22.0`
30-
- Bumped **[@typescript-eslint/parser](https://www.npmjs.com/package/@typescript-eslint/parser/v/4.22.0)** from `4.16.1` to `4.22.0`
31-
- Bumped **[changelog-guru](https://www.npmjs.com/package/changelog-guru/v/2.3.1)** from `1.0.0` to `2.3.1`
32-
- Bumped **[cspell](https://www.npmjs.com/package/cspell/v/5.3.12)** from `5.3.4` to `5.3.12`
33-
- Bumped **[eslint](https://www.npmjs.com/package/eslint/v/7.25.0)** from `7.21.0` to `7.25.0`
34-
- Bumped **[eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier/v/8.3.0)** from `8.1.0` to `8.3.0`
35-
- Bumped **[eslint-plugin-jest](https://www.npmjs.com/package/eslint-plugin-jest/v/24.3.6)** from `24.1.5` to `24.3.6`
36-
- Bumped **[ghinfo](https://www.npmjs.com/package/ghinfo/v/1.0.8)** from `1.0.6` to `1.0.8`
37-
- Bumped **[husky](https://www.npmjs.com/package/husky/v/6.0.0)** from `5.1.3` to `6.0.0`
38-
- Bumped **[strip-ansi](https://www.npmjs.com/package/strip-ansi/v/7.0.0)** from `6.0.0` to `7.0.0`
39-
- Bumped **[ts-jest](https://www.npmjs.com/package/ts-jest/v/26.5.5)** from `26.5.3` to `26.5.5`
40-
- Bumped **[typedoc](https://www.npmjs.com/package/typedoc/v/0.20.36)** from `0.20.29` to `0.20.36`
41-
- Bumped **[typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown/v/3.7.2)** from `3.6.0` to `3.7.2`
42-
- Bumped **[typescript](https://www.npmjs.com/package/typescript/v/4.2.4)** from `4.2.3` to `4.2.4`
43-
- Removed **[eslint-config-airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base/v/14.2.1)**, with `^14.2.1`
19+
- Bumped **[@tagproject/ts-package-shared-config](https://www.npmjs.com/package/@tagproject/ts-package-shared-config/v/2.0.3)** from `1.5.8` to `2.0.3`
20+
- Bumped **[ghinfo](https://www.npmjs.com/package/ghinfo/v/2.0.2)** from `1.0.8` to `2.0.2`
4421

4522
</details>
4623

47-
# :bug: Bug Fixes
48-
49-
- Fix `stdout-update` to `1.6.5` [`ed63ee1`](https://github.com/keindev/tasktree/commit/ed63ee1d3b93a3f151b09c11261227573bb0f48a)
50-
5124
# :memo: Internal changes
5225

53-
- Fix eslint rules [`32980ba`](https://github.com/keindev/tasktree/commit/32980ba99c89a36f79e67afee072d748a715c718)
54-
- Remove configs [`bb30f3e`](https://github.com/keindev/tasktree/commit/bb30f3e272c2e73616aa0f0494bb47e5519b8b70)
55-
- Use `standard-shared-config` [`76816ac`](https://github.com/keindev/tasktree/commit/76816ac3e003ff8ca7fb6b1b9c11388efcf25500)
56-
- Override configs for vscode & typedoc [`5831cc3`](https://github.com/keindev/tasktree/commit/5831cc314b8dbd15770d1bde6c89323443a81af7)
57-
- Fix progress bar test for NodeJS `15.x` [`188223e`](https://github.com/keindev/tasktree/commit/188223e5dc3dcaf181dcb69b8cb37920a342f092)
26+
- Remove yarn install info, fix logo size [`8af6cdc`](https://github.com/keindev/tasktree/commit/8af6cdc3f227738bdb143e7ae1f768b8541dbf25)
5827

5928
# :wrench: Code Refactoring
6029

61-
- Fix eslint conf and refactor [`7f1672e`](https://github.com/keindev/tasktree/commit/7f1672e129d4b7c5831d4ae58170492905d196d3)
30+
- Refactor tests, remove cspell override config [`e364f3b`](https://github.com/keindev/tasktree/commit/e364f3bf961827d2655f83de9614d28f96440c0c)
6231

6332
---
6433

README.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<p align="center"><img width="200" src="https://cdn.jsdelivr.net/gh/keindev/tasktree/media/logo.svg" alt="TaskTree logo"></p>
1+
<p align="center"><img width="230" src="https://cdn.jsdelivr.net/gh/keindev/tasktree/media/logo.svg" alt="TaskTree logo"></p>
22

33
<p align="center">
44
<a href="https://travis-ci.com/keindev/tasktree"><img src="https://travis-ci.com/keindev/tasktree.svg?branch=master" alt="Build Status"></a>
55
<a href="https://codecov.io/gh/keindev/tasktree"><img src="https://codecov.io/gh/keindev/tasktree/branch/master/graph/badge.svg" /></a>
66
<a href="https://www.npmjs.com/package/tasktree-cli"><img alt="npm" src="https://img.shields.io/npm/v/tasktree-cli.svg"></a>
7-
<a href="https://www.npmjs.com/package/tasktree-cli"><img alt="NPM" src="https://img.shields.io/npm/l/tasktree-cli.svg"></a>
7+
<a href="https://github.com/tagproject/ts-package-shared-config"><img src="https://img.shields.io/badge/standard--shared--config-nodejs%2Bts-green?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAfCAYAAACh+E5kAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJQSURBVHgB1VftUcMwDFU4/tMNyAZ0A7IBbBA2CExAmIBjApcJChO0TFA2SJkgMIGRyDNV3TSt26RN353OX/LHUyTZIdoB1tqMZcaS0imBDzxkeWaJWR51SX0HrJ6pdsJyifpdb4loq3v9A+1CaBuWMR0Q502DzuJRFD34Y9z3DXIRNy/QPWKZY27COlM6BtZZHWMJ3CkVa28KZMTJkDpCVLOhs/oL2gMuEhYpxeenPPah9EdczLkvpwZgnQHWnlNLiNQGYiWx5gu6Ehz4m+WNN/2i9Yd75CJmeRDXogbIFxECrqQ2wIvlLBOXaViuYbGQNSQLFSGZyOnulb2wadaGnyoSSeC8GBJkNDf5kloESAhy2gFIIPG2+ufUMtivn/gAEi+Gy4u6FLxh/qer8/xbLq7QlNh6X4mbtr+A3pylDI0Lb43YrmLmXP5v3a4I4ABDRSI4xjB/ghveoj4BCVm37JQADhGDgOA+YJ48TSaoOwKpt27aOQG1WRES3La65WPU3dysTjE8de0Aj8SsKS5sdS9lqCeYI08bU6d8EALYS5OoDW4c3qi2gf7f+4yODfj2DIcqdVzYKnMtEUO7RP2gT/W1AImxXSC3i7R7rfRuMT5G2xzSYzaCDzOyyzDeuNHZx1a3fOdJJwh28fRwwT1QY6Xzf7TvWG6ob/BIGPQ59ymUngRyRn2El6Fy5T7G0zl+JmoC3KRQXyT1xpfiJKIeAemzqBl6U3V5ocZNf4hHg61u223wn4nOqF8IzvF9IxCMkyfQ+i/lnnhlmW6h9+Mqv1SmQhehji4JAAAAAElFTkSuQmCC" alt="Standard Shared Config"></a>
88
</p>
99

1010
Simple terminal task tree - helps you keep track of your tasks in a tree structure.
@@ -13,22 +13,15 @@ Simple terminal task tree - helps you keep track of your tasks in a tree structu
1313

1414
## Install
1515

16-
### Yarn
17-
18-
```
19-
yarn add tasktree-cli
20-
```
21-
22-
### NPM
23-
24-
```
16+
```console
2517
npm install tasktree-cli
2618
```
2719

2820
## Usage
2921

3022
```javascript
31-
const { TaskTree } = require('tasktree-cli');
23+
import TaskTree from 'tasktree-cli';
24+
3225
const tree = TaskTree.tree();
3326

3427
// start task tree log update in terminal
@@ -45,7 +38,7 @@ const bars = [task3.bar(tpl), task3.bar(tpl), task3.bar(tpl)];
4538
// ... whatever
4639
let once = false;
4740
const promises = [50, 75, 200].map((ms, i) => {
48-
return new Promise((resolve) => {
41+
return new Promise(resolve => {
4942
const handle = setInterval(() => {
5043
if (once) {
5144
if (bars[i].percent >= 50) {
@@ -86,7 +79,3 @@ const task = new Task('{underline.cyan.bold Awesome task}');
8679
## API
8780

8881
Read the [API documentation](docs/api/index.md) for more information.
89-
90-
## License
91-
92-
[MIT](LICENSE)

docs/api/modules/tasktree.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Table of contents
44

5+
### References
6+
7+
- [default](tasktree.md#default)
8+
59
### Enumerations
610

711
- [ExitCode](../enums/tasktree.exitcode.md)
@@ -13,3 +17,9 @@
1317
### Interfaces
1418

1519
- [ITaskTreeOptions](../interfaces/tasktree.itasktreeoptions.md)
20+
21+
## References
22+
23+
### default
24+
25+
Renames and exports: [TaskTree](../classes/tasktree.tasktree-1.md)

example/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { TaskTree } = require('../lib/TaskTree');
1+
import TaskTree from '../lib';
22
const tree = TaskTree.tree();
33

44
// start task tree log update in terminal
@@ -15,7 +15,7 @@ const bars = [task3.bar(tpl), task3.bar(tpl), task3.bar(tpl)];
1515
// ... whatever
1616
let once = false;
1717
const promises = [50, 75, 200].map((ms, i) => {
18-
return new Promise((resolve) => {
18+
return new Promise(resolve => {
1919
const handle = setInterval(() => {
2020
if (once) {
2121
if (bars[i].percent >= 50) {

0 commit comments

Comments
 (0)