@@ -141,74 +141,61 @@ or --js flags.)
141
141
}
142
142
143
143
private getJsTemplates ( ) {
144
- const templates : {
145
- key ?: string ;
146
- value : string ;
147
- description ?: string ;
148
- } [ ] = [ ] ;
149
- templates . push ( {
144
+ const templates = [ {
150
145
key : CreateProjectCommand . HelloWorldTemplateKey ,
151
146
value : "tns-template-hello-world" ,
152
147
description : CreateProjectCommand . HelloWorldTemplateDescription
153
- } ) ;
154
- templates . push ( {
148
+ } ,
149
+ {
155
150
key : CreateProjectCommand . DrawerTemplateKey ,
156
151
value : "tns-template-drawer-navigation" ,
157
152
description : CreateProjectCommand . DrawerTemplateDescription
158
- } ) ;
159
- templates . push ( {
153
+ } ,
154
+ {
160
155
key : CreateProjectCommand . TabsTemplateKey ,
161
156
value : "tns-template-tab-navigation" ,
162
157
description : CreateProjectCommand . TabsTemplateDescription
163
- } ) ;
158
+ } ] ;
159
+
164
160
return templates ;
165
161
}
166
162
167
163
private getTsTemplates ( ) {
168
- const templates : {
169
- key ?: string ;
170
- value : string ;
171
- description ?: string ;
172
- } [ ] = [ ] ;
173
- templates . push ( {
164
+ const templates = [ {
174
165
key : CreateProjectCommand . HelloWorldTemplateKey ,
175
166
value : "tns-template-hello-world-ts" ,
176
167
description : CreateProjectCommand . HelloWorldTemplateDescription
177
- } ) ;
178
- templates . push ( {
168
+ } ,
169
+ {
179
170
key : CreateProjectCommand . DrawerTemplateKey ,
180
171
value : "tns-template-drawer-navigation-ts" ,
181
172
description : CreateProjectCommand . DrawerTemplateDescription
182
- } ) ;
183
- templates . push ( {
173
+ } ,
174
+ {
184
175
key : CreateProjectCommand . TabsTemplateKey ,
185
176
value : "tns-template-tab-navigation-ts" ,
186
177
description : CreateProjectCommand . TabsTemplateDescription
187
- } ) ;
178
+ } ] ;
179
+
188
180
return templates ;
189
181
}
190
182
191
183
private getNgFlavors ( ) {
192
- const templates : {
193
- key ?: string ;
194
- value : string ;
195
- description ?: string ;
196
- } [ ] = [ ] ;
197
- templates . push ( {
184
+ const templates = [ {
198
185
key : CreateProjectCommand . HelloWorldTemplateKey ,
199
186
value : "tns-template-hello-world-ng" ,
200
187
description : CreateProjectCommand . HelloWorldTemplateDescription
201
- } ) ;
202
- templates . push ( {
188
+ } ,
189
+ {
203
190
key : CreateProjectCommand . DrawerTemplateKey ,
204
191
value : "tns-template-drawer-navigation-ng" ,
205
192
description : CreateProjectCommand . DrawerTemplateDescription
206
- } ) ;
207
- templates . push ( {
193
+ } ,
194
+ {
208
195
key : CreateProjectCommand . TabsTemplateKey ,
209
196
value : "tns-template-tab-navigation-ng" ,
210
197
description : CreateProjectCommand . TabsTemplateDescription
211
- } ) ;
198
+ } ] ;
212
199
213
200
return templates ;
214
201
}
0 commit comments