Created
July 9, 2014 23:14
-
-
Save jdx/944fd754771cf654a30a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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