Skip to content

Commit 1d6f61c

Browse files
Upgrade(npm): Update npm dependencies and GitHub Actions
1 parent 6f70dc3 commit 1d6f61c

12 files changed

+4754
-6239
lines changed

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
commit-message:
8+
prefix: "Upgrade(npm):"
9+
reviewers:
10+
- "evelynhathaway"
11+
assignees:
12+
- "evelynhathaway"

.github/workflows/nodejs.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
CI: true
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Use Node.js 10.x
13-
uses: actions/setup-node@v1
12+
- name: Use Node.js 16.x
13+
uses: actions/setup-node@v2
1414
with:
15-
node-version: 10.x
15+
node-version: 16.x
1616

1717
# From: https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
1818
- name: Cache node modules
19-
uses: actions/cache@v1
19+
uses: actions/cache@v2
2020
env:
2121
cache-name: cache-node-modules
2222
with:
@@ -29,27 +29,29 @@ jobs:
2929
3030
- name: Install Dependencies
3131
run: npm ci
32+
3233
- name: Lint
3334
run: npm run lint
35+
3436
- name: Test
3537
run: npm test
3638

3739
release:
38-
if: github.ref == 'refs/heads/master'
40+
if: github.ref == 'refs/heads/main'
3941
needs: testing
4042
runs-on: ubuntu-latest
4143
env:
4244
CI: true
4345
steps:
4446
- uses: actions/checkout@v2
45-
- name: Use Node.js 10.x
46-
uses: actions/setup-node@v1
47+
- name: Use Node.js 16.x
48+
uses: actions/setup-node@v2
4749
with:
48-
node-version: 10.x
50+
node-version: 16.x
4951

5052
# From: https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
5153
- name: Cache node modules
52-
uses: actions/cache@v1
54+
uses: actions/cache@v2
5355
env:
5456
cache-name: cache-node-modules
5557
with:

.gitignore

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1+
# Node
12
node_modules/
2-
lib/
3-
coverage/
3+
4+
# IDE
45
.idea/
5-
.vscode/
6+
.vscode/*
7+
!.vscode/settings.json
8+
!.vscode/tasks.json
9+
!.vscode/launch.json
10+
!.vscode/extensions.json
11+
12+
# Built
13+
/dist
14+
/lib
15+
16+
# Testing
17+
/coverage
18+
19+
# Other
20+
.cache
21+
/*.log
22+
*.lock
23+
.DS_Store

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.vscode/extensions.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"streetsidesoftware.code-spell-checker",
4+
"dbaeumer.vscode-eslint",
5+
"davidanson.vscode-markdownlint",
6+
"pflannery.vscode-versionlens",
7+
"wallabyjs.wallaby-vscode",
8+
"redhat.vscode-yaml",
9+
],
10+
}

.vscode/settings.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"eslint.format.enable": true,
4+
"eslint.lintTask.enable": true,
5+
"files.associations": {
6+
".env": "shellscript",
7+
".env.*": "shellscript",
8+
},
9+
"files.eol": "\n",
10+
"files.insertFinalNewline": true,
11+
"files.trimFinalNewlines": true,
12+
"files.trimTrailingWhitespace": true,
13+
"html.format.wrapAttributes": "force-expand-multiline",
14+
"javascript.format.insertSpaceAfterConstructor": true,
15+
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
16+
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
17+
"javascript.format.semicolons": "insert",
18+
"javascript.preferences.importModuleSpecifierEnding": "minimal",
19+
"javascript.preferences.quoteStyle": "double",
20+
"typescript.format.insertSpaceAfterConstructor": true,
21+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
22+
"typescript.format.insertSpaceAfterTypeAssertion": true,
23+
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
24+
"typescript.format.semicolons": "insert",
25+
"typescript.tsdk": "node_modules\\typescript\\lib",
26+
"versionlens.suggestions.showOnStartup": true,
27+
"[javascript]": {
28+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
29+
},
30+
"[javascriptreact]": {
31+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
32+
},
33+
"[typescript]": {
34+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
35+
},
36+
"[typescriptreact]": {
37+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
38+
},
39+
}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Evelyn Hathaway, Corbin Crutchley
3+
Copyright (c) Evelyn Hathaway, Corbin Crutchley
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)