Skip to content

Commit

Permalink
chang js codebase to typescript (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytakahashi authored Feb 11, 2021
1 parent 54bf28f commit 92ef0ce
Show file tree
Hide file tree
Showing 16 changed files with 3,395 additions and 585 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:10.16.0
- image: circleci/node:14

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand Down
14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
env: {
mocha: true
},
extends: 'standard-with-typescript',
ignorePatterns: ['dist/*'],
parserOptions: {
ecmaVersion: 2020,
project: './tsconfig.test.json'
},
rules: {
'@typescript-eslint/consistent-type-definitions': ['error', 'type']
}
}
3 changes: 2 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v1
Expand All @@ -20,6 +20,7 @@ jobs:
- name: npm install, build, and test
run: |
npm ci
npm run lint
npm run test
env:
CI: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ typings/
.node-version

types
dist
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extension": ["js", "ts"],
"spec": "test/**/*",
"require": "ts-node/register"
}
Loading

0 comments on commit 92ef0ce

Please sign in to comment.