text: import gulp from 'gulp'
  import babel from 'gulp-babel'
  import rimraf from 'gulp-rimraf'
  
  const paths = {
    in: {
      js: 'lib/*.js',
      assets: 'lib/assets/*'
    },
    out: {
      js: 'dist',
      assets: 'dist/assets'
    }
  }
  
  gulp.task('transpile', gulp.series(() => {
    return gulp.src(paths.in.js)
    .pipe(babel())
    .pipe(gulp.dest(paths.out.js))
  }))
  
  gulp.task('assets', gulp.series(() => {
    return gulp.src(paths.in.assets)
    .pipe(gulp.dest(paths.out.assets))
  }))
  
  gulp.task('clean', gulp.series(() => {
    return gulp.src(paths.out.js, {
      read: false
    })
    .pipe(rimraf())
  }))
  
  gulp.task('default', gulp.series(['transpile', 'assets']))
  