Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tasks/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ module.exports = function(grunt) {
sourceMap = false;
}

var outputFiles = [];

// Iterate over all src-dest file pairs.
this.files.forEach(function(f) {
// Initialize source map objects.
Expand Down Expand Up @@ -114,8 +116,14 @@ module.exports = function(grunt) {
grunt.file.write(f.dest, src);

// Print a success message.
grunt.verbose.write('File ' + chalk.cyan(f.dest) + ' created.');
if (!!options.displayLog) {
grunt.verbose.write('File ' + chalk.cyan(f.dest) + ' created.');
}
outputFiles.push(chalk.cyan(f.dest));
});

grunt.verbose.write(outputFiles.length + ' new files created.');

});

};
4 changes: 3 additions & 1 deletion tasks/lib/sourcemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ exports.init = function(grunt) {
this.dest,
JSON.stringify(newSourceMap, null, '')
);
grunt.verbose.writeln('Source map ' + chalk.cyan(this.dest) + ' created.');
if (!!this.options.displayLog) {
grunt.verbose.writeln('Source map ' + chalk.cyan(this.dest) + ' created.');
}

};

Expand Down