1
0
Fork 0
Browse Source

chore: Install Husky with Node v16

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
main
André Jaenisch 1 year ago
parent
commit
3ff89045ba
Signed by: ryuno-ki
GPG Key ID: 5A668E771F1ED854
  1. 4
      .husky/pre-commit
  2. 1
      .nvmrc
  3. 35
      package-lock.json
  4. 11
      package.json

4
.husky/pre-commit

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run pre-commit

1
.nvmrc

@ -0,0 +1 @@
16.0.0

35
package-lock.json generated

@ -0,0 +1,35 @@
{
"name": "js13kgames-2021",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.1.0",
"license": "GPL-3.0-or-later",
"devDependencies": {
"husky": "7.0.1"
}
},
"node_modules/husky": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/husky/-/husky-7.0.1.tgz",
"integrity": "sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==",
"dev": true,
"bin": {
"husky": "lib/bin.js"
},
"engines": {
"node": ">=12"
}
}
},
"dependencies": {
"husky": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/husky/-/husky-7.0.1.tgz",
"integrity": "sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==",
"dev": true
}
}
}

11
package.json

@ -4,13 +4,22 @@
"description": "The topic in 2021 is SPACE",
"main": "index.js",
"scripts": {
"prepare": "husky install",
"pre-commit": "npm run test",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "ryunoki@jaenis.ch:ryuno-ki/js13kgames-2021.git"
},
"engines": {
"node": "16.0.0",
"npm": "7.10.0"
},
"keywords": [],
"author": "André Jaenisch",
"license": "GPL-3.0-or-later"
"license": "GPL-3.0-or-later",
"devDependencies": {
"husky": "7.0.1"
}
}

Loading…
Cancel
Save