File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
packages/@vue/cli-ui/src/graphql-api/connectors Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,13 @@ async function initCreator (context) {
84
84
installProgress . on ( 'log' , onInstallLog )
85
85
86
86
// Presets
87
+ const manualPreset = {
88
+ id : '__manual__' ,
89
+ name : 'views.project-create.tabs.presets.manual.name' ,
90
+ description : 'views.project-create.tabs.presets.manual.description' ,
91
+ link : null ,
92
+ features : [ ]
93
+ }
87
94
const presetsData = creator . getPresets ( )
88
95
presets = [
89
96
...Object . keys ( presetsData ) . map (
@@ -103,13 +110,7 @@ async function initCreator (context) {
103
110
return info
104
111
}
105
112
) ,
106
- {
107
- id : '__manual__' ,
108
- name : 'views.project-create.tabs.presets.manual.name' ,
109
- description : 'views.project-create.tabs.presets.manual.description' ,
110
- link : null ,
111
- features : [ ]
112
- }
113
+ manualPreset
113
114
]
114
115
115
116
// Features
@@ -122,7 +123,7 @@ async function initCreator (context) {
122
123
description : data . description || null ,
123
124
link : data . link || null ,
124
125
plugins : data . plugins || null ,
125
- enabled : false
126
+ enabled : ! ! data . checked
126
127
} )
127
128
) ,
128
129
{
@@ -135,6 +136,12 @@ async function initCreator (context) {
135
136
}
136
137
]
137
138
139
+ manualPreset . features = features . filter (
140
+ f => f . enabled
141
+ ) . map (
142
+ f => f . id
143
+ )
144
+
138
145
// Prompts
139
146
await prompts . reset ( )
140
147
creator . injectedPrompts . forEach ( prompts . add )
You can’t perform that action at this time.
0 commit comments