Skip to content

Instantly share code, notes, and snippets.

@tytskyi
Forked from jdx/gulpfile.js
Last active September 7, 2016 10:20
Show Gist options
  • Save tytskyi/3dbad1deae894815bd1e60b99ef0a120 to your computer and use it in GitHub Desktop.
Save tytskyi/3dbad1deae894815bd1e60b99ef0a120 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