tasks/transfo.js
function(next) {
          // Here destination is allways a file.
          // Only the parent folder is required
          var dir = dirname(dest);
          if(dirExists[dir]) {
            return next();
          }

          grunt.verbose.writeln('  Make directory %s', dir.blue);
          mkdirp(dir, function(err) {
            if(err) {
              return next(err);
            }
            tally.dirs++;
            dirExists[dir] = true;
            return next();
          });

        }
function(next) {
          // Here destination is allways a file.
          // Only the parent folder is required
          var dir = dirname(dest);
          if(dirExists[dir]) {
            return next();
          }

          grunt.verbose.writeln('  Make directory %s', dir.blue);
          mkdirp(dir, function(err) {
            if(err) {
              return next(err);
            }
            tally.dirs++;
            dirExists[dir] = true;
            return next();
          });

        }
function ( next ) { // Here destination is allways a file. // Only the parent folder is required var dir = dirname ( dest ) ; if ( dirExists [ dir ] ) { return next ( ) ; } grunt . verbose . writeln ( '  Make directory %s' , dir . blue ) ; mkdirp ( dir , function ( err ) { if ( err ) { return next ( err ) ; } tally . dirs ++ ; dirExists [ dir ] = true ; return next ( ) ; } ) ; }
Make parent directory
Make parent directory