Skip to content

Instantly share code, notes, and snippets.

@YOzaz
Created October 14, 2015 10:03
Show Gist options
  • Save YOzaz/536752b8ee66af061680 to your computer and use it in GitHub Desktop.
Save YOzaz/536752b8ee66af061680 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var concat = require('gulp-concat');
var ngAnnotate = require('gulp-ng-annotate');
var plumber = require('gulp-plumber');
gulp.task('app', function() {
return gulp.src(['public/app/**/app.js', 'public/app/**/*.module.js', 'public/app/**/*.js'])
.pipe(plumber())
.pipe(concat('app.js', {newLine: ';'}))
.pipe(ngAnnotate({add: true}))
.pipe(plumber.stop())
.pipe(gulp.dest('public/src/'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment