Bläddra i källkod

Script to automatically add contributors to the README.md (#772)

* First swing at contributors

* Switch to tag style

* Working now
Kevin van Zonneveld 7 år sedan
förälder
incheckning
f42f32ff19
4 ändrade filer med 88 tillägg och 2 borttagningar
  1. 48 0
      README.md
  2. 1 0
      env.example.sh
  3. 35 1
      package-lock.json
  4. 4 1
      package.json

+ 48 - 0
README.md

@@ -173,6 +173,54 @@ And you’ll need [`uppy-server`](https://github.com/transloadit/uppy-server) if
  - Contributor’s guide in [`website/src/docs/contributing.md`](website/src/docs/contributing.md)
  - Changelog to track our release progress (we aim to roll out a release every month): [`CHANGELOG.md`](CHANGELOG.md)
 
+<!--contributors-->
+## Contributors
+
+[<img alt="amitport" src="https://avatars1.githubusercontent.com/u/1131991?v=4&s=117" width="117">](https://github.com/amitport) |[<img alt="rhymes" src="https://avatars3.githubusercontent.com/u/146201?v=4&s=117" width="117">](https://github.com/rhymes) |[<img alt="raineluntta" src="https://avatars0.githubusercontent.com/u/14221637?v=4&s=117" width="117">](https://github.com/raineluntta) |[<img alt="kiloreux" src="https://avatars0.githubusercontent.com/u/6282557?v=4&s=117" width="117">](https://github.com/kiloreux) |[<img alt="franckl" src="https://avatars0.githubusercontent.com/u/3875803?v=4&s=117" width="117">](https://github.com/franckl) |[<img alt="c0b41" src="https://avatars1.githubusercontent.com/u/2834954?v=4&s=117" width="117">](https://github.com/c0b41) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[amitport](https://github.com/amitport) |[rhymes](https://github.com/rhymes) |[raineluntta](https://github.com/raineluntta) |[kiloreux](https://github.com/kiloreux) |[franckl](https://github.com/franckl) |[c0b41](https://github.com/c0b41) |
+
+[<img alt="avalla" src="https://avatars1.githubusercontent.com/u/986614?v=4&s=117" width="117">](https://github.com/avalla) |[<img alt="xhocquet" src="https://avatars2.githubusercontent.com/u/8116516?v=4&s=117" width="117">](https://github.com/xhocquet) |[<img alt="eltercero" src="https://avatars0.githubusercontent.com/u/545235?v=4&s=117" width="117">](https://github.com/eltercero) |[<img alt="tomsaleeba" src="https://avatars0.githubusercontent.com/u/1773838?v=4&s=117" width="117">](https://github.com/tomsaleeba) |[<img alt="sergei-zelinsky" src="https://avatars2.githubusercontent.com/u/19428086?v=4&s=117" width="117">](https://github.com/sergei-zelinsky) |[<img alt="luarmr" src="https://avatars3.githubusercontent.com/u/817416?v=4&s=117" width="117">](https://github.com/luarmr) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[avalla](https://github.com/avalla) |[xhocquet](https://github.com/xhocquet) |[eltercero](https://github.com/eltercero) |[tomsaleeba](https://github.com/tomsaleeba) |[sergei-zelinsky](https://github.com/sergei-zelinsky) |[luarmr](https://github.com/luarmr) |
+
+[<img alt="phillipalexander" src="https://avatars0.githubusercontent.com/u/1577682?v=4&s=117" width="117">](https://github.com/phillipalexander) |[<img alt="pauln" src="https://avatars3.githubusercontent.com/u/574359?v=4&s=117" width="117">](https://github.com/pauln) |[<img alt="mnafees" src="https://avatars1.githubusercontent.com/u/1763885?v=4&s=117" width="117">](https://github.com/mnafees) |[<img alt="mperrando" src="https://avatars2.githubusercontent.com/u/525572?v=4&s=117" width="117">](https://github.com/mperrando) |[<img alt="lucaperret" src="https://avatars1.githubusercontent.com/u/1887122?v=4&s=117" width="117">](https://github.com/lucaperret) |[<img alt="jessica-coursera" src="https://avatars1.githubusercontent.com/u/35155465?v=4&s=117" width="117">](https://github.com/jessica-coursera) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[phillipalexander](https://github.com/phillipalexander) |[pauln](https://github.com/pauln) |[mnafees](https://github.com/mnafees) |[mperrando](https://github.com/mperrando) |[lucaperret](https://github.com/lucaperret) |[jessica-coursera](https://github.com/jessica-coursera) |
+
+[<img alt="jcjmcclean" src="https://avatars3.githubusercontent.com/u/1822574?v=4&s=117" width="117">](https://github.com/jcjmcclean) |[<img alt="jagoPG" src="https://avatars3.githubusercontent.com/u/16286114?v=4&s=117" width="117">](https://github.com/jagoPG) |[<img alt="Cloud887" src="https://avatars1.githubusercontent.com/u/27247160?v=4&s=117" width="117">](https://github.com/Cloud887) |[<img alt="gjungb" src="https://avatars0.githubusercontent.com/u/3391068?v=4&s=117" width="117">](https://github.com/gjungb) |[<img alt="lowsprofile" src="https://avatars1.githubusercontent.com/u/11029687?v=4&s=117" width="117">](https://github.com/lowsprofile) |[<img alt="mrboomer" src="https://avatars0.githubusercontent.com/u/5942912?v=4&s=117" width="117">](https://github.com/mrboomer) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[jcjmcclean](https://github.com/jcjmcclean) |[jagoPG](https://github.com/jagoPG) |[Cloud887](https://github.com/Cloud887) |[gjungb](https://github.com/gjungb) |[lowsprofile](https://github.com/lowsprofile) |[mrboomer](https://github.com/mrboomer) |
+
+[<img alt="danmichaelo" src="https://avatars1.githubusercontent.com/u/434495?v=4&s=117" width="117">](https://github.com/danmichaelo) |[<img alt="csprance" src="https://avatars0.githubusercontent.com/u/7902617?v=4&s=117" width="117">](https://github.com/csprance) |[<img alt="chao" src="https://avatars2.githubusercontent.com/u/55872?v=4&s=117" width="117">](https://github.com/chao) |[<img alt="bducharme" src="https://avatars2.githubusercontent.com/u/4173569?v=4&s=117" width="117">](https://github.com/bducharme) |[<img alt="azeemba" src="https://avatars0.githubusercontent.com/u/2160795?v=4&s=117" width="117">](https://github.com/azeemba) |[<img alt="ajschmidt8" src="https://avatars0.githubusercontent.com/u/7400326?v=4&s=117" width="117">](https://github.com/ajschmidt8) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[danmichaelo](https://github.com/danmichaelo) |[csprance](https://github.com/csprance) |[chao](https://github.com/chao) |[bducharme](https://github.com/bducharme) |[azeemba](https://github.com/azeemba) |[ajschmidt8](https://github.com/ajschmidt8) |
+
+[<img alt="radarhere" src="https://avatars2.githubusercontent.com/u/3112309?v=4&s=117" width="117">](https://github.com/radarhere) |[<img alt="functino" src="https://avatars0.githubusercontent.com/u/415498?v=4&s=117" width="117">](https://github.com/functino) |[<img alt="muhammadInam" src="https://avatars1.githubusercontent.com/u/7801708?v=4&s=117" width="117">](https://github.com/muhammadInam) |[<img alt="zhuangya" src="https://avatars2.githubusercontent.com/u/499038?v=4&s=117" width="117">](https://github.com/zhuangya) |[<img alt="ThomasG77" src="https://avatars2.githubusercontent.com/u/642120?v=4&s=117" width="117">](https://github.com/ThomasG77) |[<img alt="rosenfeld" src="https://avatars1.githubusercontent.com/u/32246?v=4&s=117" width="117">](https://github.com/rosenfeld) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[radarhere](https://github.com/radarhere) |[functino](https://github.com/functino) |[muhammadInam](https://github.com/muhammadInam) |[zhuangya](https://github.com/zhuangya) |[ThomasG77](https://github.com/ThomasG77) |[rosenfeld](https://github.com/rosenfeld) |
+
+[<img alt="richmeij" src="https://avatars0.githubusercontent.com/u/9741858?v=4&s=117" width="117">](https://github.com/richmeij) |[<img alt="martiuslim" src="https://avatars2.githubusercontent.com/u/17944339?v=4&s=117" width="117">](https://github.com/martiuslim) |[<img alt="Martin005" src="https://avatars0.githubusercontent.com/u/10096404?v=4&s=117" width="117">](https://github.com/Martin005) |[<img alt="Burkes" src="https://avatars2.githubusercontent.com/u/9220052?v=4&s=117" width="117">](https://github.com/Burkes) |[<img alt="btrice" src="https://avatars2.githubusercontent.com/u/4358225?v=4&s=117" width="117">](https://github.com/btrice) |[<img alt="fortrieb" src="https://avatars0.githubusercontent.com/u/4126707?v=4&s=117" width="117">](https://github.com/fortrieb) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[richmeij](https://github.com/richmeij) |[martiuslim](https://github.com/martiuslim) |[Martin005](https://github.com/Martin005) |[Burkes](https://github.com/Burkes) |[btrice](https://github.com/btrice) |[fortrieb](https://github.com/fortrieb) |
+
+[<img alt="tim-kos" src="https://avatars1.githubusercontent.com/u/15005?v=4&s=117" width="117">](https://github.com/tim-kos) |[<img alt="sunil-shrestha" src="https://avatars3.githubusercontent.com/u/2129058?v=4&s=117" width="117">](https://github.com/sunil-shrestha) |[<img alt="phitranphitranphitran" src="https://avatars2.githubusercontent.com/u/14257077?v=4&s=117" width="117">](https://github.com/phitranphitranphitran) |[<img alt="ogtfaber" src="https://avatars2.githubusercontent.com/u/320955?v=4&s=117" width="117">](https://github.com/ogtfaber) |[<img alt="johnunclesam" src="https://avatars3.githubusercontent.com/u/21275217?v=4&s=117" width="117">](https://github.com/johnunclesam) |[<img alt="gavboulton" src="https://avatars0.githubusercontent.com/u/3900826?v=4&s=117" width="117">](https://github.com/gavboulton) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[tim-kos](https://github.com/tim-kos) |[sunil-shrestha](https://github.com/sunil-shrestha) |[phitranphitranphitran](https://github.com/phitranphitranphitran) |[ogtfaber](https://github.com/ogtfaber) |[johnunclesam](https://github.com/johnunclesam) |[gavboulton](https://github.com/gavboulton) |
+
+[<img alt="bertho-zero" src="https://avatars0.githubusercontent.com/u/8525267?v=4&s=117" width="117">](https://github.com/bertho-zero) |[<img alt="janko-m" src="https://avatars2.githubusercontent.com/u/795488?v=4&s=117" width="117">](https://github.com/janko-m) |[<img alt="nqst" src="https://avatars0.githubusercontent.com/u/375537?v=4&s=117" width="117">](https://github.com/nqst) |[<img alt="oliverpool" src="https://avatars0.githubusercontent.com/u/3864879?v=4&s=117" width="117">](https://github.com/oliverpool) |[<img alt="wilkoklak" src="https://avatars1.githubusercontent.com/u/17553085?v=4&s=117" width="117">](https://github.com/wilkoklak) |[<img alt="AJvanLoon" src="https://avatars0.githubusercontent.com/u/15716628?v=4&s=117" width="117">](https://github.com/AJvanLoon) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[bertho-zero](https://github.com/bertho-zero) |[janko-m](https://github.com/janko-m) |[nqst](https://github.com/nqst) |[oliverpool](https://github.com/oliverpool) |[wilkoklak](https://github.com/wilkoklak) |[AJvanLoon](https://github.com/AJvanLoon) |
+
+[<img alt="richardwillars" src="https://avatars3.githubusercontent.com/u/291004?v=4&s=117" width="117">](https://github.com/richardwillars) |[<img alt="sadovnychyi" src="https://avatars3.githubusercontent.com/u/193864?v=4&s=117" width="117">](https://github.com/sadovnychyi) |[<img alt="ifedapoolarewaju" src="https://avatars1.githubusercontent.com/u/8383781?v=4&s=117" width="117">](https://github.com/ifedapoolarewaju) |[<img alt="hedgerh" src="https://avatars2.githubusercontent.com/u/2524280?v=4&s=117" width="117">](https://github.com/hedgerh) |[<img alt="kvz" src="https://avatars2.githubusercontent.com/u/26752?v=4&s=117" width="117">](https://github.com/kvz) |[<img alt="goto-bus-stop" src="https://avatars1.githubusercontent.com/u/1006268?v=4&s=117" width="117">](https://github.com/goto-bus-stop) |
+:---: |:---: |:---: |:---: |:---: |:---: |
+[richardwillars](https://github.com/richardwillars) |[sadovnychyi](https://github.com/sadovnychyi) |[ifedapoolarewaju](https://github.com/ifedapoolarewaju) |[hedgerh](https://github.com/hedgerh) |[kvz](https://github.com/kvz) |[goto-bus-stop](https://github.com/goto-bus-stop) |
+
+[<img alt="arturi" src="https://avatars2.githubusercontent.com/u/1199054?v=4&s=117" width="117">](https://github.com/arturi) |
+:---: |
+[arturi](https://github.com/arturi) |
+<!--/contributors-->
+
 ## License
 
 [The MIT License](LICENSE).

+ 1 - 0
env.example.sh

@@ -10,6 +10,7 @@ export UPPYSERVER_INSTAGRAM_KEY="***"
 export UPPYSERVER_INSTAGRAM_SECRET="***"
 export EDGLY_KEY="***"
 export EDGLY_SECRET="***"
+export GITHUB_TOKEN="***"
 
 # Let's not set this by default, because that will make acceptance tests Always run on Saucelabs
 ## export SAUCE_ACCESS_KEY="***"

+ 35 - 1
package-lock.json

@@ -7602,6 +7602,33 @@
         }
       }
     },
+    "github-contributors-list": {
+      "version": "1.2.3",
+      "resolved": "https://registry.npmjs.org/github-contributors-list/-/github-contributors-list-1.2.3.tgz",
+      "integrity": "sha512-yifb1ausL4zUb4kNfOAMaVtBleJzPKiiKWOpg1XauUcv3hfWUMQ2jVNBkDw/8eZiT3cJ4mL2i4ncp1TtnQv4zA==",
+      "dev": true,
+      "requires": {
+        "marked": "0.3.19",
+        "merge": "1.2.0",
+        "minimist": "0.0.8",
+        "q": "1.4.1",
+        "sprintf-js": "0.0.7"
+      },
+      "dependencies": {
+        "q": {
+          "version": "1.4.1",
+          "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz",
+          "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=",
+          "dev": true
+        },
+        "sprintf-js": {
+          "version": "0.0.7",
+          "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-0.0.7.tgz",
+          "integrity": "sha1-8A14/RYBMICbSrNAwDEPqnElPb0=",
+          "dev": true
+        }
+      }
+    },
     "glob": {
       "version": "7.1.2",
       "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
@@ -11553,6 +11580,12 @@
       "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=",
       "dev": true
     },
+    "marked": {
+      "version": "0.3.19",
+      "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz",
+      "integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==",
+      "dev": true
+    },
     "math-clamp-x": {
       "version": "1.1.0",
       "resolved": "https://registry.npmjs.org/math-clamp-x/-/math-clamp-x-1.1.0.tgz",
@@ -16746,7 +16779,8 @@
     "typescript": {
       "version": "2.8.1",
       "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.8.1.tgz",
-      "integrity": "sha512-Ao/f6d/4EPLq0YwzsQz8iXflezpTkQzqAyenTiw4kCUGr1uPiFLC3+fZ+gMZz6eeI/qdRUqvC+HxIJzUAzEFdg=="
+      "integrity": "sha512-Ao/f6d/4EPLq0YwzsQz8iXflezpTkQzqAyenTiw4kCUGr1uPiFLC3+fZ+gMZz6eeI/qdRUqvC+HxIJzUAzEFdg==",
+      "dev": true
     },
     "ua-parser-js": {
       "version": "0.7.12",

+ 4 - 1
package.json

@@ -73,6 +73,7 @@
     "eslint-plugin-standard": "^3.0.1",
     "exorcist": "^1.0.0",
     "fakefile": "0.0.9",
+    "github-contributors-list": "1.2.3",
     "glob": "^7.1.2",
     "isomorphic-fetch": "2.2.1",
     "jest": "^22.0.6",
@@ -167,6 +168,8 @@
     "web:update:frontpage:code:sample": "cd website && ./node_modules/.bin/hexo generate && cp -f public/frontpage-code-sample.html ./themes/uppy/layout/partials/frontpage-code-sample.html",
     "web": "npm-run-all web:clean web:build",
     "uploadcdn": "bin/upload-to-cdn.sh",
-    "prepublishOnly": "npm-run-all clean build"
+    "prepublishOnly": "npm-run-all clean build",
+    "contributors": "githubcontrib --owner transloadit --repo uppy --cols 6 $([ \"${GITHUB_TOKEN:-}\" == \"\" ] && echo \"\" || echo \"--authToken ${GITHUB_TOKEN}\") --showlogin true --sortOrder",
+    "contributors:save": "replace-x -m '<!--contributors-->[\\s\\S]+<!--/contributors-->' \"<!--contributors-->\n## Contributors\n\n$(npm run --silent contributors)\n<!--/contributors-->\" README.md"
   }
 }