File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Timestamp.prototype[util.inspect.custom] = function (depth, opts) {
17
17
return '[' + opts . stylize ( timestamp , 'date' ) + ']' ;
18
18
} ;
19
19
20
- function getDefaultMessage ( data ) {
20
+ function getDefaultMessage ( data , cfg ) {
21
21
switch ( data . tag ) {
22
22
case messages . PRELOAD_BEFORE : {
23
23
return 'Preloading external module: ' + chalk . magenta ( data . name ) ;
@@ -58,6 +58,9 @@ function getDefaultMessage(data) {
58
58
return chalk . red ( 'Unsupported gulp version' , data . version )
59
59
}
60
60
case messages . DESCRIPTION : {
61
+ if ( cfg . description && typeof cfg . description === 'string' ) {
62
+ return cfg . description
63
+ }
61
64
return 'Tasks for ' + chalk . magenta ( tildify ( data . path ) ) ;
62
65
}
63
66
case messages . GULPFILE : {
@@ -269,7 +272,7 @@ function buildTranslations(cfg) {
269
272
// If the user hasn't returned a message or silenced it with `false`
270
273
// get the default message. Will return the first argument if the message
271
274
// is not defined in the `@gulpjs/messages` package
272
- return getDefaultMessage ( data ) ;
275
+ return getDefaultMessage ( data , cfg ) ;
273
276
} ,
274
277
timestamp : function ( data ) {
275
278
// Don't allow an `undefined` message through
You can’t perform that action at this time.
0 commit comments