Skip to content

Commit

Permalink
Open Collective integration
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jun 26, 2019
1 parent f7029a1 commit 1255096
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +1,2 @@
<!-- Love husky? Please consider supporting our collective:
👉 https://opencollective.com/husky/donate -->
37 changes: 30 additions & 7 deletions README.md
Expand Up @@ -2,15 +2,11 @@

> Git hooks made easy
[![](https://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/husky) [![Mac/Linux Build Status](https://img.shields.io/travis/typicode/husky.svg?label=Mac%20OSX%20%26%20Linux)](https://travis-ci.org/typicode/husky) [![Windows Build status](https://img.shields.io/appveyor/ci/typicode/husky/master.svg?label=Windows)](https://ci.appveyor.com/project/typicode/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) [![Mac/Linux Build Status](https://img.shields.io/travis/typicode/husky.svg?label=Mac%20OSX%20%26%20Linux)](https://travis-ci.org/typicode/husky) [![Windows Build status](https://img.shields.io/appveyor/ci/typicode/husky/master.svg?label=Windows)](https://ci.appveyor.com/project/typicode/husky)

Husky can prevent bad `git commit`, `git push` and more 🐶 _woof!_

## Sponsors

[__Support Husky on Open Collective and have your company logo here (starts from $100/m)__](https://www.opencollective.com/husky)

Visit [thanks.typicode.com](https://thanks.typicode.com) 🌵 to view all the people supporting husky.
Visit [thanks.typicode.com](https://thanks.typicode.com) to view all the people supporting husky.

## Install

Expand Down Expand Up @@ -91,7 +87,7 @@ To view the full list of changes, please see the [CHANGELOG](https://github.com/

## Used by

* [jQuery](https://github.com/jquery/jquery)
* [webpack](https://github.com/webpack/webpack)
* [babel](https://github.com/babel/babel)
* [create-react-app](https://github.com/facebookincubator/create-react-app)
* [Next.js](https://github.com/zeit/next.js)
Expand All @@ -107,6 +103,33 @@ To view the full list of changes, please see the [CHANGELOG](https://github.com/
* [please-upgrade-node](https://github.com/typicode/please-upgrade-node) - Show a message to upgrade Node instead of a stacktrace in your CLIs
* [pinst](https://github.com/typicode/pinst) - dev only postinstall hook

## Financial Contributors

Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/husky/contribute)]

### Individuals

<a href="https://opencollective.com/husky"><img src="https://opencollective.com/husky/individuals.svg?width=890"></a>

### Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/husky/contribute)]

<a href="https://opencollective.com/husky/organization/0/website"><img src="https://opencollective.com/husky/organization/0/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/1/website"><img src="https://opencollective.com/husky/organization/1/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/2/website"><img src="https://opencollective.com/husky/organization/2/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/3/website"><img src="https://opencollective.com/husky/organization/3/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/4/website"><img src="https://opencollective.com/husky/organization/4/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/5/website"><img src="https://opencollective.com/husky/organization/5/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/6/website"><img src="https://opencollective.com/husky/organization/6/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/7/website"><img src="https://opencollective.com/husky/organization/7/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/8/website"><img src="https://opencollective.com/husky/organization/8/avatar.svg"></a>
<a href="https://opencollective.com/husky/organization/9/website"><img src="https://opencollective.com/husky/organization/9/avatar.svg"></a>

### Patreon

People and companies supporting via Patreon: [thanks](https://thanks.typicode.com)

## License

MIT
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -20,7 +20,8 @@
"prepublishOnly": "npm run test && npm run build && pinst --enable && pkg-ok",
"postpublish": "pinst --disable",
"lint": "eslint . --ext .js,.ts --ignore-path .gitignore",
"fix": "npm run lint -- --fix"
"fix": "npm run lint -- --fix",
"postinstall": "opencollective-postinstall || true"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -56,7 +57,8 @@
"please-upgrade-node": "^3.1.1",
"read-pkg": "^5.1.1",
"run-node": "^1.0.0",
"slash": "^3.0.0"
"slash": "^3.0.0",
"opencollective-postinstall": "^2.0.2"
},
"devDependencies": {
"@types/cosmiconfig": "^5.0.3",
Expand Down Expand Up @@ -95,5 +97,9 @@
"json",
"node"
]
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/husky"
}
}
7 changes: 0 additions & 7 deletions src/installer/index.ts
Expand Up @@ -168,13 +168,6 @@ export function install(
createHooks(hooks, script)

console.log(`husky > Done`)
console.log(
'husky > Like husky? You can support the project on Open Collective:'
)
console.log(
'husky > \x1b[36m%s\x1b[0m 🐕',
'https://www.opencollective.com/husky'
)
}

export function uninstall(gitDir: string, huskyDir: string): void {
Expand Down

0 comments on commit 1255096

Please sign in to comment.