Skip to content

Commit 588a012

Browse files
authored
merge: release v0.1.0 (#527)
1 parent 19f7452 commit 588a012

File tree

127 files changed

+13894
-5984
lines changed

Some content is hidden

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

127 files changed

+13894
-5984
lines changed

.eslintrc.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
rules:
16+
'@typescript-eslint/explicit-member-accessibility': off
17+
'@typescript-eslint/no-angle-bracket-type-assertion': off
18+
'@typescript-eslint/no-parameter-properties': off
19+
'@typescript-eslint/explicit-function-return-type': off
20+
'@typescript-eslint/member-delimiter-style': off
21+
'@typescript-eslint/no-inferrable-types': off
22+
'@typescript-eslint/no-explicit-any': off
23+
'@typescript-eslint/member-ordering': 'error'
24+
# TODO: Remove these and fixed issues once we merged all the current PRs.
25+
'@typescript-eslint/ban-types': off
26+
'@typescript-eslint/no-unsafe-return': off
27+
'@typescript-eslint/no-unsafe-assignment': off
28+
'@typescript-eslint/no-unsafe-call': off
29+
'@typescript-eslint/no-unsafe-member-access': off
30+
'@typescript-eslint/explicit-module-boundary-types': off

.github/dependabot.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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
14+
ignore:
15+
- dependency-name: "husky"
16+
- dependency-name: "socket.io"
17+
- dependency-name: "socket.io-client"

.github/semantic.yml

+18
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
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+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CD
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
name: Publish to NPM
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 'lts/*'
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
20+
- run: cp LICENSE build/LICENSE
21+
- run: cp README.md build/README.md
22+
- run: jq 'del(.devDependencies) | del(.scripts)' package.json > build/package.json
23+
- run: npm publish ./build
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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@v3
9+
- uses: actions/setup-node@v3
10+
with:
11+
node-version: 'lts/*'
12+
- run: npm ci --ignore-scripts
13+
- run: npm run prettier:check
14+
- run: npm run lint:check
15+
tests:
16+
name: Tests
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node-version: ['lts/*', 'current']
21+
fail-fast: false
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Setting up Node.js (v${{ matrix.node-version }}.x)
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- run: npm ci --ignore-scripts
29+
- run: npm run test:ci
30+
- run: npm install codecov -g
31+
if: ${{ matrix.node-version == 'current' }}
32+
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
33+
if: ${{ matrix.node-version == 'current' }}
34+
build:
35+
name: Build
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-node@v3
40+
with:
41+
node-version: 'lts/*'
42+
- run: npm ci --ignore-scripts
43+
- run: npm run build
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

+19-18
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Logs
1+
# Log files
22
logs
33
*.log
44
*.tmp
55
*.tmp.*
66
log.txt
77
npm-debug.log*
88

9-
# Testing
10-
lib-cov
11-
coverage
9+
# Testing output
10+
lib-cov/**
11+
coverage/**
1212

1313
# Environment files
1414
.env
@@ -28,24 +28,25 @@ Thumbs.db
2828
Desktop.ini
2929
$RECYCLE.BIN/
3030

31-
# Editors
32-
.idea
33-
.vscode
31+
# IDE - Sublime
3432
*.sublime-project
3533
*.sublime-workspace
36-
.project
37-
.classpath
38-
.c9/
39-
*.launch
40-
.settings/
4134

4235
# IDE - VSCode
43-
.vscode/*
36+
.vscode/**
4437
!.vscode/tasks.json
4538
!.vscode/launch.json
4639

47-
# compiled output
48-
dist
49-
build
50-
tmp
51-
out-tsc
40+
# IDE - IntelliJ
41+
.idea
42+
43+
# Compilation output folders
44+
dist/
45+
build/
46+
tmp/
47+
out-tsc/
48+
temp
49+
50+
# Files for playing around locally
51+
playground.ts
52+
playground.js

.prettierrc.yml

+8
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

.travis.yml

-4
This file was deleted.

0 commit comments

Comments
 (0)