From 161f72cb9d33f8452f24f2b8dc0bac6705b9e99b Mon Sep 17 00:00:00 2001 From: Anson Tsao Date: Thu, 11 Aug 2016 22:34:19 -0700 Subject: [PATCH 1/3] FIX: auto install did not copy build during npm install --- tasks/install.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/install.js b/tasks/install.js index f1d822bb0..0243f52e3 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -196,6 +196,8 @@ gulp.task('run setup', function() { answers = { overwrite : 'yes', install : 'auto', + useRoot : true, + semanticRoot : currentConfig.base }; } else { From b6f1bddea2195693872399dbfded1a26647d19e4 Mon Sep 17 00:00:00 2001 From: Anson Tsao Date: Fri, 12 Aug 2016 13:06:12 -0700 Subject: [PATCH 2/3] Fix: Testing whether semantic.json is present in the install path, not the source path - otherwise semantic.json was overwritten during npm install (autoInstall:true) --- tasks/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install.js b/tasks/install.js index 0243f52e3..66514fcd6 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -387,7 +387,7 @@ gulp.task('create install files', function(callback) { ; // adjust variables in theme.less - if( fs.existsSync(files.config) ) { + if( fs.existsSync(installPaths.config) ) { console.info('Extending config file (semantic.json)', installPaths.config); return gulp.src(installPaths.config) .pipe(plumber()) From 301b3ad5a7626da070034e2a8aa3a902de139c36 Mon Sep 17 00:00:00 2001 From: Anson Tsao Date: Fri, 12 Aug 2016 13:23:31 -0700 Subject: [PATCH 3/3] FIX: build after autoInstall --- tasks/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install.js b/tasks/install.js index 66514fcd6..31fb2be25 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -419,7 +419,7 @@ gulp.task('create install files', function(callback) { gulp.task('clean up install', function() { // Completion Message - if(installFolder) { + if(installFolder && !install.shouldAutoInstall()) { console.log('\n Setup Complete! \n Installing Peer Dependencies. \x1b[0;31mPlease refrain from ctrl + c\x1b[0m... \n After completion navigate to \x1b[92m' + answers.semanticRoot + '\x1b[0m and run "\x1b[92mgulp build\x1b[0m" to build'); process.exit(0); }