metapak-sencrop
Advanced tools
Comparing version 7.12.0 to 7.13.0
@@ -0,1 +1,10 @@ | ||
# [7.13.0](https://github.com/sencrop/metapak-sencrop/compare/v7.12.0...v7.13.0) (2021-06-03) | ||
### Features | ||
* **main:** update husky to v6 ([2b6ee1d](https://github.com/sencrop/metapak-sencrop/commit/2b6ee1d04cfc0838c48fbdd34ed5745d726c7782)) | ||
# [7.12.0](https://github.com/sencrop/metapak-sencrop/compare/v7.11.1...v7.12.0) (2021-03-02) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "metapak-sencrop", | ||
"version": "7.12.0", | ||
"version": "7.13.0", | ||
"description": "A `metapak` plugin for Sencrop projects", | ||
@@ -27,2 +27,4 @@ "main": "index.js", | ||
"metapak": "metapak", | ||
"pre-commit-lint": "npm run --silent checkStaged && lint-staged", | ||
"prepare": "husky install", | ||
"prettier": "prettier --write src/**/*.js", | ||
@@ -64,3 +66,3 @@ "preversion": "npm t && npm run lint && npm run metapak -- -s", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"husky": "^4.3.0", | ||
"husky": "^6.0.0", | ||
"jest": "^24.9.0", | ||
@@ -150,3 +152,3 @@ "lint-staged": "^9.4.2", | ||
], | ||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
"message": "chore(release): ${nextRelease.version} [skip ci]" | ||
} | ||
@@ -153,0 +155,0 @@ ], |
@@ -74,6 +74,4 @@ 'use strict'; | ||
// Add husky hooks for lint staged | ||
packageConf.husky = packageConf.husky || {}; | ||
packageConf.husky.hooks = packageConf.husky.hooks || {}; | ||
packageConf.husky.hooks['pre-commit'] = ensureScript( | ||
packageConf.husky.hooks['pre-commit'], | ||
packageConf.scripts['pre-commit-lint'] = ensureScript( | ||
packageConf.scripts['pre-commit-lint'], | ||
'lint-staged', | ||
@@ -80,0 +78,0 @@ ); |
@@ -18,7 +18,5 @@ 'use strict'; | ||
// Add husky hooks for arch | ||
packageConf.husky = packageConf.husky || {}; | ||
packageConf.husky.hooks = packageConf.husky.hooks || {}; | ||
packageConf.husky.hooks['pre-commit'] = ensureScript( | ||
packageConf.husky.hooks['pre-commit'], | ||
// Add pre-commit-lint | ||
packageConf.scripts['pre-commit-lint'] = ensureScript( | ||
packageConf.scripts['pre-commit-lint'], | ||
'npm run architecture && (git add ARCHITECTURE.md || exit 1)', | ||
@@ -25,0 +23,0 @@ ); |
@@ -18,7 +18,5 @@ 'use strict'; | ||
// Add husky hooks for doc | ||
packageConf.husky = packageConf.husky || {}; | ||
packageConf.husky.hooks = packageConf.husky.hooks || {}; | ||
packageConf.husky.hooks['commit-msg'] = ensureScript( | ||
packageConf.husky.hooks['commit-msg'], | ||
// Add pre-commit-lint | ||
packageConf.scripts['pre-commit-lint'] = ensureScript( | ||
packageConf.scripts['pre-commit-lint'], | ||
'npm run doc && git add API.md', | ||
@@ -25,0 +23,0 @@ ); |
@@ -13,2 +13,4 @@ 'use strict'; | ||
const HUSKY_SCRIPT = 'husky install'; | ||
module.exports = packageConf => { | ||
@@ -50,3 +52,3 @@ packageConf.license = 'SEE LICENSE IN LICENSE.md'; | ||
packageConf.devDependencies = packageConf.devDependencies || {}; | ||
packageConf.devDependencies['husky'] = '^4.3.0'; | ||
packageConf.devDependencies['husky'] = '^6.0.0'; | ||
packageConf.devDependencies['@commitlint/cli'] = '^11.0.0'; | ||
@@ -57,10 +59,2 @@ packageConf.devDependencies['@commitlint/config-conventional'] = '^11.0.0'; | ||
// Add husky hooks for commitlint | ||
packageConf.husky = packageConf.husky || {}; | ||
packageConf.husky.hooks = packageConf.husky.hooks || {}; | ||
packageConf.husky.hooks['commit-msg'] = ensureScript( | ||
packageConf.husky.hooks['commit-msg'], | ||
'commitlint -E HUSKY_GIT_PARAMS', | ||
); | ||
// Add husky hooks to test if there is staged file | ||
@@ -72,6 +66,11 @@ packageConf.scripts.checkStaged = ensureScript( | ||
packageConf.husky = packageConf.husky || {}; | ||
packageConf.husky.hooks = packageConf.husky.hooks || {}; | ||
packageConf.husky.hooks['pre-commit'] = ensureScript( | ||
packageConf.husky.hooks['pre-commit'], | ||
// Add husky prepare script | ||
packageConf.scripts.prepare = ensureScript( | ||
packageConf.scripts.prepare, | ||
HUSKY_SCRIPT, | ||
); | ||
// Add pre-commit-lint | ||
packageConf.scripts['pre-commit-lint'] = ensureScript( | ||
packageConf.scripts['pre-commit-lint'], | ||
'npm run --silent checkStaged', | ||
@@ -78,0 +77,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57
52666
632