Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: auto install did not copy build during npm install #4430

Merged
merged 3 commits into from
Dec 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tasks/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ gulp.task('run setup', function() {
answers = {
overwrite : 'yes',
install : 'auto',
useRoot : true,
semanticRoot : currentConfig.base
};
}
else {
Expand Down Expand Up @@ -385,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())
Expand Down Expand Up @@ -417,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);
}
Expand Down