2016-06-09 19:48:58 +08:00
|
|
|
var gulp = require('gulp'),
|
|
|
|
uglify = require('gulp-uglify');
|
|
|
|
var concat = require('gulp-concat');
|
|
|
|
|
|
|
|
gulp.task('minify', function () {
|
2016-06-12 13:40:14 +08:00
|
|
|
gulp.src(['../jquery-1.3.2.js','angular.js', 'angular-route.js', 'angular-sanitize.min.js'])
|
2016-06-09 19:48:58 +08:00
|
|
|
.pipe(uglify())
|
|
|
|
.pipe(concat('angular.all.min.js'))
|
|
|
|
.pipe(gulp.dest('build'))
|
|
|
|
});
|
2016-06-14 14:24:39 +08:00
|
|
|
|
|
|
|
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'))
|
|
|
|
});
|