gulp-module-renamer
v0.0.3
Published
rename angular module
Downloads
1
Readme
Gulp Angular Module Renamer
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'))
});