-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
10,971 additions
and
9,001 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
parser: '@typescript-eslint/parser' | ||
plugins: | ||
- '@typescript-eslint' | ||
parserOptions: | ||
ecmaVersion: 2018 | ||
sourceType: module | ||
project: | ||
- ./tsconfig.json | ||
- ./tsconfig.spec.json | ||
extends: | ||
- 'plugin:@typescript-eslint/recommended' | ||
- 'plugin:@typescript-eslint/recommended-requiring-type-checking' | ||
- 'plugin:jest/recommended' | ||
- 'prettier' | ||
- 'prettier/@typescript-eslint' | ||
rules: | ||
'@typescript-eslint/explicit-member-accessibility': off | ||
'@typescript-eslint/no-angle-bracket-type-assertion': off | ||
'@typescript-eslint/no-parameter-properties': off | ||
'@typescript-eslint/explicit-function-return-type': off | ||
'@typescript-eslint/member-delimiter-style': off | ||
'@typescript-eslint/no-inferrable-types': off | ||
'@typescript-eslint/no-explicit-any': off | ||
'@typescript-eslint/member-ordering': 'error' | ||
# TODO: Remove these and fixed issues once we merged all the current PRs. | ||
'@typescript-eslint/ban-types': off | ||
'@typescript-eslint/no-unsafe-return': off | ||
'@typescript-eslint/no-unsafe-assignment': off | ||
'@typescript-eslint/no-unsafe-call': off | ||
'@typescript-eslint/no-unsafe-member-access': off | ||
'@typescript-eslint/explicit-module-boundary-types': off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CD | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
publish: | ||
name: Publish to NPM | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
registry-url: https://registry.npmjs.org | ||
- run: npm ci --ignore-scripts | ||
- run: npm run prettier:check | ||
- run: npm run lint:check | ||
- run: npm run test:ci | ||
- run: npm run build | ||
- run: cp LICENSE build/LICENSE | ||
- run: cp README.md build/README.md | ||
- run: jq 'del(.devDependencies) | del(.scripts)' package.json > build/package.json | ||
- run: npm publish ./build | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | ||
on: push | ||
jobs: | ||
checks: | ||
name: Linters | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- run: npm ci --ignore-scripts | ||
- run: npm run prettier:check | ||
- run: npm run lint:check | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [8.x, 10.x, 12.x, 14.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setting up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
- run: npm ci --ignore-scripts | ||
- run: npm run test:ci | ||
- run: npm install codecov -g | ||
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} | ||
build: | ||
name: Build | ||
needs: [tests, checks] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- run: npm ci --ignore-scripts | ||
- run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,52 @@ | ||
build/ | ||
node_modules/ | ||
coverage/ | ||
npm-debug.log | ||
# Log files | ||
logs | ||
*.log | ||
*.tmp | ||
*.tmp.* | ||
log.txt | ||
npm-debug.log* | ||
|
||
# Testing output | ||
lib-cov/** | ||
coverage/** | ||
|
||
# Environment files | ||
.env | ||
|
||
# Dependency directories | ||
node_modules | ||
|
||
# MacOS related files | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
._* | ||
UserInterfaceState.xcuserstate | ||
|
||
# Windows related files | ||
Thumbs.db | ||
Desktop.ini | ||
$RECYCLE.BIN/ | ||
|
||
# IDE - Sublime | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/** | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
|
||
# IDE - IntelliJ | ||
.idea | ||
.vscode | ||
|
||
# Compilation output folders | ||
dist/ | ||
build/ | ||
tmp/ | ||
out-tsc/ | ||
temp | ||
|
||
# Files for playing around locally | ||
playground.ts | ||
playground.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
printWidth: 120 | ||
tabWidth: 2 | ||
useTabs: false | ||
semi: true | ||
singleQuote: true | ||
trailingComma: es5 | ||
bracketSpacing: true | ||
arrowParens: avoid |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.