-
Notifications
You must be signed in to change notification settings - Fork 8
/
gulpfile.js
44 lines (42 loc) · 1.56 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
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var babel = require('gulp-babel');
var maps = require('gulp-sourcemaps');
var gulpSequence = require('gulp-sequence');
gulp.task('build', gulpSequence('build_engineering_flot'));
gulp.task('build_engineering_flot', function() {
return gulp.src([
'./source/jquery.canvaswrapper.js',
'./source/jquery.colorhelpers.js',
'./source/jquery.flot.js',
'./source/jquery.flot.saturated.js',
'./source/jquery.flot.browser.js',
'./source/jquery.flot.drawSeries.js',
'./source/jquery.flot.errorbars.js',
'./source/jquery.flot.uiConstants.js',
'./source/jquery.flot.logaxis.js',
'./source/jquery.flot.symbol.js',
'./source/jquery.flot.flatdata.js',
'./source/jquery.flot.navigate.js',
'./source/jquery.flot.errorbars.js',
'./source/jquery.flot.fillbetween.js',
'./source/jquery.flot.stack.js',
'./source/jquery.flot.touchNavigate.js',
'./source/jquery.flot.hover.js',
'./source/jquery.flot.touch.js',
'./source/jquery.flot.time.js',
'./source/jquery.flot.axislabels.js',
'./source/jquery.flot.selection.js',
'./source/jquery.flot.composeImages.js',
'./source/jquery.flot.legend.js'
])
.pipe(maps.init())
.pipe(babel({
presets: ['es2015']
}))
.pipe(concat('jquery.flot.js'))
.pipe(uglify())
.pipe(maps.write('./'))
.pipe(gulp.dest('dist/es5'));
});