-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to TypeScript/Upgrade API (#19)
- Loading branch information
Showing
20 changed files
with
1,261 additions
and
1,351 deletions.
There are no files selected for viewing
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,2 +1,3 @@ | ||
node_modules/ | ||
dist/ | ||
lib |
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,17 +1,18 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
sourceType: "module", | ||
}, | ||
env: { | ||
browser: false, | ||
commonjs: true, | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: ["airbnb-base", "prettier"], | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
}, | ||
plugins: ["@typescript-eslint"], | ||
globals: { | ||
describe: true, | ||
it: true, | ||
expect: true, | ||
}, | ||
rules: {}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@master | ||
|
||
- name: Use latest version of Node.j | ||
uses: actions/setup-node@master | ||
with: | ||
node-version: "*" | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn cache | ||
uses: actions/cache@v2.1.4 | ||
id: yarn-cache #`steps.yarn-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Compile to JS | ||
run: "yarn tsc" | ||
|
||
- name: Run lint | ||
run: yarn eslint . | ||
|
||
test: | ||
name: Unit Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@master | ||
|
||
- name: Use latest version of Node.j | ||
uses: actions/setup-node@master | ||
with: | ||
node-version: "*" | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn cache | ||
uses: actions/cache@v2.1.4 | ||
id: yarn-cache #`steps.yarn-cache.outputs.cache-hit != 'true' | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: $s{{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Compile to JS | ||
run: "yarn tsc" | ||
|
||
- name: Run Test | ||
run: CI=true yarn mocha |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,2 @@ | ||
node_modules | ||
*.log | ||
.changelog | ||
build | ||
dist | ||
draft | ||
scripts | ||
react | ||
/lib |
Oops, something went wrong.