-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgulpfile.js
35 lines (32 loc) · 1.16 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
var gulp = require('gulp');
var concat = require('gulp-concat');
gulp.task('default', function () {
gulp.start('server', 'browser');
});
gulp.task('server', function () {
return gulp
.src([
'./servershim.js',
'./node_modules/highstock-release/adapters/standalone-framework.js',
'./highchartsAdapter.js',
'./node_modules/highstock-release/highstock.js',
'./highcharts.js',
'./node_modules/highstock-release/modules/exporting.js',
'./node_modules/highstock-release/modules/no-data-to-display.js'
])
.pipe(concat('index.js'))
.pipe(gulp.dest('./'));
});
gulp.task('browser', function () {
return gulp
.src([
'./node_modules/highstock-release/adapters/standalone-framework.js',
'./highchartsAdapter.js',
'./node_modules/highstock-release/highstock.js',
'./highcharts.js',
'./node_modules/highstock-release/modules/exporting.js',
'./node_modules/highstock-release/modules/no-data-to-display.js'
])
.pipe(concat('browser.js'))
.pipe(gulp.dest('./'));
});