-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
80 lines (74 loc) · 2.79 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
var gulp = require('gulp');
var closureCompiler = require('gulp-closure-compiler');
gulp.task('serverGrid:compile', function() {
return gulp.src(["modules/mvcct.controls.serverGrid.js"], { base: "." })
.pipe(closureCompiler({
//compilerPath: 'node_modules/gulp-closure-compiler/node_modules/google-closure-compiler/compiler.jar',
fileName: 'mvcct.controls.serverGrid.min.js',
compilerFlags: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level:'QUIET'
}
}))
.pipe(gulp.dest('./modules'));
});
gulp.task('query:compile', function() {
return gulp.src(["modules/mvcct.controls.query.js"], { base: "." })
.pipe(closureCompiler({
//compilerPath: 'node_modules/gulp-closure-compiler/node_modules/google-closure-compiler/compiler.jar',
fileName: 'mvcct.controls.query.min.js',
compilerFlags: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level:'QUIET'
}
}))
.pipe(gulp.dest('./modules'));
});
gulp.task('routing:compile', function() {
return gulp.src(["modules/mvcct.routing.js"], { base: "." })
.pipe(closureCompiler({
//compilerPath: 'node_modules/gulp-closure-compiler/node_modules/google-closure-compiler/compiler.jar',
fileName: 'mvcct.routing.min.js',
compilerFlags: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level:'QUIET'
}
}))
.pipe(gulp.dest('./modules'));
});
gulp.task('ajax:compile', function() {
return gulp.src(["modules/mvcct.controls.ajax.js"], { base: "." })
.pipe(closureCompiler({
//compilerPath: 'node_modules/gulp-closure-compiler/node_modules/google-closure-compiler/compiler.jar',
fileName: 'mvcct.controls.ajax.min.js',
compilerFlags: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level:'QUIET'
}
}))
.pipe(gulp.dest('./modules'));
});
gulp.task('autocomplete:compile', function() {
return gulp.src(["modules/mvcct.controls.autocomplete.js"], { base: "." })
.pipe(closureCompiler({
//compilerPath: 'node_modules/gulp-closure-compiler/node_modules/google-closure-compiler/compiler.jar',
fileName: 'mvcct.controls.autocomplete.min.js',
compilerFlags: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level:'QUIET'
}
}))
.pipe(gulp.dest('./modules'));
});gulp
gulp.task('controls:compile', function() {
return gulp.src(["mvcct.controls.js"], { base: "." })
.pipe(closureCompiler({
fileName: 'mvcct.controls.min.js',
compilerFlags: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level:'QUIET'
}
}))
.pipe(gulp.dest('.'));
});
gulp.task("default", ["controls:compile", "ajax:compile", "autocomplete:compile", "serverGrid:compile", "query:compile", "routing:compile"]);