mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-21 03:48:36 -05:00
feat: support custom initial commit message (#1116)
This commit is contained in:
committed by
Evan You
parent
739424dca9
commit
11ccf64322
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user