diff --git a/cli/package.json b/cli/package.json
index 58f77c1..8f9f6b8 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -31,14 +31,20 @@
"koa-router": "^7.4.0",
"koa-static": "^5.0.0",
"open": "^0.0.5",
+ "opencollective-postinstall": "^2.0.2",
"serve-handler": "^5.0.8"
},
"scripts": {
"build-site": "cd .. && cross-env REACT_APP_GIT_PROVIDER=cli yarn build && rm -fr cli/site/ && cp -r build/ cli/site/",
"build": "yarn build-site",
- "ls-package": "npm pack && tar -xvzf *.tgz && rm -rf package *.tgz"
+ "ls-package": "npm pack && tar -xvzf *.tgz && rm -rf package *.tgz",
+ "postinstall": "opencollective-postinstall"
},
"devDependencies": {
"cross-env": "^5.2.0"
+ },
+ "collective": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/git-history"
}
}
diff --git a/cli/yarn.lock b/cli/yarn.lock
index ba3ce01..0c3d9e2 100644
--- a/cli/yarn.lock
+++ b/cli/yarn.lock
@@ -427,6 +427,11 @@ open@^0.0.5:
resolved "https://registry.yarnpkg.com/open/-/open-0.0.5.tgz#42c3e18ec95466b6bf0dc42f3a2945c3f0cad8fc"
integrity sha1-QsPhjslUZra/DcQvOilFw/DK2Pw=
+opencollective-postinstall@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz#5657f1bede69b6e33a45939b061eb53d3c6c3a89"
+ integrity sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==
+
p-finally@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
diff --git a/package.json b/package.json
index 34d2653..943efba 100644
--- a/package.json
+++ b/package.json
@@ -15,8 +15,6 @@
"react-scripts": "2.1.3",
"react-swipeable": "^4.3.2",
"react-use": "^5.2.2",
- "workerize-loader": "^1.0.4",
- "opencollective": "^1.0.3",
"rebound": "^0.1.0",
"workerize-loader": "^1.0.4"
},
@@ -55,4 +53,4 @@
"type": "opencollective",
"url": "https://opencollective.com/git-history"
}
-}
\ No newline at end of file
+}
diff --git a/readme.md b/readme.md
index 72fe38f..fb0340c 100755
--- a/readme.md
+++ b/readme.md
@@ -5,8 +5,6 @@
# [Git History](https://githistory.xyz)
-[](#backers)
-[](#sponsors)
Quickly browse the history of any GitHub ([GitLab and Bitbucket
coming soon](https://github.com/pomber/git-history/issues/14)) file:
@@ -21,9 +19,9 @@ coming soon](https://github.com/pomber/git-history/issues/14)) file:
## Browser Extensions
-You can also add an `Open in Git History` button to GitHub with the [Chrome](https://chrome.google.com/webstore/detail/github-history-browser-ex/laghnmifffncfonaoffcndocllegejnf) and [Firefox](https://addons.mozilla.org/firefox/addon/github-history/) extensions.
+You can also add an `Open in Git History` button to GitHub, GitLab and Bitbucket with the [Chrome](https://chrome.google.com/webstore/detail/github-history-browser-ex/laghnmifffncfonaoffcndocllegejnf) and [Firefox](https://addons.mozilla.org/firefox/addon/github-history/) extensions.
-Or you can use this bookmarklet([?](https://en.wikipedia.org/wiki/Bookmarklet)):
+Or you can use a bookmarklet.
```javascript
javascript: (function() {
@@ -38,6 +36,8 @@ javascript: (function() {
})();
```
+
+
## [CLI](https://github.com/pomber/git-history/tree/master/cli)
There's also a command line version of Git History that works with any local git repo:
@@ -55,18 +55,11 @@ $ npm install -g git-file-history
$ git-file-history path/to/file.ext
```
-## Credits
-
-Based on these amazing projects:
-
-- [Prism](https://github.com/PrismJS/prism) by [Lea Verou](https://twitter.com/leaverou)
-- [jsdiff](https://github.com/kpdecker/jsdiff) by [Kevin Decker](https://twitter.com/kpdecker)
-- [Night Owl](https://github.com/sdras/night-owl-vscode-theme) by [Sarah Drasner](https://twitter.com/sarah_edo)
+### Sponsors
-### Contributors
+Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/git-history#sponsor)]
-This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
-
+
### Backers
@@ -74,16 +67,19 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
-### Sponsors
+### Contributors
-Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/git-history#sponsor)]
+This project exists thanks to all the people who contribute.
+
-
+### Credits
+Based on these amazing projects:
+- [Prism](https://github.com/PrismJS/prism) by [Lea Verou](https://twitter.com/leaverou)
+- [jsdiff](https://github.com/kpdecker/jsdiff) by [Kevin Decker](https://twitter.com/kpdecker)
+- [Night Owl](https://github.com/sdras/night-owl-vscode-theme) by [Sarah Drasner](https://twitter.com/sarah_edo)
## License
MIT
-
-This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with GitHub, or any of its subsidiaries or its affiliates.
diff --git a/yarn.lock b/yarn.lock
index b92b449..ed3215b 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8461,6 +8461,11 @@ onetime@^2.0.0:
dependencies:
mimic-fn "^1.0.0"
+opencollective-postinstall@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz#5657f1bede69b6e33a45939b061eb53d3c6c3a89"
+ integrity sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==
+
opn@5.4.0, opn@^5.1.0, opn@^5.4.0:
version "5.4.0"
resolved "https://registry.yarnpkg.com/opn/-/opn-5.4.0.tgz#cb545e7aab78562beb11aa3bfabc7042e1761035"