gulp-angular-extender

Extend AngularJS applications by injecting module dependencies at build time

gulp-angular-extender

Extend AngularJS applications by injecting module dependencies at build time.

Install with npm.

npm install --save-dev gulp-angular-extender

The code below, add "plugin1" and "plugin2" to the "myApp" module dependencies.

var gulp = require('gulp');
var gulpAngularExtender = require('gulp-angular-extender');
 
 
gulp.task('default', function () {
    gulp.src('assets/**/*.js')
        .pipe(gulpAngularExtender({
          "myApp": [
            "plugin1",
            "plugin2"
          ]
        }))
        .pipe(gulp.dest('out/'));
});

Take at look at angular-extender to know what exactly this task does.

MIT @ Mario Casciaro