pre: function(result) {
   // Concatenate uncolored result onto actual.
   actual += grunt.log.uncolor(result);
   // Prevent the original process.stdout.write from executing.
   return hooker.preempt();
 }
 }], function(creds) {
     grunt.log.ok('Saving credentials to', CREDENTIALS_FILE);
     grunt.file.write(CREDENTIALS_FILE, JSON.stringify(creds));
     callback(null, creds);
 });
Пример #3
0
 .map(function (file) {
     grunt.log.ok('Busted:', file);
     return path.resolve((originalConfig.cwd ? originalConfig.cwd + path.sep : '') + file);
 });
Пример #4
0
 pre: function(result) {
   actual += grunt.log.uncolor(result);
   return grunt.util.hooker.preempt();
 }
Пример #5
0
 finish: function(files) {
     if(this.succeeded) {
         // Print a success message.
         grunt.log.ok(files.length + ' files lint free.');      
     }
 },
Пример #6
0
 travisFoldEnd: function (msg) {
   if (!msg) { return; }
   grunt.log.writeln('travis_fold:end:' + msg);
 }
Пример #7
0
 travisFoldStart: function (msg) {
   if (!msg) { return; }
   grunt.log.writeln('travis_fold:start:' + msg);
 },
Пример #8
0
 env.addGlobal('warn', function (...input) {
   log.error(...input, `[${this.ctx.PAGE.props.url}]`)
 })