diff --git a/gulpfile.babel.js b/gulpfile.babel.js index f9436ee9077a570858e2368e75c2c0ed370d0022..e732dc6b630cb7da241d00fdf1ba451fc6124d62 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -47,16 +47,17 @@ gulp.task('compile', ['lint'], () => { .pipe(babel()) // compile only modified files // .pipe(cache.cache()) // cache compiled files .pipe(gulp.dest('build')); // move compiled files to build directory +}); +gulp.task('build', ['compile'], () => { + var filesToCopy = [ 'config.json', 'package.json' ]; // copy configuration file to build directory - gulp.src('config.json') + gulp.src(filesToCopy) .pipe(gulp.dest('build')); createLogDir(); }); -gulp.task('build', ['compile']); - gulp.task('docco', () => { gulp.src('./src/**/*.js') .pipe(docco())