gaf-mobile
Version:
GAF mobile Web site
37 lines (30 loc) • 830 B
JavaScript
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
gulp.task('javascript', function() {
return gulp.src([
'app/js/controllers/**/*.js',
'app/js/services/**/*.js' // ...
])
.pipe($.uglify())
.pipe($.concat('all.min.js'))
.pipe(gulp.dest('build/js'));
});
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe($.ngAnnotate())
.pipe(gulp.dest('dist'));
//.pipe($.minifyHtml({empty:true}))
});
gulp.task('flTranslateExtract', function() {
return gulp.src('app/**/*.html')
.pipe($.flTranslate.extract())
.pipe(gulp.dest('app'));
});
gulp.task('flTranslateExtract', function() {
return gulp.src('app/**/*.html')
.pipe($.flTranslate.compile({
catalog: 'lang/*.po'
}))
.pipe(gulp.dest('app'));
});
;