Skip to content

Commit

Permalink
Merge pull request #22 from ceoss/upgrade-npm-github
Browse files Browse the repository at this point in the history
  • Loading branch information
evelynhathaway authored May 17, 2021
2 parents 6f70dc3 + 2869c67 commit 9723d8b
Show file tree
Hide file tree
Showing 12 changed files with 4,792 additions and 6,220 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "Upgrade(npm):"
reviewers:
- "evelynhathaway"
assignees:
- "evelynhathaway"
20 changes: 11 additions & 9 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
CI: true
steps:
- uses: actions/checkout@v2
- name: Use Node.js 10.x
uses: actions/setup-node@v1
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 10.x
node-version: 16.x

# From: https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
- name: Cache node modules
uses: actions/cache@v1
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
Expand All @@ -29,27 +29,29 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm test

release:
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
needs: testing
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v2
- name: Use Node.js 10.x
uses: actions/setup-node@v1
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 10.x
node-version: 16.x

# From: https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
- name: Cache node modules
uses: actions/cache@v1
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
Expand Down
24 changes: 21 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Node
node_modules/
lib/
coverage/

# IDE
.idea/
.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# Built
/dist
/lib

# Testing
/coverage

# Other
.cache
/*.log
*.lock
.DS_Store
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"streetsidesoftware.code-spell-checker",
"dbaeumer.vscode-eslint",
"davidanson.vscode-markdownlint",
"pflannery.vscode-versionlens",
"wallabyjs.wallaby-vscode",
"redhat.vscode-yaml",
],
}
39 changes: 39 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"editor.formatOnSave": true,
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"files.associations": {
".env": "shellscript",
".env.*": "shellscript",
},
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"html.format.wrapAttributes": "force-expand-multiline",
"javascript.format.insertSpaceAfterConstructor": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.format.semicolons": "insert",
"javascript.preferences.importModuleSpecifierEnding": "minimal",
"javascript.preferences.quoteStyle": "double",
"typescript.format.insertSpaceAfterConstructor": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"typescript.format.insertSpaceAfterTypeAssertion": true,
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
"typescript.format.semicolons": "insert",
"typescript.tsdk": "node_modules\\typescript\\lib",
"versionlens.suggestions.showOnStartup": true,
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Evelyn Hathaway, Corbin Crutchley
Copyright (c) Evelyn Hathaway, Corbin Crutchley

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

0 comments on commit 9723d8b

Please sign in to comment.