node package manager

gulp-rename-git

gulp-rename-git

Install

npm install gulp-rename-git

Example use

var gulp = require('gulp'),
    gitRename = require('gulp-rename-git');
 
gulp.task('default', function() {
  return gulp.src('./src/*.js')
 
    // Look here
    .pipe(gitRename(function(path, gitHash) {
      path.dirname = '/' + gitHash + '/js/';
    }))
 
    .pipe(gulp.dest('./dist'));
});