-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
26 lines (25 loc) · 1004 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
var gulp = require('gulp');
var closureCompiler = require('gulp-closure-compiler');
gulp.task('main:compile', function() {
return gulp.src(["mvcct.enhancer.js"], { base: "." })
.pipe(closureCompiler({
//compilerPath: 'node_modules/gulp-closure-compiler/node_modules/google-closure-compiler/compiler.jar',
fileName: 'mvcct.enhancer.min.js',
compilerFlags: {
compilation_level: 'ADVANCED_OPTIMIZATIONS'
}
}))
.pipe(gulp.dest('.'));
});
gulp.task('input:basic:compile', function() {
return gulp.src(["enhancer-modules/mvcct.enhancer.input.basic.js"], { base: "." })
.pipe(closureCompiler({
//compilerPath: 'node_modules/gulp-closure-compiler/node_modules/google-closure-compiler/compiler.jar',
fileName: 'mvcct.enhancer.input.basic.min.js',
compilerFlags: {
compilation_level: 'ADVANCED_OPTIMIZATIONS'
}
}))
.pipe(gulp.dest('./enhancer-modules'));
});
gulp.task("default", ["main:compile", "input:basic:compile"]);