Skip to content

Commit 9ec70a1

Browse files
committed
chore(contributors): add npm-contributors
1 parent 95276b6 commit 9ec70a1

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

.mailmap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Hannes Diercks <hannes.diercks@jimdo.com> <github@xiphe.net>
2+
Hannes Diercks <hannes.diercks@jimdo.com> <hi@xiphe.net>
3+
Hauke Stange <hauke@jimdo.com> <hauke.stange@me.com>

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ module.exports = function(grunt) {
8383
grunt.registerTask('release', 'Test, bump, build and release.', function(type) {
8484
grunt.task.run([
8585
'test',
86+
'npm-contributors',
8687
'bump-only:' + (type || 'patch'),
8788
'build',
8889
'bump-commit'

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "0.0.0",
44
"description": "A starting point for angular directives.",
55
"homepage": "https://github.com/Jimdo/angular-directive-seed",
6-
"author": "Jimdo, Hannes Diercks <hannes.diercks@jimdo.com>",
6+
"author": "Jimdo GmbH",
7+
"maintainers": [],
8+
"contributors": [],
79
"main": "Gruntfile.js",
810
"keywords": [
911
"directive",
@@ -36,6 +38,7 @@
3638
"grunt-coveralls": "^1.0.0",
3739
"grunt-karma": "~0.9.0",
3840
"grunt-ng-annotate": "^0.4.0",
41+
"grunt-npm": "https://github.com/Xiphe/grunt-npm/tarball/98187270151e53d45214d778de394a557e81958c",
3942
"grunt-parallel": "^0.3.1",
4043
"grunt-protractor-runner": "~1.1.4",
4144
"grunt-shell-spawn": "~0.3.0",

tasks/options/npm-contributors.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
bower: {
3+
options: {
4+
file: 'bower.json',
5+
commitMessage: 'update bower authors',
6+
filter: false,
7+
as: 'authors'
8+
}
9+
},
10+
contributors: {
11+
options: {
12+
commit: false,
13+
filter: function(contributors) {
14+
return contributors.filter(function(contributor) {
15+
return contributor.commitCount < 3;
16+
});
17+
}
18+
}
19+
},
20+
maintainers: {
21+
options: {
22+
filter: function(contributors) {
23+
return contributors.filter(function(contributor) {
24+
return contributor.commitCount >= 3;
25+
});
26+
},
27+
as: 'maintainers'
28+
}
29+
}
30+
};

0 commit comments

Comments
 (0)