Skip to content

Commit

Permalink
BREAKING: Require Node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed May 11, 2023
1 parent 59783f7 commit 1089b26
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 20 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Linting

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main

permissions:
contents: read

jobs:
lint:
uses: voxpelli/ghatemplates/.github/workflows/lint.yml@main
22 changes: 12 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Ignoring a .gitignore in /templates enables a user to add a .gitignore in there that ignores specific templates it
# doesn't want to commit without that meaning that it will have uncommitted changes always.
/templates/.gitignore

# Of course we don't want to commit our dependencies
# Basic ones
/coverage
/coverage-ts
/node_modules
/.env
/.nyc_output

# We're a library, so no yarn.lock either
# We're a library, so please, no lock files
/package-lock.json
/yarn.lock

# These files we should skip as well
.DS_Store
npm-debug.log
yarn-error.log
# Library specific ones

# Ignoring a .gitignore in /templates enables a user to add a .gitignore in there that ignores specific templates it
# doesn't want to commit without that meaning that it will have uncommitted changes always.
/templates/.gitignore
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"request": "^2.75.0"
},
"engines": {
"node": ">=10.0.0"
"node": ">=16.0.0"
},
"repository": {
"type": "git",
Expand All @@ -31,18 +31,22 @@
"webmention-testpinger": "bin/cli"
},
"scripts": {
"dependency-check": "JS_FILES=\"lib/*.js\" && dependency-check . $JS_FILES && dependency-check . $JS_FILES --unused --no-dev",
"test": "installed-check -e -i eslint && eslint . && npm run dependency-check"
"check:dependency-check": "dependency-check 'lib/*.js' --no-dev",
"check:installed-check": "installed-check",
"check:lint": "eslint --report-unused-disable-directives .",
"check": "run-p check:*",
"test": "run-s check"
},
"devDependencies": {
"dependency-check": "3.4.1",
"dependency-check": "^4.1.0",
"eslint": "6.8.0",
"eslint-config-semistandard": "14.0.0",
"eslint-config-standard": "13.0.1",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-node": "9.2.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1",
"installed-check": "2.2.0"
"installed-check": "^7.0.0",
"npm-run-all2": "^6.0.5"
}
}

0 comments on commit 1089b26

Please sign in to comment.