From 41b4be50fcd9e7ec5a21f33d9aabfdd4acc32ea6 Mon Sep 17 00:00:00 2001 From: Jess Date: Mon, 15 Jul 2019 06:42:59 -0700 Subject: [PATCH 1/3] Added financial contributors to the README --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 517f346..27dd55e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

[![Build Status](https://travis-ci.org/naptha/tesseract.js.svg?branch=master)](https://travis-ci.org/naptha/tesseract.js) -[![npm version](https://badge.fury.io/js/tesseract.js.svg)](https://badge.fury.io/js/tesseract.js) +[![Financial Contributors on Open Collective](https://opencollective.com/tesseractjs/all/badge.svg?label=financial+contributors)](https://opencollective.com/tesseractjs) [![npm version](https://badge.fury.io/js/tesseract.js.svg)](https://badge.fury.io/js/tesseract.js) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/naptha/tesseract.js/graphs/commit-activity) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Code Style](https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb)](https://github.com/airbnb/javascript) @@ -115,3 +115,33 @@ To build the compiled static files just execute the following: npm run build ``` This will output the files into the `dist` directory. + +## Contributors + +### Code Contributors + +This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. + + +### Financial Contributors + +Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/tesseractjs/contribute)] + +#### Individuals + + + +#### Organizations + +Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/tesseractjs/contribute)] + + + + + + + + + + + From a55f68c3be22b5629d2bdc736f74002982b32e17 Mon Sep 17 00:00:00 2001 From: Jess Date: Mon, 15 Jul 2019 06:42:59 -0700 Subject: [PATCH 2/3] Added call to donate after npm install (optional) --- package.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5487ca8..41a4d25 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "test:browser-tpl": "mocha-headless-chrome -a incognito -a no-sandbox -a disable-setuid-sandbox -t 300000", "test:browser:detect": "npm run test:browser-tpl -- -f ./tests/detect.test.html", "test:browser:recognize": "npm run test:browser-tpl -- -f ./tests/recognize.test.html", - "lint": "eslint src" + "lint": "eslint src", + "postinstall": "opencollective-postinstall || true" }, "browser": { "./src/node/index.js": "./src/browser/index.js" @@ -54,6 +55,7 @@ "check-types": "^7.4.0", "is-url": "1.2.2", "node-fetch": "^2.3.0", + "opencollective-postinstall": "^2.0.2", "resolve-url": "^0.2.1", "tesseract.js-core": "^2.0.0-beta.10", "tesseract.js-utils": "^1.0.0-beta.8" @@ -65,5 +67,9 @@ "bugs": { "url": "https://github.com/naptha/tesseract.js/issues" }, - "homepage": "https://github.com/naptha/tesseract.js" -} + "homepage": "https://github.com/naptha/tesseract.js", + "collective": { + "type": "opencollective", + "url": "https://opencollective.com/tesseractjs" + } +} \ No newline at end of file From f3786d8e2b6a0889e842a0f3fa77b9122ed1993d Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Tue, 16 Jul 2019 20:03:12 +0800 Subject: [PATCH 3/3] Fix CI issue --- package-lock.json | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 9d38961..453bb39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7002,6 +7002,11 @@ "mimic-fn": "^1.0.0" } }, + "opencollective-postinstall": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz", + "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==" + }, "optionator": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", diff --git a/package.json b/package.json index 41a4d25..cbcf179 100644 --- a/package.json +++ b/package.json @@ -72,4 +72,4 @@ "type": "opencollective", "url": "https://opencollective.com/tesseractjs" } -} \ No newline at end of file +}