mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
17 lines
374 B
JavaScript
17 lines
374 B
JavaScript
import gulp from 'gulp';
|
|
import babel from 'gulp-babel';
|
|
|
|
const ES2015_SOURCE = 'common/script/src/**/*.js';
|
|
const ES2015_DIST = 'common/dist/scripts/';
|
|
|
|
gulp.task('babel:common', () => {
|
|
return gulp.src(ES2015_SOURCE)
|
|
.pipe(babel())
|
|
.pipe(gulp.dest(ES2015_DIST));
|
|
});
|
|
|
|
gulp.task('babel:common:watch', () => {
|
|
gulp.watch([ES2015_SOURCE], ['babel:common']);
|
|
});
|
|
|