import gulp from 'gulp'
import zip from 'gulp-zip'

const TASK_NAME = 'package'

function packageTask () {
  let counter = 1
  gulp.autoRegister(TASK_NAME, config => {
    console.log('Iteration: ', counter)
    console.log('=============================\n')
    console.log('config.src: ', config.src)
    console.log('=============================\n')
    console.log('config.options.filename: ', config.options.filename)
    console.log('=============================\n')
    console.log('config.dest: ', config.dest)
    console.log('=============================')
    return gulp.src(config.src)
      .pipe(zip(config.options.filename))
      .pipe(gulp.dest(config.dest))
  })
}
console.log('Running TASK_NAME:', TASK_NAME)
console.log('\n')
console.log('packageTask', packageTask)
console.log('\n')
console.log('=============================')
gulp.task(TASK_NAME, packageTask)

export default packageTask

@@ -169,688 +169,121 @@
     
-console.log('Iteration: ', counter)%0A    console.log('=============================%5Cn')%0A    console.log('config.src: ', config.src)%0A    console.log('=============================%5Cn')%0A    console.log('config.options.filename: ', config.options.filename)%0A    console.log('=============================%5Cn')%0A    console.log('config.dest: ', config.dest)%0A    console.log('=============================')%0A    return gulp.src(config.src)%0A      .pipe(zip(config.options.filename))%0A      .pipe(gulp.dest(config.dest))%0A  %7D)%0A%7D%0Aconsole.log('Running TASK_NAME:', TASK_NAME)%0Aconsole.log('%5Cn')%0Aconsole.log('packageTask', packageTask)%0Aconsole.log('%5Cn')%0Aconsole.log('=============================')
+return gulp.src(config.src)%0A      .pipe(zip(config.options.filename))%0A      .pipe(gulp.dest(config.dest))%0A  %7D)%0A%7D%0A
 %0Agul

remove logs