Miss any of our Open RFC calls?Watch the recordings here! »

gulp-module-renamer

0.0.3 • Public • Published

Gulp Angular Module Renamer

gulp-ng-module-renamer build status

Uses a regex pattern search and replace any js files with angular.modules('*') to angular.module('ute.ui.custom') or whatever you want

Example

var moduleRenamer = require('gulp-ng-module-renamer');
 
gulp.task('module-rename', function () {
 
  return gulp.src('app/js/**/*.js')
    .pipe(moduleRenamer()) // will default to default module name
    .pipe(gulp.dest('dist/js'))
 
});

Example With Options

var moduleRenamer = require('gulp-ng-module-renamer');
 
gulp.task('module-rename', function () {
 
  return gulp.src('app/js/**/*.js')
    .pipe(moduleRenamer({
      newModuleName: 'custom.module.name'
      showLogs: true
    }))
    .pipe(gulp.dest('dist/js'))
 
});

Install

npm i gulp-module-renamer

DownloadsWeekly Downloads

2

Version

0.0.3

License

ISC

Last publish

Collaborators

  • avatar