const gulp = require('gulp')
const runSequence = require('run-sequence')
const harp = require('harp')
const webpackStream = require('webpack-stream')
const del = require('del')

const config = require('./config')

gulp.task('clean', () => {
  return del(['./www'])
})

gulp.task('webpack:prod', () => {
  return gulp.src('./site/public/_js/script.js')
    .pipe(webpackStream(config.webpack.prod))
    .pipe(gulp.dest('site/'))
})

gulp.task('harp:compile', done => {
  harp.compile('./site', '../www', done)
})

gulp.task('build', done => {
  runSequence(
    ['clean', 'dist'],
    'webpack:prod',
    'harp:compile',
    done
  )
})

@@ -502,24 +502,130 @@
 , done)%0A%7D)%0A%0A
+gulp.task('copy:site', done =%3E %7B%0A  return gulp.src(%5B'./www/**/*'%5D)%0A    .pipe(gulp.dest('./releases'))%0A%7D)%0A%0A
 gulp.task('b
@@ -719,16 +719,46 @@
 mpile',%0A
+    'copy:site',%0A    'clean',%0A
     done

Copy site into releases folder