Skip to content

Commit

Permalink
feat(project create): bare option
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Apr 5, 2019
1 parent d27dd24 commit c81e6c2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vue/cli-ui/apollo-server/connectors/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ async function create (input, context) {
}

const createOptions = {
packageManager: input.packageManager
packageManager: input.packageManager,
bare: input.bare
}
// Git
if (input.enableGit && input.gitCommitMessage) {
Expand Down
1 change: 1 addition & 0 deletions packages/@vue/cli-ui/apollo-server/schema/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ enum ProjectType {
input ProjectCreateInput {
folder: String!
force: Boolean!
bare: Boolean!
packageManager: PackageManager
preset: String!
remote: String
Expand Down
1 change: 1 addition & 0 deletions packages/@vue/cli-ui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@
"options": {
"label": "Additional options",
"force": "Overwrite target folder if it exists",
"bare": "Scaffold project without beginner instructions",
"git-title": "Git repository",
"git": "Initialize git repository (recommended)",
"git-commit-message": "Initial commit message (optional)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@
>
{{ $t('org.vue.views.project-create.tabs.details.form.options.force') }}
</VueSwitch>

<VueSwitch
v-model="formData.bare"
class="extend-left bare"
>
{{ $t('org.vue.views.project-create.tabs.details.form.options.bare') }}
</VueSwitch>
</VueFormField>

<VueFormField
Expand Down Expand Up @@ -466,6 +473,7 @@ function formDataFactory () {
return {
folder: '',
force: false,
bare: false,
enableGit: true,
gitCommitMessage: '',
packageManager: undefined,
Expand Down Expand Up @@ -629,6 +637,7 @@ export default {
input: {
folder: this.formData.folder,
force: this.formData.force,
bare: this.formData.bare,
enableGit: this.formData.enableGit,
gitCommitMessage: this.formData.gitCommitMessage,
packageManager: this.formData.packageManager,
Expand Down

0 comments on commit c81e6c2

Please sign in to comment.