Created
October 14, 2015 10:03
-
-
Save YOzaz/536752b8ee66af061680 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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