gulp-rename-git
v0.1.0
Published
Renames a file and passes a git hash to use on the path
Downloads
3
Readme
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'));
});