Skip to content

Commit

Permalink
add script to update authors
Browse files Browse the repository at this point in the history
  • Loading branch information
paul90 committed Sep 7, 2024
1 parent 71e0f29 commit 60c23e5
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 4 deletions.
3 changes: 3 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ i2p-lbt <[email protected]>
Andrew Ettinger <[email protected]>
Joshua Benuck <[email protected]>
Eric Dobbs <[email protected]>
Andrew Shell <[email protected]>
Matthew B. Gray <[email protected]>
decaffeinate <[email protected]>
16 changes: 16 additions & 0 deletions package-lock.json

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

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"url": "https://rodwell.me"
}
],
"dependencies": {},
"scripts": {
"build": "npm run build:client && npm run build:test",
"build:client": "npm run clean:client; node --no-warnings scripts/build-client.mjs",
Expand All @@ -33,17 +32,19 @@
"clean:client": "rm client/client.js client/client.js.map meta-client.json",
"clean:test": "rm client/test/testclient.js",
"test": "mocha test/util.js test/random.js test/page.js test/lineup.js test/drop.js test/revision.js test/resolve.js test/wiki.js",
"runtests": "npm run build:test && ((sleep 1; open 'http://localhost:3000/runtests.html')&) && echo '\nBrowser will open to run tests.' && serve client"
"runtests": "npm run build:test && ((sleep 1; open 'http://localhost:3000/runtests.html')&) && echo '\nBrowser will open to run tests.' && serve client",
"update-authors": "node scripts/update-authors.js"
},
"devDependencies": {
"async": "^3.2.1",
"esbuild": "^0.23.1",
"expect.js": "^0.3.1",
"grunt-git-authors": "^3.2.0",
"localforage": "^1.7.3",
"minisearch": "^7.1.0",
"mocha": "^10.2.0",
"serve": "^14.2.3",
"sinon": "^18.0.0",
"async": "^3.2.1",
"localforage": "^1.7.3",
"underscore": "^1.13.6"
},
"license": "MIT",
Expand Down
38 changes: 38 additions & 0 deletions scripts/update-authors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const gitAuthors = require('grunt-git-authors')

// list of contributers from prior the split out of Smallest Federated Wiki repo.
const priorAuthors = [
"Ward Cunningham <[email protected]>",
"Stephen Judkins <[email protected]>",
"Sam Goldstein <[email protected]>",
"Steven Black <[email protected]>",
"Don Park <[email protected]>",
"Sven Dowideit <[email protected]>",
"Adam Solove <[email protected]>",
"Nick Niemeir <[email protected]>",
"Erkan Yilmaz <[email protected]>",
"Matt Niemeir <[email protected]>",
"Daan van Berkel <[email protected]>",
"Nicholas Hallahan <[email protected]>",
"Ola Bini <[email protected]>",
"Danilo Sato <[email protected]>",
"Henning Schumann <[email protected]>",
"Michael Deardeuff <[email protected]>",
"Pete Hodgson <[email protected]>",
"Marcin Cieslak <[email protected]>",
"M. Kelley Harris (http://www.kelleyharris.com)",
"Ryan Bennett <[email protected]>",
"Paul Rodwell <[email protected]>",
"David Turnbull <[email protected]>",
"Austin King <[email protected]>"
]

gitAuthors.updateAuthors({
priorAuthors: priorAuthors
}, (error, filename) => {
if (error) {
console.log('Error: ', error)
} else {
console.log(filename, 'updated')
}
})

0 comments on commit 60c23e5

Please sign in to comment.