feat: support custom initial commit message (#1116)

This commit is contained in:
Derek Henscheid
2018-04-26 14:27:36 -05:00
committed by Evan You
parent 739424dca9
commit 11ccf64322
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -39,6 +39,7 @@ program
.option('-p, --preset <presetName>', 'Skip prompts and use saved or remote preset')
.option('-d, --default', 'Skip prompts and use default preset')
.option('-i, --inlinePreset <json>', 'Skip prompts and use inline JSON string as preset')
.option('-g, --initialCommit <message>', 'Specify initial commit message (when git is available)')
.option('-m, --packageManager <command>', 'Use specified npm client when installing dependencies')
.option('-r, --registry <url>', 'Use specified npm registry when installing dependencies (only for npm)')
.option('-f, --force', 'Overwrite target directory if it exists')
+1 -1
View File
@@ -164,7 +164,7 @@ module.exports = class Creator {
await run('git', ['config', 'user.name', 'test'])
await run('git', ['config', 'user.email', 'test@test.com'])
}
await run(`git commit -m init`)
await run('git', ['commit', '-m', cliOptions.initialCommit || 'init'])
}
// log instructions