// Dependencies
import changed from 'gulp-changed';
import gulp from 'gulp';
import replace from 'gulp-replace';

// Variables
var source_base = 'source';
var build_base = 'build';

export function base() {
    return gulp.src([
        source_base + '/robots.txt',
        source_base + '/sitemap.xml',
        source_base + '/.htaccess',
        source_base + '/humans.txt',
    ])
        .pipe(changed(build_base))
        .pipe(gulp.dest(build_base));
}

// export function cacheManifest() {
//     return gulp.src(source_base + '/cache.appcache')
//         .pipe(replace('RANDOMIZE-ME', new Date().getTime()))
//         .pipe(gulp.dest(build_base));
// }

export function libraries() {
    return gulp.src(source_base + '/assets/libraries/**/*')
        .pipe(changed(build_base + '/assets/libs'))
        .pipe(gulp.dest(build_base + '/assets/libs'));
}

@@ -124,19 +124,49 @@
 les%0A
-var 
+let source = %7B%7D;%0Alet build = %7B%7D;%0A%0A
 source
-_
+.
 base
@@ -182,18 +182,14 @@
 e';%0A
-var 
 build
-_
+.
 base
@@ -254,33 +254,33 @@
 %5B%0A        source
-_
+.
 base + '/robots.
@@ -291,33 +291,33 @@
 ,%0A        source
-_
+.
 base + '/sitemap
@@ -329,33 +329,33 @@
 ,%0A        source
-_
+.
 base + '/.htacce
@@ -369,25 +369,25 @@
       source
-_
+.
 base + '/hum
@@ -426,25 +426,25 @@
 hanged(build
-_
+.
 base))%0A     
@@ -459,33 +459,33 @@
 (gulp.dest(build
-_
+.
 base));%0A%7D%0A%0A// ex
@@ -537,33 +537,33 @@
  gulp.src(source
-_
+.
 base + '/cache.a
@@ -664,25 +664,25 @@
 p.dest(build
-_
+.
 base));%0A// %7D
@@ -739,17 +739,17 @@
 c(source
-_
+.
 base + '
@@ -796,25 +796,25 @@
 hanged(build
-_
+.
 base + '/ass
@@ -858,9 +858,9 @@
 uild
-_
+.
 base

Update _copy.js