1
0
mirror of https://github.com/Foltik/Shimapan synced 2025-01-05 15:58:03 -05:00

Update gulpfile to separate apps

This commit is contained in:
Jack 2017-10-14 15:17:16 -04:00
parent 1c97b75667
commit 582b1260a2
Signed by: foltik
GPG Key ID: 303F88F996E95541

View File

@ -3,11 +3,27 @@ var concat = require('gulp-concat');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var jsFiles = 'public/js/**/*.js',
jsDest = 'public/libs/app';
gulp.task('concat', function() {
return gulp.src(jsFiles)
.pipe(concat('app.js'))
.pipe(gulp.dest(jsDest));
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'));
});
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'));
});