Skip to content

Commit

Permalink
feat: support custom initial commit message (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensche authored and yyx990803 committed Apr 26, 2018
1 parent 739424d commit 11ccf64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/@vue/cli/bin/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/Creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11ccf64

Please sign in to comment.