tasks/app.js
function () {
                var stream = new $.streamqueue({
                    objectMode: true
                });

                //Optionally injected additional javascript sourcecode
                injectIntoStream(stream, options.injectInto.js.pre);

                // App files without vendor files
                stream.queue(gulp.src(options.files.jsNoVendor));

                //Angular template files
                stream.queue(
                    gulp.src(options.files.partials)
                        .pipe($.htmlMinify())
                        .pipe($.angularTemplatecache(options.templateCacheOptions))
                );

                //Optionally injected additional javascript sourcecode
                injectIntoStream(stream, options.injectInto.js.post);

                return stream
                    .done()
                    .pipe($.angularFilesort())
                    .pipe($.concat(options.output.js.app))
                    .pipe($.generateOutPipe(options.paths.build, options.output.js.path, 'app.js', options.rev, $.jsMinify)());
            }
function () {
                var stream = new $.streamqueue({
                    objectMode: true
                });

                //Optionally injected additional javascript sourcecode
                injectIntoStream(stream, options.injectInto.js.pre);

                // App files without vendor files
                stream.queue(gulp.src(options.files.jsNoVendor));

                //Angular template files
                stream.queue(
                    gulp.src(options.files.partials)
                        .pipe($.htmlMinify())
                        .pipe($.angularTemplatecache(options.templateCacheOptions))
                );

                //Optionally injected additional javascript sourcecode
                injectIntoStream(stream, options.injectInto.js.post);

                return stream
                    .done()
                    .pipe($.angularFilesort())
                    .pipe($.concat(options.output.js.app))
                    .pipe($.generateOutPipe(options.paths.build, options.output.js.path, 'app.js', options.rev, $.jsMinify)());
            }
function ( ) { var stream = new $ . streamqueue ( { objectMode : true } ) ; //Optionally injected additional javascript sourcecode injectIntoStream ( stream , options . injectInto . js . pre ) ; // App files without vendor files stream . queue ( gulp . src ( options . files . jsNoVendor ) ) ; //Angular template files stream . queue ( gulp . src ( options . files . partials ) . pipe ( $ . htmlMinify ( ) ) . pipe ( $ . angularTemplatecache ( options . templateCacheOptions ) ) ) ; //Optionally injected additional javascript sourcecode injectIntoStream ( stream , options . injectInto . js . post ) ; return stream . done ( ) . pipe ( $ . angularFilesort ( ) ) . pipe ( $ . concat ( options . output . js . app ) ) . pipe ( $ . generateOutPipe ( options . paths . build , options . output . js . path , 'app.js' , options . rev , $ . jsMinify ) ( ) ) ; }
Takes all app javascript files, angular templates and concats and minifies them
Takes all app javascript files angular templates and concats and minifies them