BetterDiscordApp-v2/core/gulpfile.js

28 lines
545 B
JavaScript
Raw Normal View History

const
2018-01-10 17:02:29 +01:00
gulp = require('gulp'),
pump = require('pump'),
babel = require('gulp-babel'),
plumber = require('gulp-plumber'),
watch = require('gulp-watch');
2018-01-10 17:02:29 +01:00
const task_build = function () {
2018-01-10 17:02:29 +01:00
return pump([
gulp.src('src/**/*js'),
plumber(),
babel(),
gulp.dest('dist')
]);
2018-01-10 17:02:29 +01:00
}
const task_watch = function () {
return pump([
watch('src/**/*js'),
plumber(),
babel(),
gulp.dest('dist')
]);
}
gulp.task('build', task_build);
gulp.task('watch', task_watch);