all-contributors-cli
Advanced tools
Comparing version 6.13.0 to 6.14.0
@@ -26,3 +26,7 @@ #!/usr/bin/env node | ||
var defaultRCFile = path.join(cwd, '.all-contributorsrc'); | ||
var yargv = yargs.help('help').alias('h', 'help').alias('v', 'version').version().recommendCommands().command('generate', 'Generate the list of contributors').usage('Usage: $0 generate').command('add', 'add a new contributor').usage('Usage: $0 add <username> <contribution>').command('init', 'Prepare the project to be used with this tool').usage('Usage: $0 init').command('check', 'Compares contributors from the repository with the ones credited in .all-contributorsrc').usage('Usage: $0 check').boolean('commit').default('files', ['README.md']).default('contributorsPerLine', 7).default('contributors', []).default('config', defaultRCFile).config('config', function (configPath) { | ||
var yargv = yargs.help('help').alias('h', 'help').alias('v', 'version').version().recommendCommands().command('generate', 'Generate the list of contributors').usage('Usage: $0 generate').command('add', 'add a new contributor').usage('Usage: $0 add <username> <contribution>').command('init', 'Prepare the project to be used with this tool').usage('Usage: $0 init').command('check', 'Compares contributors from the repository with the ones credited in .all-contributorsrc').usage('Usage: $0 check').boolean('commit').default('files', ['README.md']).default('contributorsPerLine', 7).option('contributorsSortAlphabetically', { | ||
type: 'boolean', | ||
default: false, | ||
description: 'Sort the list of contributors alphabetically in the generated list' | ||
}).default('contributors', []).default('config', defaultRCFile).config('config', function (configPath) { | ||
try { | ||
@@ -29,0 +33,0 @@ return util.configFile.readConfig(configPath); |
@@ -30,3 +30,7 @@ "use strict"; | ||
function generateContributorsList(options, contributors) { | ||
return _.flow(_.map(function (contributor) { | ||
return _.flow(_.sortBy(function (contributor) { | ||
if (options.contributorsSortAlphabetically) { | ||
return contributor.name; | ||
} | ||
}), _.map(function (contributor) { | ||
return formatContributor(options, contributor); | ||
@@ -33,0 +37,0 @@ }), _.chunk(options.contributorsPerLine), _.map(formatLine), _.join('\n </tr>\n <tr>\n '), function (newContent) { |
{ | ||
"name": "all-contributors-cli", | ||
"version": "6.13.0", | ||
"version": "6.14.0", | ||
"description": "Tool to easily add recognition for new contributors", | ||
@@ -45,10 +45,10 @@ "bin": { | ||
"dependencies": { | ||
"@babel/runtime": "^7.2.0", | ||
"@babel/runtime": "^7.7.6", | ||
"async": "^3.0.1", | ||
"chalk": "^3.0.0", | ||
"didyoumean": "^1.2.1", | ||
"inquirer": "^6.2.1", | ||
"json-fixer": "^1.3.1-0", | ||
"inquirer": "^7.0.4", | ||
"json-fixer": "^1.4.0", | ||
"lodash": "^4.11.2", | ||
"pify": "^4.0.1", | ||
"pify": "^5.0.0", | ||
"request": "^2.72.0", | ||
@@ -61,4 +61,4 @@ "yargs": "^15.0.1" | ||
"git-cz": "^3.0.0", | ||
"kcd-scripts": "^2.0.0", | ||
"nock": "^11.1.0", | ||
"kcd-scripts": "^3.0.0", | ||
"nock": "^12.0.0", | ||
"semantic-release": "^15.13.2" | ||
@@ -65,0 +65,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63426
1210
+ Addedansi-escapes@4.3.2(transitive)
+ Addedcli-cursor@3.1.0(transitive)
+ Addedcli-width@3.0.0(transitive)
+ Addedfigures@3.2.0(transitive)
+ Addedinquirer@7.3.3(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addedmute-stream@0.0.8(transitive)
+ Addedonetime@5.1.2(transitive)
+ Addedpify@5.0.0(transitive)
+ Addedrestore-cursor@3.1.0(transitive)
+ Addedtype-fest@0.21.3(transitive)
- Removedansi-escapes@3.2.0(transitive)
- Removedansi-regex@3.0.14.1.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcli-cursor@2.1.0(transitive)
- Removedcli-width@2.2.1(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedfigures@2.0.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedinquirer@6.5.2(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedmimic-fn@1.2.0(transitive)
- Removedmute-stream@0.0.7(transitive)
- Removedonetime@2.0.1(transitive)
- Removedpify@4.0.1(transitive)
- Removedrestore-cursor@2.0.0(transitive)
- Removedstring-width@2.1.1(transitive)
- Removedstrip-ansi@4.0.05.2.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updated@babel/runtime@^7.7.6
Updatedinquirer@^7.0.4
Updatedjson-fixer@^1.4.0
Updatedpify@^5.0.0