klei/gulp-inject

Plural State of logged message on injected files.

Closed this issue · 1 comments

Currently, the logged message on the number of injected files is statically set to plural state.

screen shot 2016-07-21 at 2 45 46 pm

It would make sense to have the message reflect the correct plural state of the filesCount variable.

   if (filesCount) {
      var pluralState = filesCount > 1 ? 's' : '';
      log(cyan(filesCount) + ' file' + pluralState + ' into ' + magenta(target.relative) + '.');
    } else {
      log('Nothing to inject into ' + magenta(target.relative) + '.');
    }

This would look something like this.

screen shot 2016-07-21 at 2 47 34 pm

Closed by #193