18 lines
568 B
JavaScript
18 lines
568 B
JavaScript
var gulp = require('gulp'),
|
|
uglify = require('gulp-uglify');
|
|
var concat = require('gulp-concat');
|
|
|
|
gulp.task('minify', function () {
|
|
gulp.src(['../jquery-1.3.2.js','angular.js', 'angular-route.js', 'angular-sanitize.min.js'])
|
|
.pipe(uglify())
|
|
.pipe(concat('angular.all.min.js'))
|
|
.pipe(gulp.dest('build'))
|
|
});
|
|
|
|
gulp.task("default", function(){
|
|
gulp.src(['app.js','others/factory.js','others/filter.js', 'controllers/*.js', 'directives/*.js', 'others/routes.js'])
|
|
.pipe(uglify())
|
|
.pipe(concat('app.min.js'))
|
|
.pipe(gulp.dest('build'))
|
|
});
|