8000 Add an `isInPlace` data to metadata `completeMessage` property by hugohil · Pull Request #125 · vuejs/vue-cli · GitHub
[go: up one dir, main page]

Skip to content

Add an isInPlace data to metadata completeMessage property #125

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

Closed
wants to merge 6 commits into from

Conversation

hugohil
Copy link
@hugohil hugohil commented Jul 19, 2016

We test if a destination path is provided. If not, then we are scaffolding into the current directory and pass the isCurrentDir to true, if not, we set it to false.

hugohil added 2 commits July 19, 2016 02:19
We test if a destination path is provided. If not, then we are
scaffolding into the current directory and pass the `isCurrentDir` to
`true`, if not, we set it to `false`.
@hugohil hugohil changed the title Add an isCurrentDir data to metadata completeMessage property Add an isInPlace data to metadata completeMessage property Jul 19, 2016
@zigomir
Copy link
Contributor
zigomir commented Aug 27, 2016

Hi @hugohil!

Thanks for participating and sorry for not responding for so long here. As you can see, at this moment your PR has some conflicts with master branch.

My general concern is if we really need another argument just to get a slightly better completeMessage. Also, there is no test that would clearly demonstrate what this change is really doing.

What do you think?

@hugohil
Copy link
Author
hugohil commented Aug 27, 2016

@zigomir Thanks for the feedback !

I resolve conflicts and also avoided using this option as a new parameter for the generate function.

For the tests, I just spend a some time trying to get one working without any luck (changing the cwd and still dealing with async got a bit tricky). I'll give it another shot later.

} else {
checkDistBranch(template, downloadAndGenerate)
}
checkDistBranch(template, downloadAndGenerate)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there should be no changes here in vue-init file. We shouldn't call checkDistBranch for every case because with that user can't specify the branch from which she/he wants to download template for.

@zigomir
Copy link
Contributor
zigomir commented Aug 27, 2016

@hugohil thanks! This looks better now. I left you few comments on vue-init file changes.

@@ -40,7 +40,8 @@ describe('vue-cli', () => {
sass: true
},
pick: 'no',
noEscape: true
noEscape: true,
isInPlace: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isInPlace isn't used anywhere else.

@zigomir
Copy link
Contributor
zigomir commented Aug 29, 2016

@hugohil I left you few more comments...but then just went ahead and did it on my own in #156. I hope you don't mind.

@zigomir zigomir closed this in #156 Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0