2017-10-12 17:26:35 -04:00
|
|
|
var gulp = require('gulp');
|
|
|
|
var concat = require('gulp-concat');
|
|
|
|
var rename = require('gulp-rename');
|
|
|
|
var uglify = require('gulp-uglify');
|
|
|
|
|
2017-10-14 15:17:16 -04:00
|
|
|
gulp.task('js', function() {
|
|
|
|
gulp.start('shimapan');
|
|
|
|
gulp.start('shimapan-panel');
|
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task('shimapan', function() {
|
|
|
|
return gulp.src([
|
|
|
|
'public/js/services/*.js',
|
|
|
|
'public/js/shimapan/**/*.js'
|
|
|
|
])
|
|
|
|
.pipe(concat('shimapan.min.js'))
|
|
|
|
.pipe(uglify())
|
|
|
|
.pipe(gulp.dest('public/libs/app'));
|
|
|
|
});
|
2017-10-12 17:26:35 -04:00
|
|
|
|
2017-10-14 15:17:16 -04:00
|
|
|
gulp.task('shimapan-panel', function() {
|
|
|
|
return gulp.src([
|
|
|
|
'public/js/services/*.js',
|
|
|
|
'public/js/shimapan-panel/**/*.js'
|
|
|
|
])
|
|
|
|
.pipe(concat('shimapan-panel.min.js'))
|
|
|
|
.pipe(uglify())
|
|
|
|
.pipe(gulp.dest('public/libs/app'));
|
2017-10-12 17:26:35 -04:00
|
|
|
});
|