'use strict';

const gulp  = require('gulp');
const babel = require('gulp-babel');

gulp.task('default', () =>
  gulp.src('lib/delve.js')
  .pipe(babel({ presets: ['es2015'] }))
  .pipe(gulp.dest('dist'))
);

'use strict';

const gulp  = require('gulp');
const clean = require('gulp-clean');
const babel = require('gulp-babel');

gulp.task('clean-dist', () =>
  gulp.src('dist/', { read: false })
  .pipe(clean())
);

gulp.task('default', [ 'clean-dist' ], () =>
  gulp.src('lib/*.js')
  .pipe(babel({ presets: [ 'es2015' ] }))
  .pipe(gulp.dest('dist'))
);

Add gulp clean & build tasks
Add gulp clean & build tasks
