Skip to content

Instantly share code, notes, and snippets.

@jdx
Last active August 29, 2015 14:03
Show Gist options
  • Save jdx/29634019cb2bef7f0333 to your computer and use it in GitHub Desktop.
Save jdx/29634019cb2bef7f0333 to your computer and use it in GitHub Desktop.
var gulp = require('gulp')
var concat = require('gulp-concat')
var uglify = require('gulp-uglify')
var ngAnnotate = require('gulp-ng-annotate')
gulp.task('js', function () {
gulp.src(['src/**/module.js', 'src/**/*.js'])
.pipe(concat('app.js'))
.pipe(ngAnnotate())
.pipe(uglify())
.pipe(gulp.dest('.'))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment