UNPKG

autoreload-gulp

Version:

Reloads gulp process when gulpfile.js or an imported relative dependency change

22 lines (17 loc) 469 B
import gulp from 'gulp'; import eslint from 'gulp-eslint'; import babel from 'gulp-babel'; import {srcGlob, allTestGlob, distDir} from './globs'; export const dist = () => { return gulp.src(srcGlob) .pipe(eslint()) .pipe(eslint.format()) .pipe(babel()) .pipe(gulp.dest(distDir)); }; export const lintTest = () => { return gulp.src(allTestGlob) .pipe(eslint()) .pipe(eslint.format()); }; gulp.task('dist', gulp.parallel(dist, lintTest));