From 44c628df8e11f616946a87d49b0599c8c95cf794 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 10 Feb 2015 18:45:22 -0500 Subject: [PATCH] Update now updates gulpfile --- tasks/install.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tasks/install.js b/tasks/install.js index 814b4236e..63b523918 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -85,9 +85,10 @@ module.exports = function () { if(currentConfig && manager.name === 'NPM') { var + updateFolder = path.join(manager.root, currentConfig.base), updatePaths = { config : path.join(manager.root, files.config), - tasks : path.join(manager.root, currentConfig.base, folders.tasks), + tasks : path.join(updateFolder, folders.tasks), definition : path.join(currentConfig.paths.source.definitions.replace(process.cwd(), manager.root)), site : path.join(currentConfig.paths.source.site.replace(process.cwd(), manager.root)), theme : path.join(currentConfig.paths.source.themes.replace(process.cwd(), manager.root)) @@ -110,6 +111,12 @@ module.exports = function () { console.info('Updating tasks...'); wrench.copyDirSyncRecursive(source.tasks, updatePaths.tasks, settings.wrench.update); + console.info('Updating gulpfile.js'); + gulp.src(source.userGulpFile) + .pipe(plumber()) + .pipe(gulp.dest(updateFolder)) + ; + console.info('Adding new site theme files...'); wrench.copyDirSyncRecursive(source.site, updatePaths.site, settings.wrench.site); @@ -268,7 +275,7 @@ module.exports = function () { ; // create gulp file - console.info('Creating gulp-file.js'); + console.info('Creating gulpfile.js'); gulp.src(source.userGulpFile) .pipe(plumber()) .pipe(gulp.dest(installFolder))