Skip to content

Commit 4b22ec4

Browse files
authored
Merge pull request #9 from 2Toad/jp-issue-8
Fix #8: Upgrade dependencies and build process
2 parents 4b46233 + d62b010 commit 4b22ec4

22 files changed

Lines changed: 6726 additions & 1427 deletions

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,4 @@ end_of_line = lf
1212
[*.md]
1313
max_line_length = off
1414
trim_trailing_whitespace = false
15-
16-
[*.txt]
17-
max_line_length = off
1815
insert_final_newline = false

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
tests

.eslintrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"env": {
3+
"node": true
4+
},
5+
"extends": ["airbnb-base", "airbnb-typescript/base", "plugin:security/recommended", "plugin:prettier/recommended"],
6+
"plugins": ["security", "prettier"],
7+
"parserOptions": {
8+
"ecmaVersion": 2018,
9+
"project": "./tsconfig.json"
10+
},
11+
"rules": {
12+
"no-console": "off",
13+
"func-names": "off",
14+
"no-underscore-dangle": "off",
15+
"consistent-return": "off",
16+
"security/detect-object-injection": "off",
17+
"import/no-named-as-default-member": "off",
18+
"import/no-cycle": "off",
19+
"import/prefer-default-export": "off",
20+
"class-methods-use-this": "off"
21+
}
22+
}

.github/workflows/nodejs.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ on: [push]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
98

109
strategy:
1110
matrix:
12-
node-version: [10.x, 12.x, 14.x]
11+
node-version: [12.x, 14.x, lts/*]
1312

1413
steps:
15-
- uses: actions/checkout@v1
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- name: npm install, build, and test
21-
run: |
22-
npm ci
23-
npm run build --if-present
24-
npm test
25-
env:
26-
CI: true
14+
- uses: actions/checkout@v3
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: npm install, build, and test
20+
run: |
21+
npm ci
22+
npm run lint
23+
npm run build
24+
npm test
25+
env:
26+
CI: true

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# dependencies
55
/node_modules
66

7+
# testing
8+
.eslintcache
9+
710
# IDE - VSCode
811
.vscode/*
912
!.vscode/settings.json

.npmignore

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
tsconfig.json
1+
.github
22
src
3-
.travis.yml
3+
tests
4+
.editorconfig
5+
.eslintcache
6+
.eslintignore
7+
.eslintrc.json
8+
.gitignore
9+
.nvmrc
10+
.prettierignore
11+
.prettierrc.json
12+
tsconfig.json

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.15.0

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode
2+
dist
3+
node_modules
4+
*.md

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"printWidth": 120
3+
}

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)