Merge pull request #52 from zachwolf/optional-git
Adds ability to conditionally create a git repo
This commit is contained in:
parent
534eb109e9
commit
fd11c17b98
4 changed files with 34 additions and 12 deletions
|
@ -15,8 +15,9 @@ module.exports = async (info) => {
|
|||
const {
|
||||
manager,
|
||||
template,
|
||||
name,
|
||||
templatePath,
|
||||
name
|
||||
git
|
||||
} = info
|
||||
|
||||
// handle scoped package names
|
||||
|
@ -53,7 +54,7 @@ module.exports = async (info) => {
|
|||
await promise
|
||||
}
|
||||
|
||||
{
|
||||
if (git) {
|
||||
const promise = module.exports.initGitRepo({ dest })
|
||||
ora.promise(promise, 'Initializing git repo')
|
||||
await promise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue