Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Commit 6d8dd3d

Browse files
stephanebacheliersindresorhus
authored andcommitted
Close #59 PR: Switch to grunt.verbose to limit output. Fixes #326
1 parent d257352 commit 6d8dd3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks/filerev.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function (grunt) {
3030
grunt.fail.fatal('Destination ' + el.dest + ' for target ' + target + ' is not a directory');
3131
}
3232
} catch (err) {
33-
grunt.log.writeln('Destination dir ' + el.dest + ' does not exists for target ' + target + ': creating');
33+
grunt.verbose.writeln('Destination dir ' + el.dest + ' does not exists for target ' + target + ': creating');
3434
grunt.file.mkdir(el.dest);
3535
}
3636
// We need to copy file as we now have a dest different from the src
@@ -75,13 +75,14 @@ module.exports = function (grunt) {
7575
}
7676

7777
filerev.summary[path.normalize(file)] = path.join(dirname, newName);
78-
grunt.log.writeln(chalk.green('✔ ') + file + chalk.gray(' changed to ') + newName);
78+
grunt.verbose.writeln(chalk.green('✔ ') + file + chalk.gray(' changed to ') + newName);
7979
if (sourceMap) {
8080
filerev.summary[path.normalize(file + '.map')] = path.join(dirname, newName + '.map');
81-
grunt.log.writeln(chalk.green('✔ ') + file + '.map' + chalk.gray(' changed to ') + newName + '.map');
81+
grunt.verbose.writeln(chalk.green('✔ ') + file + '.map' + chalk.gray(' changed to ') + newName + '.map');
8282
}
8383

8484
});
85+
grunt.log.writeln('Revved ' + chalk.cyan(el.src.length) + ' files');
8586

8687
next();
8788
}, this.async());

0 commit comments

Comments
 (0)