forked from rong77/Chatbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
39 lines (33 loc) · 1005 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var gulp = require('gulp');
// include plug-ins
var concat = require('gulp-concat');
var stripDebug = require('gulp-strip-debug');
var uglify = require('gulp-uglify');
// JS concat, strip debugging and minify
gulp.task('default', function() {
// bundle for chatbox.js
gulp.src([
'./dev/server/config.js',
'./dev/client/chatbox/init.js',
'./dev/client/chatbox/utils/*.js',
'./dev/client/chatbox/controllers/*.js',
'./dev/client/chatbox/handlers/*.js',
'./dev/client/chatbox/main.js'
])
.pipe(concat('chatbox.js'))
.pipe(stripDebug())
.pipe(uglify())
.pipe(gulp.dest('./build/'));
// bundle for admin.js
gulp.src([
'./dev/client/controlpanel/init.js',
'./dev/client/controlpanel/utils/*.js',
'./dev/client/controlpanel/controllers/*.js',
'./dev/client/controlpanel/handlers/*.js',
'./dev/client/controlpanel/main.js'
])
.pipe(concat('admin.js'))
.pipe(stripDebug())
.pipe(uglify())
.pipe(gulp.dest('./build/'));
});