0.1.1 • Published 10 years ago

gulp-rebase v0.1.1

Weekly downloads
29
License
MIT
Repository
github
Last release
10 years ago

gulp-rebase

Rebase gulp file paths

Installation

npm install gulp-rebase

Usage

Beginning of path

  gulp.src('some/path/**/*.js')
  .pipe(rebase('^2'));
  // Would convert /this/path/here => /this/path

End of path

  gulp.src('some/path/**/*.js')
  .pipe(rebase('2$'));
  // Would convert /this/path/here/is/long => /this/path/here

Explicit overwrite

  gulp.src('some/path/**/*.js')
  .pipe(rebase('/some/new/path'));
  // Would convert /this/path/here => /some/new/path