Skip to content

Instantly share code, notes, and snippets.

@jdx
Created July 9, 2014 23:14
Show Gist options
  • Save jdx/944fd754771cf654a30a to your computer and use it in GitHub Desktop.
Save jdx/944fd754771cf654a30a to your computer and use it in GitHub Desktop.
var gulp = require('gulp')
var concat = require('gulp-concat')
var sourcemaps = require('gulp-sourcemaps')
var uglify = require('gulp-uglify')
var ngAnnotate = require('gulp-ng-annotate')
gulp.task('js', function () {
gulp.src(['src/**/module.js', 'src/**/*.js'])
.pipe(sourcemaps.init())
.pipe(concat('app.js'))
.pipe(ngAnnotate())
.pipe(uglify())
.pipe(sourcemaps.write())
.pipe(gulp.dest('.'))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment