2017-08-21 20:03:16 +00:00
|
|
|
var gulp = require('gulp');
|
|
|
|
|
|
|
|
var concat = require('gulp-concat');
|
|
|
|
var pump = require('pump');
|
|
|
|
|
|
|
|
var scriptsConfig = require('../config.js').scriptsConfig;
|
|
|
|
|
|
|
|
|
2017-08-24 13:48:38 +00:00
|
|
|
gulp.task('scripts', ['scripts:vendor', 'scripts:graph', 'scripts:app']);
|
2017-08-21 20:03:16 +00:00
|
|
|
|
|
|
|
gulp.task('scripts:vendor', function(cb) {
|
|
|
|
pump([
|
|
|
|
gulp.src(scriptsConfig.vendor),
|
|
|
|
concat('vendor.js'),
|
|
|
|
gulp.dest(scriptsConfig.dest)
|
|
|
|
], cb);
|
|
|
|
});
|
|
|
|
|
2017-08-24 13:48:38 +00:00
|
|
|
gulp.task('scripts:graph', function(cb) {
|
|
|
|
pump([
|
|
|
|
gulp.src(scriptsConfig.graph),
|
|
|
|
concat('graph.js'),
|
|
|
|
gulp.dest(scriptsConfig.dest)
|
|
|
|
], cb);
|
|
|
|
});
|
|
|
|
|
2017-08-21 20:03:16 +00:00
|
|
|
gulp.task('scripts:app', function(cb) {
|
|
|
|
pump([
|
|
|
|
gulp.src(scriptsConfig.app),
|
|
|
|
concat('app.js'),
|
|
|
|
gulp.dest(scriptsConfig.dest)
|
|
|
|
], cb);
|
|
|
|
});
|