Pārlūkot izejas kodu

build: add `contributors` script for updating contributors list

Jonas Gloning 3 gadi atpakaļ
vecāks
revīzija
732523af62
2 mainītis faili ar 752 papildinājumiem un 20 dzēšanām
  1. 750 20
      package-lock.json
  2. 2 0
      package.json

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 750 - 20
package-lock.json


+ 2 - 0
package.json

@@ -150,6 +150,7 @@
 		}
 	},
 	"scripts": {
+		"contributors": "git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \"chore(contributors): update and sort contributors list\"",
 		"check": "tsc --noEmit",
 		"watch": "parcel watch",
 		"build": "rm -rf dist && parcel build && cp dist/peerjs.cjs dist/peerjs.js && cp dist/peerjs.min.cjs dist/peerjs.min.js",
@@ -169,6 +170,7 @@
 		"@types/mocha": "^9.1.0",
 		"@types/node": "^17.0.18",
 		"chai": "^4.3.6",
+		"git-authors-cli": "^1.0.40",
 		"jsdom": "^19.0.0",
 		"jsdom-global": "^3.0.2",
 		"mocha": "^9.2.0",

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels