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
|
@ -20,6 +20,7 @@ module.exports = async () => {
|
|||
.option('-a, --author <string>', 'author\'s github handle', defaults.author)
|
||||
.option('-l, --license <string>', 'package license', defaults.license)
|
||||
.option('-r, --repo <string>', 'package repo path')
|
||||
.option('-g, --no-git', 'generate without git init')
|
||||
.option('-m, --manager <npm|yarn>', 'package manager to use', /^(npm|yarn)$/, defaults.manager)
|
||||
.option('-t, --template <default|typescript>', 'package template to use', /^(default|typescript|custom)$/, defaults.template)
|
||||
.option('-p, --template-path <string>', 'custom package template path')
|
||||
|
@ -33,7 +34,8 @@ module.exports = async () => {
|
|||
repo: program.repo,
|
||||
manager: program.manager,
|
||||
template: program.template,
|
||||
skipPrompts: program.skipPrompts
|
||||
skipPrompts: program.skipPrompts,
|
||||
git: program.git
|
||||
}
|
||||
|
||||
Object.keys(opts).forEach((key) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue