diff --git a/.mailmap b/.mailmap index 528a26775e..9200a76f02 100644 --- a/.mailmap +++ b/.mailmap @@ -1,12 +1,30 @@ +# see https://www.git-scm.com/docs/git-check-mailmap for formatting info TJ Holowaychuk -Travis Jeffery -Travis Jeffery Dr. Travis Jeffery -Christopher Hiller Christopher Hiller -David da Silva Contín David da Silva -David da Silva Contín David da Silva -David da Silva Contín -Ariel Mashraki Ariel Mashraki -Ariel Mashraki Ariel Mashraki -Forbes Lindesay Forbes Lindesay -Ben Bradley Ben Bradley <[ben.bradley@cigna.com|mailto:ben.bradley@cigna.com]> -Glen Mailer Glen Mailer +Travis Jeffery +Travis Jeffery Dr. Travis Jeffery +Christopher Hiller +David da Silva Contín David da Silva +David da Silva Contín David da Silva +David da Silva Contín +Ariel Mashraki +Ariel Mashraki +Forbes Lindesay +Ben Bradley <[ben.bradley@cigna.com|mailto:ben.bradley@cigna.com]> +Glen Mailer +38elements <38elements@users.noreply.github.com> +Andreas Lind Petersen Andreas Lind +Ben Harris +Can Oztokmak +Will Langstroth +Sulabh Bista +Rustem Mustafin +Rico Sta. Cruz +Pete Hawkins +Raynos <=> +Raynos Raynos (Jake Verbaten) +Markus Tacker +Long Ho +László Bácsi Laszlo Bacsi +Eli Skeggs +Domenic Denicola domenic +Michael Schoonmaker diff --git a/.travis.yml b/.travis.yml index 409cabca85..fac2e3b17f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -60,3 +60,4 @@ addons: cache: directories: - ~/.npm + - node_modules diff --git a/package-scripts.js b/package-scripts.js index aee5463dbe..866aaade52 100644 --- a/package-scripts.js +++ b/package-scripts.js @@ -232,6 +232,10 @@ module.exports = { watchDocs: { script: 'nps prewatchDocs && bundle exec jekyll serve --source ./docs --destination ./docs/_site --config ./docs/_config.yml --safe --drafts --watch', description: 'Watch documentation for changes' + }, + updateContributors: { + script: 'node scripts/update-contributors.js', + description: 'Update list of contributors in package.json' } } }; diff --git a/package.json b/package.json index 486667129a..c887441759 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mocha", - "version": "5.0.5", + "version": "5.0.4", "description": "simple, flexible, fun test framework", "keywords": [ "mocha", @@ -11,283 +11,430 @@ ], "author": "TJ Holowaychuk ", "contributors": [ - "aaroncrows (https://github.com/aaroncrows)", - "Aaron Hamid (https://github.com/ahamid)", - "Aaron Heckmann (https://github.com/aheckmann)", - "Adam Crabtree (CrabDude's alias) (https://github.com/CrabBot)", - "Adam Gruber (https://github.com/adamgruber)", - "Adrian Ludwig (https://github.com/adrian-ludwig)", - "Ainthe Kitchen (https://github.com/ainthek)", - "ajaykodali (https://github.com/ajaykodali)", - "Alex Bainter (https://github.com/metalex9)", - "Alex Early (https://github.com/aearly)", - "Alex Pham (https://github.com/thedark1337)", - "amsul (https://github.com/amsul)", - "Andreas Brekken (https://github.com/abrkn)", - "Andreas Lind (https://github.com/papandreou)", - "Andrew Krawchyk (https://github.com/akrawchyk)", - "Andrew Miller (https://github.com/vnikiti)", - "Andrew Nesbitt (https://github.com/andrew)", - "Andrey Popp <8mayday@gmail.com> (https://github.com/andreypopp)", - "Andrii Shumada (https://github.com/eagleeye)", - "Anis Safine (https://github.com/anis)", - "Arian Stolwijk (https://github.com/arian)", - "Ariel Mashraki (https://github.com/a8m)", - "Arnaud Brousseau (https://github.com/ArnaudBrousseau)", - "Atsuya Takagi (https://github.com/atsuya)", - "Attila Domokos (https://github.com/adomokos)", - "Austin Birch (https://github.com/austinbirch)", - "Avi Vahl (https://github.com/AviVahl)", - "Ben Bradley (https://github.com/ben-bradley)", - "beneidel (https://github.com/beneidel)", - "Benjie Gillam (https://github.com/benjie)", - "Ben Noordhuis (https://github.com/bnoordhuis)", - "Benoit Larroque (https://github.com/zetaben)", - "Benoît Zugmeyer (https://github.com/BenoitZugmeyer)", - "Ben Vinegar (https://github.com/benvinegar)", - "Berker Peksag (https://github.com/berkerpeksag)", - "Bjørge Næss (https://github.com/bjoerge)", - "Brendan Nee (https://github.com/brendannee)", - "Brian Beck (https://github.com/exogen)", - "Brian C (https://github.com/brianc)", - "Brian Lalor (https://github.com/blalor)", - "Brian Moore (https://github.com/bionicbrian)", - "Bryan Donovan (https://github.com/BryanDonovan)", - "Buck Doyle (https://github.com/backspace)", - "C. Scott Ananian (https://github.com/cscott)", - "Casey Foster (https://github.com/caseywebdev)", - "Charles Lowell (https://github.com/cowboyd)", - "Chris Buckley (https://github.com/cmbuckley)", - "Christopher Hiller (https://github.com/boneskull)", - "Chris Wren (https://github.com/ChrisWren)", - "Clemens Stolle (https://github.com/klaemo)", - "Connor Dunn (https://github.com/Connorhd)", - "Corey Butler (https://github.com/coreybutler)", - "Cory Thomas (https://github.com/dump247)", - "cybertk (https://github.com/cybertk)", - "Daniel Ericsson (https://github.com/monowerker)", - "Daniel Ruf (https://github.com/danielruf)", - "Daniel St. Jules (https://github.com/danielstjules)", - "Daniel Stockman (https://github.com/evocateur)", - "Dave McKenna (https://github.com/davemckenna01)", - "David da Silva (https://github.com/dasilvacontin)", - "David Henderson (https://github.com/dhendo)", - "Denis Bardadym (https://github.com/btd)", - "Devin Weaver (https://github.com/sukima)", - "Diogo Monteiro (https://github.com/diogogmt)", - "Dmitry Shirokov (https://github.com/runk)", - "Domenic Denicola (https://github.com/domenic)", - "Dominic Barnes (https://github.com/dominicbarnes)", - "domq (https://github.com/domq)", - "Douglas Wilson (https://github.com/dougwilson)", - "Duncan Beevers (https://github.com/duncanbeevers)", - "Duncan Wong (https://github.com/badunk)", - "eiji.ienaga (https://github.com/haru01)", - "Fabio Crisci (https://github.com/piuccio)", - "Fede Ramirez (https://github.com/2fd)", - "Fedor Indutny (https://github.com/indutny)", - "fengmk2 (https://github.com/fengmk2)", - "Florian Margaine (https://github.com/ralt)", - "Forbes Lindesay (https://github.com/ForbesLindesay)", - "Frederico Silva (https://github.com/fredericosilva)", - "Fredrik Enestad (https://github.com/fredr)", - "Fredrik Lindin (https://github.com/Cowboy-coder)", - "Gabriel Silk (https://github.com/gsilk)", - "Gareth Aye (https://github.com/gaye)", - "Gavin Mogan (https://github.com/halkeye)", - "gigadude (https://github.com/gigadude)", - "Giovanni Bassi (https://github.com/giggio)", - "Glen Huang (https://github.com/curvedmark)", - "Glen Mailer (https://github.com/glenjamin)", - "Greg Perkins (https://github.com/gregrperkins)", - "Guillermo Rauch (https://github.com/rauchg)", - "Guy Arye (https://github.com/aryeguy)", - "Gyandeep Singh (https://github.com/gyandeeps)", - "Harish (https://github.com/hyeluri)", - "Harry Brundage (https://github.com/airhorns)", - "Ian Remmel (https://github.com/ianwremmel)", - "Ian Storm Taylor (https://github.com/ianstormtaylor)", - "Ian Young (https://github.com/iangreenleaf)", - "Ivan (https://github.com/ivanstoyanov)", - "Jaakko Salonen (https://github.com/jsalonen)", - "Jacob Wejendorp (https://github.com/wejendorp)", - "Jake Craige (https://github.com/jakecraige)", - "Jake Marsh (https://github.com/jakemmarsh)", - "Jake Mc (https://github.com/startswithaj)", - "Jake Verbaten (https://github.com/Raynos)", - "Jakub Nešetřil (https://github.com/zzen)", - "James Bowes (https://github.com/jbowes)", - "James Carr (https://github.com/jamescarr)", - "James G. Kim (https://github.com/jgkim)", - "James Lal (https://github.com/lightsofapollo)", - "James Nylen (https://github.com/nylen)", - "Jason (https://github.com/jlai)", - "Jason Barry (https://github.com/JCBarry)", - "Javier Aranda (https://github.com/javierav)", - "jcreamer898 (https://github.com/jcreamer898)", - "Jean Ponchon (https://github.com/nopnop)", - "Jeff Kunkle (https://github.com/kunklejr)", - "Jeff Schilling (https://github.com/jschilli)", - "JeongHoon Byun (aka Outsider) (https://github.com/outsideris)", - "Jeremy Martin (https://github.com/jmar777)", - "jimenglish81 (https://github.com/jimenglish81)", - "Jimmy Cuadra (https://github.com/jimmycuadra)", - "jldailey (https://github.com/jldailey)", - "jleyba (https://github.com/jleyba)", - "Joey Cozza (https://github.com/joeycozza)", - "Johnathon Sanders (https://github.com/outdooricon)", - "John Doty (https://github.com/jrhdoty)", - "John Firebaugh (https://github.com/jfirebaugh)", - "John Reeves (https://github.com/jonnyreeves)", - "Jo Liss (https://github.com/joliss)", - "Jonas Dohse (https://github.com/dohse)", - "Jonathan Kim (https://github.com/jkimbo)", - "Jonathan Park (https://github.com/park9140)", - "jongleberry (https://github.com/jonathanong)", - "Jordan Sexton (https://github.com/jordansexton)", - "Joseph Spencer (https://github.com/jsdevel)", - "Josh Lory (https://github.com/joshlory)", - "Joshua Appelman (https://github.com/jbnicolai)", - "Joshua Krall (https://github.com/jkrall)", - "João Moreno (https://github.com/joaomoreno)", - "João Paulo Bochi (https://github.com/jpbochi)", - "jugglinmike (https://github.com/jugglinmike)", - "Julien Wajsberg (https://github.com/julienw)", - "Jussi Virtanen (https://github.com/jvirtanen)", - "Justin DuJardin (https://github.com/justindujardin)", - "Juzer Ali (https://github.com/juzerali)", - "Jérémie Astori (https://github.com/astorije)", - "Katie Gengler (https://github.com/kategengler)", - "Kazuhito Hokamura (https://github.com/hokaccha)", - "Keith Cirkel (https://github.com/keithamus)", - "Kent C. Dodds (https://github.com/kentcdodds)", - "Kevin Burke (https://github.com/kevinburke)", - "Kevin Conway (https://github.com/kevinconway)", - "Kevin Kirsche (https://github.com/kkirsche)", - "Kirill Korolyov (https://github.com/Dremora)", - "Koen Punt (https://github.com/koenpunt)", - "Konstantin Käfer (https://github.com/kkaefer)", - "Kris Rasmussen (https://github.com/krisr)", - "Kyle Mitchell (https://github.com/kemitchell)", - "lakmeer (https://github.com/lakmeer)", - "Liam Newman (https://github.com/bitwiseman)", - "Linus Unnebäck (https://github.com/LinusU)", - "Long Ho (https://github.com/longlho)", - "László Bácsi (https://github.com/lackac)", - "Maciej Małecki (https://github.com/mmalecki)", - "Mal Graty (https://github.com/mal)", - "Marcello Bastéa-Forte (https://github.com/marcello3d)", - "Marc Kuo (https://github.com/mck-)", - "Mark Banner (https://github.com/Standard8)", - "Matija Marohnić (https://github.com/silvenon)", - "Matthew Shanley (https://github.com/arkadyan)", - "mattias-lw (https://github.com/mattias-lw)", - "Matt Robenolt (https://github.com/mattrobenolt)", - "Matt Smith (https://github.com/twobitfool)", - "Max Goodman (https://github.com/chromakode)", - "Maximilian Antoni (https://github.com/mantoni)", - "Merrick Christensen (https://github.com/iammerrick)", - "michael-adsk (https://github.com/michael-adsk)", - "Michael Demmer (https://github.com/demmer)", - "Michael Jackson (https://github.com/mjackson)", - "Michael Schoonmaker (https://github.com/Schoonology)", - "Michal Charemza (https://github.com/michalc)", - "Mike Olson (https://github.com/mwolson)", - "Mislav Marohnić (https://github.com/mislav)", - "mrShturman (https://github.com/mrShturman)", - "Nathan Alderson (https://github.com/nathanalderson)", - "Nathan Black (https://github.com/nathanboktae)", - "Nathan Bowser (https://github.com/nathanbowser)", - "Nathan Houle (https://github.com/ndhoule)", - "Nathan Rajlich (https://github.com/TooTallNate)", - "Nick Fitzgerald (https://github.com/fitzgen)", - "Nikolaos Georgiou (https://github.com/ngeor)", - "noirlab (https://github.com/noirlab)", - "Noshir Patel (https://github.com/noshir-patel)", - "OlegTsyba (https://github.com/OlegTsyba)", - "omar (https://github.com/omardelarosa)", - "Panu Horsmalahti (https://github.com/panuhorsmalahti)", - "Parker Moore (https://github.com/parkr)", - "Paul Armstrong (https://github.com/paularmstrong)", - "Paul Miller (https://github.com/paulmillr)", - "Pavel Zubkou (https://github.com/irnc)", - "Pete Hawkins (https://github.com/phawk)", - "Phil Sung (https://github.com/psung)", - "Prayag Verma (https://github.com/pra85)", - "qiu zuhui (https://github.com/qiuzuhui)", - "Quang Van (https://github.com/quangv)", - "Rauno (https://github.com/Rauno56)", - "Refael Ackermann (https://github.com/refack)", - "Richard Dingwall (https://github.com/rdingwall)", - "Richard Knop (https://github.com/RichardKnop)", - "Rico Sta. Cruz (https://github.com/rstacruz)", - "Robert Rossmann (https://github.com/Alaneor)", - "Rob Wu (https://github.com/Rob--W)", - "Romain (https://github.com/rprieto)", - "Roman Neuhauser (https://github.com/roman-neuhauser)", - "Roman Shtylman (https://github.com/defunctzombie)", - "Russ Bradberry (https://github.com/devdazed)", - "Russell Munson (https://github.com/rmunson)", - "Rustem Mustafin (https://github.com/rulikkk)", - "Ryan (https://github.com/ryan-shaw)", - "Ryan Hubbard (https://github.com/ryedog)", - "Ryunosuke Sato (https://github.com/tricknotes)", - "ryym (https://github.com/ryym)", - "Salehen Shovon Rahman (https://github.com/shovon)", - "Salvador de la Puente González (https://github.com/delapuente)", - "Sam Mussell (https://github.com/smussell)", - "Samuel Goldszmidt (https://github.com/ouhouhsami)", - "Sasha Koss (https://github.com/kossnocorp)", - "Scott Santucci (https://github.com/ScottFreeCode)", - "Sean Lang (https://github.com/slang800)", - "seb vincent (https://github.com/sebv)", - "Seiya Konno (https://github.com/nulltask)", - "Sergey Simonchik (https://github.com/segrey)", - "Sergio Santoro (https://github.com/taueres)", - "Shahar Soel (https://github.com/bd82)", - "Shaine Hatch (https://github.com/shaine)", - "Shiwei Wang (https://github.com/wsw0108)", - "Simon Gaeremynck (https://github.com/simong)", - "Simon Goumaz (https://github.com/sgoumaz)", - "Sindre Sorhus (https://github.com/sindresorhus)", - "slientcloud (https://github.com/silentcloud)", - "Sorin Iclanzan (https://github.com/iclanzan)", - "Standa Opichal (https://github.com/opichals)", - "Stephen Mathieson (https://github.com/stephenmathieson)", - "Steve Mason (https://github.com/spmason)", - "Stewart Taylor (https://github.com/Stewart-Taylor)", - "Sune Simonsen (https://github.com/sunesimonsen)", - "Sylvain Faucherand (https://github.com/slyg)", - "Takuya Nishigori (https://github.com/nishigori)", - "Taylor Gautier (https://github.com/tsgautier)", - "Teddy Zeenny (https://github.com/teddyzeenny)", - "Thomas Grainger (https://github.com/graingert)", - "Tim Ehat (https://github.com/timehat)", - "Timothy Gu (https://github.com/TimothyGu)", - "Timo Tijhof (https://github.com/Krinkle)", - "Tingan Ho (https://github.com/tinganho)", - "TJ Holowaychuk (https://github.com/tj)", - "Tobias Bieniek (https://github.com/Turbo87)", - "Toby Ho (https://github.com/airportyh)", - "Todd Agulnick (https://github.com/tawdle)", - "Tom Hughes (https://github.com/tomhughes)", - "Tommy Montgomery (https://github.com/tmont)", - "traleig1 (https://github.com/traleig1)", - "Travis Jeffery (https://github.com/travisjeffery)", - "Tyson Tate (https://github.com/tysontate)", - "Valentin Agachi (https://github.com/avaly)", - "Victor Costan (https://github.com/pwnall)", - "Vladimir Chernis (https://github.com/vlazzle)", - "Vlad Magdalin (https://github.com/callmevlad)", - "Will Langstroth (https://github.com/wlangstroth)", - "Wil Moore III (https://github.com/wilmoore)", - "Xavier Antoviaque (https://github.com/antoviaque)", - "Xavier Damman (https://github.com/xdamman)", - "Yanis Wang (https://github.com/yaniswang)", - "yuitest (https://github.com/yuitest)", - "Zhiye Li (https://github.com/zhiyelee)", - "Zhouxuan Yang (https://github.com/fool2fish)", - "Zsolt Takács (https://github.com/oker1)" + "38elements ", + "Aaron Brady ", + "Aaron Hamid ", + "Aaron Heckmann ", + "Aaron Krause ", + "Aaron Petcoff ", + "abrkn ", + "Adam Crabtree ", + "Adam Gruber ", + "Adrian Ludwig ", + "Ahmad Bamieh ", + "airportyh ", + "Ajay Kodali ", + "Al Scott ", + "Alex Bainter ", + "Alexander Early ", + "Alexander Shepelin ", + "Alhadis ", + "amsul ", + "Anders Olsen Sandvik ", + "Andreas Brekken ", + "Andreas Lind Petersen ", + "Andrew Krawchyk <903716+akrawchyk@users.noreply.github.com>", + "Andrew Nesbitt ", + "Andrey Popp <8mayday@gmail.com>", + "Andrii Shumada ", + "andy matthews ", + "Angelica Valenta ", + "Anis Safine ", + "Anish Karandikar ", + "Anthony ", + "Anton ", + "anton ", + "APerson ", + "Arian Stolwijk ", + "Ariel Mashraki ", + "Arnaud Brousseau ", + "Artem Govorov ", + "Atsuya Takagi ", + "Attila Domokos ", + "Austin Birch ", + "Avi Vahl ", + "badunk ", + "Bamieh ", + "Ben Bradley ", + "Ben Harris ", + "Ben Hutchison ", + "Ben Lindsey ", + "Ben Noordhuis ", + "Ben Vinegar ", + "Benjamin Eidelman ", + "Benjie Gillam ", + "Benoit Larroque ", + "Benoît Zugmeyer ", + "Benson Trent ", + "Berker Peksag ", + "berni ", + "Bjørge Næss ", + "Brendan Nee ", + "Brian Beck ", + "Brian Lalor ", + "Brian M. Carlson ", + "Brian Moore ", + "Bryan Donovan ", + "Buck Doyle ", + "C. Scott Ananian ", + "Callum Macrae ", + "Can Oztokmak ", + "Capacitor Set ", + "Casey Foster ", + "Charles Lowell ", + "Charles Merriam ", + "Charlie Rudolph ", + "Chris ", + "Chris Buckley ", + "Chris Lamb ", + "Christian ", + "Christoffer Hallas ", + "Christoph Neuroth ", + "Christopher Hiller ", + "ChrisWren ", + "claudyus ", + "Connor Dunn ", + "Corey Butler ", + "Cory Thomas ", + "Craig Taub ", + "Cube ", + "Daniel Ruf ", + "Daniel St. Jules ", + "Daniel Stockman ", + "Darryl Pogue ", + "Dave McKenna ", + "David da Silva Contín ", + "David Henderson ", + "David M. Lee ", + "David Neubauer ", + "Denis Bardadym ", + "Devin Weaver ", + "Di Wu ", + "Dina Berry ", + "Diogo Monteiro ", + "Dmitriy Simushev ", + "Dmitry Shirokov ", + "Dmitry Sorin ", + "Domenic Denicola ", + "Dominic Barnes ", + "Dominique Quatravaux ", + "Douglas Christopher Wilson ", + "Duncan Beevers ", + "eiji.ienaga ", + "elergy ", + "Eli Skeggs ", + "ELLIOTTCABLE ", + "Emanuele ", + "Enric Pallerols ", + "Erik Eng ", + "Eugene Tiutiunnyk ", + "Fabio M. Costa ", + "Fagner Brack ", + "FARKAS Máté ", + "fcrisci ", + "Fede Ramirez ", + "Fedor Indutny ", + "fengmk2 ", + "Florian Margaine ", + "FND ", + "fool2fish ", + "Forbes Lindesay ", + "Frank Leon Rose ", + "Frederico Silva ", + "Fredrik Enestad ", + "Fredrik Lindin ", + "Fumiaki MATSUSHIMA ", + "Gabriel Silk ", + "Gareth Aye ", + "Gareth Murphy ", + "Gavin Mogan ", + "gaye ", + "gigadude ", + "Giovanni Bassi ", + "Glen Huang ", + "Glen Mailer ", + "grasGendarme ", + "Greg Perkins ", + "Guangcong Luo ", + "Guillermo Rauch ", + "Guy Arye ", + "Gyandeep Singh ", + "Harish ", + "Harry Brundage ", + "Harry Sarson ", + "Harry Wolff ", + "Herman Junge ", + "hokaccha ", + "Honza Javorek ", + "Hugo Giraudel ", + "Ian Storm Taylor ", + "Ian W. Remmel ", + "Ian Young ", + "Ian Zamojc ", + "Igwe Kalu ", + "ImgBot <31427850+ImgBotApp@users.noreply.github.com>", + "inxorable ", + "Ivan ", + "Jaakko Salonen ", + "Jacob Wejendorp ", + "Jake Craige ", + "Jake Marsh ", + "Jakob Krigovsky ", + "Jakub Nešetřil ", + "James Bowes ", + "James Carr ", + "James G. Kim ", + "James Lal ", + "James Nylen ", + "Jan Kopriva ", + "Jan Krems ", + "Jan Lehnardt ", + "Jason Barry ", + "Jason Lai ", + "Jason Leyba ", + "Javier Aranda ", + "Jean Ponchon ", + "Jeff Kunkle ", + "Jeff Schilling ", + "JeongHoon Byun (aka Outsider) ", + "Jérémie Astori ", + "Jeremy Martin ", + "Jerry Muzsik ", + "Jesse Dailey ", + "jimenglish81 ", + "Jimmy Cuadra ", + "Jo Liss ", + "Joao Moreno ", + "Joel Kemp ", + "Joey Cozza ", + "John Doty ", + "John Firebaugh ", + "John Reeves ", + "Johnathon Sanders ", + "Jon Surrell ", + "Jonas Dohse ", + "Jonas Westerlund ", + "Jonathan Creamer ", + "Jonathan Delgado ", + "Jonathan Kim ", + "Jonathan Ong ", + "Jonathan Park ", + "Jonathan Rajavuori ", + "Jordan Sexton ", + "Joseph Lin ", + "Josh Eversmann ", + "Josh Lory ", + "Josh Soref ", + "Joshua Appelman ", + "Joshua Krall ", + "JP Bochi ", + "jsdevel ", + "Julien Wajsberg ", + "Jupp Müller ", + "Jussi Virtanen ", + "Justin DuJardin ", + "Juzer Ali ", + "Katie Gengler ", + "kavun ", + "Kazuhito Hokamura ", + "Keith Cirkel ", + "Kelong Wang ", + "Kent C. Dodds ", + "Kevin Burke ", + "Kevin Conway ", + "Kevin Kirsche ", + "Kevin Partington ", + "Kevin Wang ", + "Kirill Korolyov ", + "klaemo ", + "Koen Punt ", + "Konstantin Käfer ", + "Kris Rasmussen ", + "Kunal Nagpal ", + "Kyle Mitchell ", + "lakmeer ", + "Lane Kelly ", + "László Bácsi ", + "Laurence Rowe ", + "Liam Newman ", + "Linus Unnebäck ", + "lodr ", + "Long Ho ", + "Maciej Małecki ", + "Mal Graty ", + "Marais Rossouw ", + "Marc Kuo ", + "Marcello Bastea-Forte ", + "Mark Banner ", + "Markus Tacker ", + "Martin Marko ", + "Mathieu Desvé ", + "Matija Marohnić ", + "Matt Bierner ", + "Matt Giles ", + "Matt Robenolt ", + "Matt Smith ", + "Matthew Shanley ", + "Mattias Tidlund ", + "Max Goodman ", + "Maximilian Antoni ", + "Merrick Christensen ", + "Michael Demmer ", + "Michael Jackson ", + "Michael Olson ", + "Michael Riley ", + "Michael Schoonmaker ", + "Michal Charemza ", + "Michiel de Jong ", + "Mick Brooks ", + "Mike Pennisi ", + "Mislav Marohnić ", + "monowerker ", + "Moshe Kolodny ", + "mrShturman ", + "Nathan Alderson ", + "Nathan Black ", + "Nathan Bowser ", + "Nathan Houle ", + "Nathan Rajlich ", + "nexdrew ", + "Nick Fitzgerald ", + "Nicolo Taddei ", + "Nik Nyby ", + "Nikolaos Georgiou ", + "nishigori ", + "Noshir Patel ", + "not-an-aardvark ", + "OlegTsyba ", + "olsonpm ", + "omardelarosa ", + "Oscar Godson ", + "Outsider ", + "oveddan ", + "Panu Horsmalahti ", + "Parker Moore ", + "Pat Finnigan ", + "Paul Armstrong ", + "Paul Miller ", + "Pavel Zubkou ", + "Pete Hawkins ", + "Peter Müller ", + "Peter Rust ", + "Phil Sung ", + "Philip M. White ", + "PoppinL ", + "Poprádi Árpád ", + "Prayag Verma ", + "qiuzuhui ", + "Quang Van ", + "Quanlong He ", + "R56 ", + "Raynos ", + "Refael Ackermann ", + "Rich Trott ", + "Richard Dingwall ", + "Richard Knop ", + "Rico Sta. Cruz ", + "rmacklin ", + "Rob Loach ", + "Rob Raux ", + "Rob Wu ", + "Robert Rossmann ", + "Romain Prieto ", + "Roman Neuhauser ", + "Roman Shtylman ", + "Ross Warren ", + "rotemdan ", + "Russ Bradberry ", + "Russell Munson ", + "Rustem Mustafin ", + "Ryan Hubbard ", + "Ryan Shaw ", + "Ryan Tablada ", + "Ryunosuke SATO ", + "ryym ", + "Salehen Shovon Rahman ", + "Sam Mussell ", + "samuel goldszmidt ", + "sarehag ", + "Sasha Koss ", + "Scott Kao ", + "Scott Santucci ", + "ScottFreeCode ", + "Sean Lang ", + "Sebastian Van Sande ", + "sebv ", + "Seiya Konno ", + "Sergey Simonchik ", + "Sergio Santoro ", + "Shaine Hatch ", + "Shawn Krisman ", + "Shinnosuke Watanabe ", + "silentcloud ", + "Silvio Massari ", + "Simon Gaeremynck ", + "Simon Goumaz ", + "simov ", + "Sindre Sorhus ", + "Slobodan Mišković ", + "slyg ", + "Soel ", + "solodynamo ", + "Sorin Iclanzan ", + "Standa Opichal ", + "startswithaj ", + "Stephen Mathieson ", + "Steve Mason ", + "Stewart Taylor ", + "Stone ", + "Sulabh Bista ", + "Sune Simonsen ", + "Tapiwa Kelvin ", + "Ted Yavuzkurt ", + "Teddy Zeenny ", + "tgautier@yahoo.com ", + "Thedark1337 ", + "Thomas Broadley ", + "Thomas Grainger ", + "Thomas Vantuycom ", + "Tim Ehat ", + "Timo Tijhof ", + "Timothy Gu ", + "Tingan Ho ", + "tmont ", + "Tobias Bieniek ", + "Todd Agulnick ", + "Tom Coquereau ", + "Tom Hughes ", + "Tomer Eskenazi ", + "traleig1 ", + "Travis Jeffery ", + "tripu ", + "Tyson Tate ", + "Vadim Nikitin ", + "Valentin Agachi ", + "Valeri Karpov ", + "Victor ", + "Victor Costan ", + "Ville Saukkonen ", + "Vivek Ganesan ", + "vlad ", + "Vlad Magdalin ", + "Volker Buzek ", + "Wil Moore III ", + "Will Langstroth ", + "wsw ", + "Xavier Antoviaque ", + "Xavier Damman ", + "XhmikosR ", + "Yanis Wang ", + "yehiyam ", + "Yoshiya Hinosawa ", + "Yuest Wang ", + "yuitest ", + "zhiyelee ", + "Zsolt Takács ", + "现充 " ], "license": "MIT", "repository": { diff --git a/scripts/update-contributors.js b/scripts/update-contributors.js new file mode 100755 index 0000000000..794933a79b --- /dev/null +++ b/scripts/update-contributors.js @@ -0,0 +1,59 @@ +#!/usr/bin/env node + +/** + * This script updates the "contributors" property of the root `package.json`. + * It modifies `package.json` in place! + * + * See `.mailmap` for username/email mappings. + */ + +'use strict'; + +const exec = require('child_process').exec; +const path = require('path'); +const fs = require('fs'); + +// list of authors/emails that should not appear in the contributors list, e.g. bots +const BLACKLIST = [ + 'greenkeeperio-bot ', + 'greenkeeper[bot] ', + 'TJ Holowaychuk ' // author +]; + +const ROOT = path.join(__dirname, '..'); +const PKG_FILEPATH = path.join(ROOT, 'package.json'); + +const pkg = JSON.parse(fs.readFileSync(PKG_FILEPATH, 'utf8')); +const contributorCount = pkg.contributors.length; + +// could use `| sort | uniq` here but didn't want to assume 'nix +// see `man git-log` for info about the format +exec('git log --format="%aN <%aE>"', {cwd: ROOT}, (err, gitOutput) => { + if (err) { + throw err; + } + + // result will be many lines of contributors, one or more per commit. + // we wrap it in a `Set` to get unique values, then attempt to get + // a consistent sort. + const contributors = Array.from(new Set(gitOutput.trim().split(/\r?\n/))) + .filter(contributor => BLACKLIST.indexOf(contributor) < 0) + .sort((a, b) => a.localeCompare(b, 'en', {sensitivity: 'accent'})); + + const newContributorCount = contributors.length; + + if (newContributorCount !== contributorCount) { + pkg.contributors = contributors; + fs.writeFileSync(PKG_FILEPATH, JSON.stringify(pkg, null, 2)); + + console.log( + newContributorCount < contributorCount + ? `WARNING: Reducing contributor count by ${contributorCount - + newContributorCount}! Hopefully it's because you updated .mailmap.` + : `Wrote ${newContributorCount - + contributorCount} new contributors to package.json.` + ); + } else { + console.log('No new contributors; nothing to do.'); + } +});