|
|
@ -10,8 +10,7 @@ gulp.task('help', help); |
|
|
|
|
|
|
|
gulp.task('compile', [ |
|
|
|
'compile-lib', |
|
|
|
'compile-bin', |
|
|
|
'compile-scripts' |
|
|
|
'compile-bin' |
|
|
|
]); |
|
|
|
|
|
|
|
gulp.task('compile-lib', function () { |
|
|
@ -43,20 +42,6 @@ gulp.task('compile-bin', function () { |
|
|
|
.pipe(gulp.dest('build/bin')); |
|
|
|
}); |
|
|
|
|
|
|
|
gulp.task('compile-scripts', function () { |
|
|
|
return gulp.src('scripts/*') |
|
|
|
.pipe(babel({ |
|
|
|
presets: ['es2015'], |
|
|
|
plugins: [ |
|
|
|
'syntax-async-functions', |
|
|
|
'transform-async-to-generator', |
|
|
|
'transform-runtime' |
|
|
|
] |
|
|
|
})) |
|
|
|
.pipe(ext.crop()) |
|
|
|
.pipe(gulp.dest('build/scripts')); |
|
|
|
}); |
|
|
|
|
|
|
|
gulp.task('lint', function () { |
|
|
|
return gulp.src([ |
|
|
|
'gulpfile.js', |
|
|
|