mirror of https://github.com/snachodog/mybuddy.git
34 lines
752 B
JavaScript
34 lines
752 B
JavaScript
var gulp = require('gulp');
|
|
|
|
var concat = require('gulp-concat');
|
|
var pump = require('pump');
|
|
|
|
var scriptsConfig = require('../config.js').scriptsConfig;
|
|
|
|
|
|
gulp.task('scripts', ['scripts:vendor', 'scripts:graph', 'scripts:app']);
|
|
|
|
gulp.task('scripts:vendor', function(cb) {
|
|
pump([
|
|
gulp.src(scriptsConfig.vendor),
|
|
concat('vendor.js'),
|
|
gulp.dest(scriptsConfig.dest)
|
|
], cb);
|
|
});
|
|
|
|
gulp.task('scripts:graph', function(cb) {
|
|
pump([
|
|
gulp.src(scriptsConfig.graph),
|
|
concat('graph.js'),
|
|
gulp.dest(scriptsConfig.dest)
|
|
], cb);
|
|
});
|
|
|
|
gulp.task('scripts:app', function(cb) {
|
|
pump([
|
|
gulp.src(scriptsConfig.app),
|
|
concat('app.js'),
|
|
gulp.dest(scriptsConfig.dest)
|
|
], cb);
|
|
});
|