Skip to content

Commit 13ab57b

Browse files
merge: release 0.9.0 (#172)
2 parents 124d3c6 + a500794 commit 13ab57b

File tree

161 files changed

+11073
-5266
lines changed

Some content is hidden

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

161 files changed

+11073
-5266
lines changed

.eslintrc.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
parser: '@typescript-eslint/parser'
2+
plugins:
3+
- '@typescript-eslint'
4+
parserOptions:
5+
ecmaVersion: 2018
6+
sourceType: module
7+
project:
8+
- ./tsconfig.json
9+
- ./tsconfig.spec.json
10+
extends:
11+
- 'plugin:@typescript-eslint/recommended'
12+
- 'plugin:@typescript-eslint/recommended-requiring-type-checking'
13+
- 'plugin:jest/recommended'
14+
- 'prettier'
15+
- 'prettier/@typescript-eslint'
16+
rules:
17+
'@typescript-eslint/explicit-member-accessibility': off
18+
'@typescript-eslint/no-angle-bracket-type-assertion': off
19+
'@typescript-eslint/no-parameter-properties': off
20+
'@typescript-eslint/explicit-function-return-type': off
21+
'@typescript-eslint/member-delimiter-style': off
22+
'@typescript-eslint/no-inferrable-types': off
23+
'@typescript-eslint/no-explicit-any': off
24+
'@typescript-eslint/member-ordering': 'error'
25+
'@typescript-eslint/no-unused-vars':
26+
- 'error'
27+
- args: 'none'
28+
# TODO: Remove these and fixed issues once we merged all the current PRs.
29+
'@typescript-eslint/ban-types': off
30+
'@typescript-eslint/no-unsafe-return': off
31+
'@typescript-eslint/no-unsafe-assignment': off
32+
'@typescript-eslint/no-unsafe-call': off
33+
'@typescript-eslint/no-unsafe-member-access': off
34+
'@typescript-eslint/explicit-module-boundary-types': off

.gitbook.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root: ./docs
2+
​structure:
3+
readme: README.md
4+
summary: SUMMARY.md​

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "10:00"
8+
timezone: Europe/Budapest
9+
open-pull-requests-limit: 5
10+
versioning-strategy: increase
11+
commit-message:
12+
prefix: build
13+
include: scope

.github/semantic.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
titleAndCommits: true
2+
allowMergeCommits: false
3+
scopes:
4+
- deps
5+
- deps-dev
6+
types:
7+
- feat
8+
- fix
9+
- docs
10+
- style
11+
- refactor
12+
- perf
13+
- test
14+
- build
15+
- ci
16+
- chore
17+
- revert
18+
- merge
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependabot auto-merge
2+
on:
3+
pull_request
4+
jobs:
5+
dependabot:
6+
runs-on: ubuntu-latest
7+
if: github.actor == 'dependabot[bot]'
8+
steps:
9+
- name: 'Auto approve PR by Dependabot'
10+
uses: hmarr/[email protected]
11+
with:
12+
github-token: "${{ secrets.TYPESTACK_BOT_TOKEN }}"
13+
- name: 'Comment merge command'
14+
uses: actions/github-script@v3
15+
with:
16+
github-token: ${{secrets.TYPESTACK_BOT_TOKEN }}
17+
script: |
18+
await github.issues.createComment({
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
issue_number: context.issue.number,
22+
body: '@dependabot squash and merge'
23+
})
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
name: CD
3+
on:
4+
release:
5+
types: [created]
6+
jobs:
7+
publish:
8+
name: Publish to NPM
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
registry-url: https://registry.npmjs.org
15+
- run: npm ci --ignore-scripts
16+
- run: npm run prettier:check
17+
- run: npm run lint:check
18+
- run: npm run test:ci
19+
- run: npm run build:es2015
20+
- run: npm run build:esm5
21+
- run: npm run build:cjs
22+
- run: npm run build:umd
23+
- run: npm run build:types
24+
- run: cp LICENSE build/LICENSE
25+
- run: cp README.md build/README.md
26+
- run: jq 'del(.devDependencies) | del(.scripts)' package.json > build/package.json
27+
- run: npm publish ./build
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
checks:
5+
name: Linters
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v1
9+
- uses: actions/setup-node@v1
10+
- run: npm ci --ignore-scripts
11+
- run: npm run prettier:check
12+
- run: npm run lint:check
13+
tests:
14+
name: Tests
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: ['10.x', '12.x', '14.x']
19+
fail-fast: false
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Setting up Node.js (v${{ matrix.node-version }}.x)
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: node --version
27+
name: Check Node.js version
28+
- run: npm ci --ignore-scripts
29+
- run: npm run test:ci
30+
- run: npm install codecov -g
31+
if: ${{ matrix.node-version == '14.x' }}
32+
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }}
33+
if: ${{ matrix.node-version == '14.x' }}
34+
build:
35+
name: Build
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v1
39+
- uses: actions/setup-node@v1
40+
- run: npm ci --ignore-scripts
41+
- run: npm run build:es2015
42+
- run: npm run build:esm5
43+
- run: npm run build:cjs
44+
- run: npm run build:umd
45+
- run: npm run build:types
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Lock inactive threads'
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
jobs:
6+
lock:
7+
name: Lock closed issues
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: dessant/lock-threads@v2
11+
with:
12+
github-token: ${{ github.token }}
13+
issue-lock-inactive-days: 30
14+
pr-lock-inactive-days: 30
15+
issue-lock-comment: >
16+
This issue has been automatically locked since there
17+
has not been any recent activity after it was closed.
18+
Please open a new issue for related bugs.
19+
pr-lock-comment: >
20+
This pull request has been automatically locked since there
21+
has not been any recent activity after it was closed.
22+
Please open a new issue for related bugs.

.gitignore

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
1-
.vscode/
2-
.idea/
1+
# Log files
2+
logs
3+
*.log
4+
*.tmp
5+
*.tmp.*
6+
log.txt
7+
npm-debug.log*
8+
9+
# Testing output
10+
lib-cov/**
11+
coverage/**
12+
13+
# Environment files
14+
.env
15+
16+
# Dependency directories
17+
node_modules
18+
19+
# MacOS related files
20+
*.DS_Store
21+
.AppleDouble
22+
.LSOverride
23+
._*
24+
UserInterfaceState.xcuserstate
25+
26+
# Windows related files
27+
Thumbs.db
28+
Desktop.ini
29+
$RECYCLE.BIN/
30+
31+
# IDE - Sublime
32+
*.sublime-project
33+
*.sublime-workspace
34+
35+
# IDE - VSCode
36+
.vscode/**
37+
!.vscode/tasks.json
38+
!.vscode/launch.json
39+
40+
# IDE - IntelliJ
41+
.idea
42+
43+
# Compilation output folders
44+
dist/
345
build/
4-
node_modules/
5-
npm-debug.log
46+
tmp/
47+
out-tsc/
48+
temp
49+
50+
# Files for playing around locally
51+
playground.ts
52+
playground.js

.prettierrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
printWidth: 120
2+
tabWidth: 2
3+
useTabs: false
4+
semi: true
5+
singleQuote: true
6+
trailingComma: es5
7+
bracketSpacing: true
8+
arrowParens: avoid

0 commit comments

Comments
 (0)