From 0908f417fe8cf18f6f88463eced6926c0e9d99de Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 21 Mar 2020 20:02:57 +0100 Subject: 16 new icons: `alarm`, `arrow-back`, `arrow-forward`, `artboard`, `award`, `bug`, `calendar-event`, `globe`, `help`, `mug`, `palette`, `pencil`, `record-mail`, `ruler`, `scissors`, `stack` Fixed icons: `directions`, `disabled`, `disc`, `edit`, `switch-vertical` --- gulpfile.js | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 3ba79bd..5210a8d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -222,31 +222,48 @@ gulp.task('prepare-changelog', function(cb) { }); if(newIcons.length > 0) { - console.log(`**${newIcons.length} new icons:**\n`); + let str = ''; + str += `${newIcons.length} new icons: `; - newIcons.forEach(function(icon){ - console.log(`- \`${icon}\``); + newIcons.forEach(function(icon, i){ + str += `\`${icon}\``; + + if((i + 1) <= newIcons.length - 1) { + str += ', ' + } }); - console.log(''); + console.log(str); } if(modifiedIcons.length > 0) { - console.log(`**Fixed icons:**\n`); + let str = ''; + str += `Fixed icons: `; + + modifiedIcons.forEach(function(icon, i){ + str += `\`${icon}\``; - modifiedIcons.forEach(function(icon){ - console.log(`- \`${icon}\``); + if((i + 1) <= modifiedIcons.length - 1) { + str += ', ' + } }); - console.log(''); + console.log(str); } if(renamedIcons.length > 0) { - console.log(`**Renamed icons:**\n`); + let str = ''; + str += `**Renamed icons: `; + + renamedIcons.forEach(function(icon, i){ + str += `\`${icon[0]}\` renamed to \`${icon[1]}\``; + + if((i + 1) <= renamedIcons.length - 1) { + str += ', ' + } + }); - renamedIcons.forEach(function(icon){ - console.log(`- \`${icon[0]}\` renamed to \`${icon[1]}\``); - }) + console.log(str); } cb(); -- cgit v1.2.1