1
0
Fork 0

Merge pull request #52 from zachwolf/optional-git

Adds ability to conditionally create a git repo
This commit is contained in:
Travis Fischer 2018-08-15 16:44:29 -05:00 committed by Joost De Cock
parent 534eb109e9
commit fd11c17b98
4 changed files with 34 additions and 12 deletions

View file

@ -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