docs: function rmDirRecursive(dirPath) {
          if(!fs.existsSync(dirPath)){
              grunt.log.write('Directory ' + dirPath + ' does not exist. ');
              return 0; // fine
          }
  
          var files;
          try {
              files = fs.readdirSync(dirPath);
          } catch(e) {
              grunt.fatal('Exception when trying to remove folder ' + dirPath);
              grunt.log.writeln(e);
          }
  
          var count = 0;
          if (files.length > 0) {
              for (var i = 0; i < files.length; i++) {
                  var filePath = dirPath + '/' + files[i];
                  if (fs.statSync(filePath).isFile()) {
                      fs.unlinkSync(filePath);
                  } else {
                      count += rmDirRecursive(filePath);
                  }
              }
          }
          fs.rmdirSync(dirPath);
          count += files.length + 1;
          return count;
      }