Skip to content

Commit 91ad860

Browse files
author
keindev
committed
build: release v4.0.0
2 parents ec16ef9 + f1453fe commit 91ad860

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+10540
-1950
lines changed

.dependabot/config.yml

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

.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ trim_trailing_whitespace = true
77
end_of_line = lf
88
max_line_length = 120
99
indent_style = space
10-
indent_size = 4
10+
indent_size = 2
1111

1212
[*.{js}]
1313
indent_style = space
14-
indent_size = 4
14+
indent_size = 2
1515

1616
[*.{json}]
1717
indent_style = space
18-
indent_size = 4
18+
indent_size = 2
1919

2020
[*.{md,markdown}]
2121
trim_trailing_whitespace = false

.eslintrc

Lines changed: 101 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,106 @@
11
{
2-
"root": true,
3-
"env": {
4-
"node": true,
5-
"commonjs": true
6-
},
7-
"parser": "@typescript-eslint/parser",
8-
"extends": [
9-
"airbnb-base",
10-
"plugin:@typescript-eslint/recommended",
11-
"prettier",
12-
"prettier/@typescript-eslint",
13-
"plugin:jest/recommended"
14-
],
15-
"plugins": ["@typescript-eslint", "jest"],
16-
"rules": {
17-
"@typescript-eslint/member-ordering": "error",
18-
"@typescript-eslint/interface-name-prefix": ["error", { "prefixWithI": "always" }],
19-
"max-lines-per-function": ["error", { "max": 40 }],
20-
"import/prefer-default-export": 0,
21-
"import/extensions": 0,
22-
"max-len": ["error", { "code": 120 }],
23-
"indent": ["error", 4, { "SwitchCase": 1 }],
24-
"lines-between-class-members": 0,
25-
"no-bitwise": 0,
26-
"no-plusplus": 0,
27-
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
28-
"padding-line-between-statements": [
29-
"error",
30-
{ "blankLine": "always", "prev": "*", "next": "return" },
31-
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
32-
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] },
33-
{ "blankLine": "always", "prev": "*", "next": "if" },
34-
{ "blankLine": "any", "prev": "if", "next": "if" }
35-
]
36-
},
37-
"overrides": [
38-
{
39-
"files": "*.test.ts",
40-
"rules": {
41-
"max-lines-per-function": ["error", { "max": 200 }]
42-
}
2+
"root": true,
3+
"env": {
4+
"node": true,
5+
"commonjs": true
6+
},
7+
"parser": "@typescript-eslint/parser",
8+
"extends": ["airbnb-base", "plugin:@typescript-eslint/recommended", "prettier", "plugin:jest/recommended"],
9+
"plugins": ["@typescript-eslint", "jest"],
10+
"rules": {
11+
"@typescript-eslint/member-ordering": "error",
12+
"@typescript-eslint/naming-convention": [
13+
"error",
14+
{
15+
"selector": "interface",
16+
"format": ["PascalCase"],
17+
"custom": {
18+
"regex": "^I[A-Z]",
19+
"match": true
4320
}
21+
}
4422
],
45-
"settings": {
46-
"import/resolver": {
47-
"node": {
48-
"paths": ["src"],
49-
"extensions": [".ts", ".d.ts", ".js"]
50-
}
51-
}
23+
"@typescript-eslint/no-shadow": ["error"],
24+
"no-shadow": "off",
25+
"max-lines-per-function": [
26+
"error",
27+
{
28+
"max": 40
29+
}
30+
],
31+
"import/prefer-default-export": 0,
32+
"import/extensions": 0,
33+
"max-len": [
34+
"error",
35+
{
36+
"code": 120,
37+
"ignoreComments": true
38+
}
39+
],
40+
"indent": [
41+
"error",
42+
2,
43+
{
44+
"SwitchCase": 1
45+
}
46+
],
47+
"lines-between-class-members": 0,
48+
"no-bitwise": 0,
49+
"no-plusplus": 0,
50+
"no-underscore-dangle": [
51+
"error",
52+
{
53+
"allowAfterThis": true
54+
}
55+
],
56+
"padding-line-between-statements": [
57+
"error",
58+
{
59+
"blankLine": "always",
60+
"prev": "*",
61+
"next": "return"
62+
},
63+
{
64+
"blankLine": "always",
65+
"prev": ["const", "let", "var"],
66+
"next": "*"
67+
},
68+
{
69+
"blankLine": "any",
70+
"prev": ["const", "let", "var"],
71+
"next": ["const", "let", "var"]
72+
},
73+
{
74+
"blankLine": "always",
75+
"prev": "*",
76+
"next": "if"
77+
},
78+
{
79+
"blankLine": "any",
80+
"prev": "if",
81+
"next": "if"
82+
}
83+
]
84+
},
85+
"overrides": [
86+
{
87+
"files": "*.test.ts",
88+
"rules": {
89+
"max-lines-per-function": [
90+
"error",
91+
{
92+
"max": 200
93+
}
94+
]
95+
}
96+
}
97+
],
98+
"settings": {
99+
"import/resolver": {
100+
"node": {
101+
"paths": ["src"],
102+
"extensions": [".ts", ".d.ts"]
103+
}
52104
}
105+
}
53106
}

.ghinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tasktree-cli",
3-
"version": "3.0.1",
3+
"version": "4.0.0",
44
"description": "Simple terminal task tree - helps you keep track of your tasks in a tree structure.",
55
"keywords": [
66
"cli",

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
day: friday
8+
time: "22:00"
9+
open-pull-requests-limit: 10
10+
target-branch: dev
11+
assignees:
12+
- keindev
13+
labels:
14+
- dependencies

.github/workflows/build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
- '*/*'
7+
- '!master'
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [15.x]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: npm ci
22+
- run: npm run check:lint
23+
24+
test:
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
matrix:
28+
node-version: [12.x, 13.x, 14.x, 15.x]
29+
os: [ubuntu-latest]
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Use Node.js ${{ matrix.node-version }}
33+
uses: actions/setup-node@v2
34+
with:
35+
node-version: ${{ matrix.node-version }}
36+
- run: npm ci
37+
- run: npm test
38+
39+
build:
40+
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
node-version: [15.x]
44+
steps:
45+
- uses: actions/checkout@v2
46+
- name: Use Node.js ${{ matrix.node-version }}
47+
uses: actions/setup-node@v2
48+
with:
49+
node-version: ${{ matrix.node-version }}
50+
- run: npm ci
51+
- run: npm run build:ts

.github/workflows/coverage.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: coverage
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
- '*/*'
7+
8+
jobs:
9+
coverage:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [14.x]
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- run: npm ci
21+
- run: npm run check:test
22+
- uses: codecov/codecov-action@v1
23+
with:
24+
token: ${{ secrets.CODECOV_TOKEN }}
25+
file: ./coverage/lcov.info

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: publish
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [15.x]
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- run: npm ci
19+
- run: npm run build:ts
20+
- uses: JS-DevTools/npm-publish@v1
21+
with:
22+
token: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
# Dist folders
2-
lib
1+
# folders
2+
lib/
3+
node_modules/
34

4-
# Logs & Reports
5+
# logs
56
logs
6-
coverage
7-
*.log
87
yarn-debug.log*
98
yarn-error.log*
9+
*.log
10+
11+
# reports
12+
coverage
1013

11-
# Runtime data
14+
# local data
1215
pids
16+
tsconfig.tsbuildinfo
17+
.env
18+
.eslintcache
19+
.yarn-integrity
1320
*.pid
1421
*.seed
1522
*.pid.lock
16-
tsconfig.tsbuildinfo
17-
18-
# Dependency directories
19-
node_modules/
20-
21-
# Optional eslint cache
22-
.eslintcache
23-
24-
# Output of 'npm pack'
2523
*.tgz
2624

27-
# Yarn Integrity file
28-
.yarn-integrity
29-
30-
# dotenv environment variables file
31-
.env
25+
# docs
26+
CHANGELOG.md

.huskyrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"hooks": {
3-
"pre-commit": "npm run util:pre-commit",
4-
"commit-msg": "npm run util:commit-msg"
5-
}
2+
"hooks": {
3+
"pre-commit": "npm run util:pre-commit",
4+
"commit-msg": "npm run util:commit-msg"
5+
}
66
}

.mergify.yml

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

0 commit comments

Comments
 (0)