Skip to content

Commit 8d017bb

Browse files
committed
2 parents e962fa4 + effc4ce commit 8d017bb

Some content is hidden

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

64 files changed

+5859
-8580
lines changed

.eslintignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
node_modules/
2-
dist/
3-
.prettierrc.js
4-
.eslintrc.js
5-
env.d.ts
1+
coverage
2+
dist
3+
node_modules

.eslintrc

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
{
2-
"extends": [
3-
"eslint:recommended",
4-
"plugin:@typescript-eslint/recommended",
5-
"eslint-config-prettier"
6-
],
7-
"settings": {
8-
"import/resolver": {
9-
"node": {
10-
"paths": ["src"],
11-
"extensions": [".js", ".ts"]
12-
}
2+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "eslint-config-prettier"],
3+
"settings": {
4+
"import/resolver": {
5+
"node": {
6+
"paths": ["src", "test"],
7+
"extensions": [".ts"]
8+
}
9+
}
10+
},
11+
"env": {
12+
"browser": true,
13+
"node": true
1314
}
14-
},
15-
"env": {
16-
"browser": true,
17-
"node": true
18-
},
19-
// TODO - Remove after TS release
20-
"ignorePatterns": ["main.ts", "base64-string.ts"]
2115
}

.github/workflows/node.js.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Tests
5+
6+
on:
7+
push:
8+
branches: ["master"]
9+
pull_request:
10+
branches: ["master"]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [18.x, 20.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: "npm"
28+
- run: npm ci
29+
# - run: npm i --no-package-lock # alternatively run `npm update` after installs
30+
- run: npm run build --if-present
31+
- run: npm run test

0 commit comments

Comments
 (0)