husky
Advanced tools
Comparing version 5.0.9 to 5.1.0
@@ -12,2 +12,3 @@ #!/usr/bin/env node | ||
const path_1 = __importDefault(require("path")); | ||
const init_1 = require("./commands/init"); | ||
function readPkg() { | ||
@@ -24,2 +25,3 @@ return JSON.parse(fs_1.default.readFileSync(path_1.default.join(__dirname, '../package.json'), 'utf-8')); | ||
husky init | ||
husky install [dir] (default: .husky) | ||
@@ -30,2 +32,3 @@ husky uninstall | ||
Examples | ||
husky init | ||
@@ -41,2 +44,6 @@ husky install | ||
switch (cmd) { | ||
case 'init': { | ||
init_1.init(); | ||
break; | ||
} | ||
case 'install': { | ||
@@ -43,0 +50,0 @@ if (args.length > 2) { |
@@ -22,3 +22,3 @@ "use strict"; | ||
fs_1.default.writeFileSync(file, data, 'utf-8'); | ||
console.log(`created ${dir}${path_1.default.sep}${path_1.default.basename(file)}`); | ||
console.log(`husky - created ${dir}${path_1.default.sep}${path_1.default.basename(file)}`); | ||
} | ||
@@ -25,0 +25,0 @@ function add(file, cmd) { |
{ | ||
"name": "husky", | ||
"version": "5.0.9", | ||
"version": "5.1.0", | ||
"description": "Git hooks made easy", | ||
"bin": "lib/bin.js", | ||
"bin": { | ||
"husky": "lib/bin.js" | ||
}, | ||
"files": [ | ||
@@ -14,3 +16,2 @@ "/lib", | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -21,11 +22,11 @@ "@commitlint/cli": "^11.0.0", | ||
"@tsconfig/node10": "^1.0.7", | ||
"@types/node": "^14.14.12", | ||
"@typescript-eslint/eslint-plugin": "^4.9.1", | ||
"@typescript-eslint/parser": "^4.9.1", | ||
"@types/node": "^14.14.25", | ||
"@typescript-eslint/eslint-plugin": "^4.15.0", | ||
"@typescript-eslint/parser": "^4.15.0", | ||
"del-cli": "^3.0.1", | ||
"docsify-cli": "^4.4.2", | ||
"eslint": "^7.15.0", | ||
"eslint-config-prettier": "^7.0.0", | ||
"eslint-plugin-prettier": "^3.2.0", | ||
"pinst": "^2.1.1", | ||
"eslint": "^7.19.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"pinst": "^2.1.4", | ||
"prettier": "^2.2.1", | ||
@@ -36,3 +37,3 @@ "type-fest": "^0.20.2", | ||
"scripts": { | ||
"prebuild": "del lib", | ||
"prebuild": "del-cli lib", | ||
"build": "tsc", | ||
@@ -47,6 +48,6 @@ "serve": "docsify serve docs", | ||
"postversion": "git push && git push --tags && npm publish --tag next", | ||
"prepublish": "pinst --disable", | ||
"prepublishOnly": "pinst --disable", | ||
"postpublish": "pinst --enable", | ||
"pretest": "npm run build --silent && npm pack --silent", | ||
"test": "sh ./test/default.sh && sh ./test/sub-dir.sh && sh ./test/config-dir.sh && sh ./test/not-git-dir.sh", | ||
"test": "sh ./test/init.sh && sh ./test/default.sh && sh ./test/sub-dir.sh && sh ./test/config-dir.sh && sh ./test/not-git-dir.sh", | ||
"posttest": "rm husky-*.tgz", | ||
@@ -53,0 +54,0 @@ "commit": "commit" |
# husky | ||
[![Financial Contributors on Open Collective](https://opencollective.com/husky/all/badge.svg?label=financial+contributors)](https://opencollective.com/husky) [![](https://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/husky) ![Node.js CI](https://github.com/typicode/husky/workflows/Node.js%20CI/badge.svg) | ||
[![Financial Contributors on Open Collective](https://opencollective.com/husky/all/badge.svg?label=financial+contributors)](https://opencollective.com/husky) [![](https://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/husky) [![Node.js CI](https://github.com/typicode/husky/workflows/Node.js%20CI/badge.svg)](https://github.com/typicode/husky/actions) | ||
@@ -12,6 +12,4 @@ > Git hooks made easy | ||
__👋 Read husky 5 announcement and see what's new:__ | ||
__👋 [Read husky 5 announcement and see what's new](https://dev.to/typicode/what-s-new-in-husky-5-32g5)__ | ||
https://dev.to/typicode/what-s-new-in-husky-5-32g5 | ||
--- | ||
@@ -21,3 +19,3 @@ | ||
To use this new version at work, you can become a sponsor on [GitHub Sponsors](https://github.com/sponsors/typicode) or [Open Collective](https://opencollective.com/husky). | ||
To use this new version at work, you can become a sponsor on [GitHub Sponsors](https://github.com/sponsors/typicode) or [Open Collective](https://opencollective.com/husky) (monthly or yearly donations are supported). | ||
@@ -36,4 +34,2 @@ If you can't sponsor Husky, that's okay, [husky v4](https://github.com/typicode/husky/tree/master) is free to use in any project. During the early access, v4 will continue to receive maintainance updates. | ||
Does your company use Husky? Ask your manager or marketing team if your company would be interested in supporting this project. | ||
<a href="https://opencollective.com/husky/tiers/sponsor/0/website"><img src="https://opencollective.com/husky/tiers/sponsor/0/avatar.svg" height="60px"></a> | ||
@@ -40,0 +36,0 @@ <a href="https://opencollective.com/husky/tiers/sponsor/1/website"><img src="https://opencollective.com/husky/tiers/sponsor/1/avatar.svg" height="60px"></a> |
25490
12
172
89
4