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:
parent
1c97b75667
commit
582b1260a2
30
gulpfile.js
30
gulpfile.js
@ -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'));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user