File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
packages/create-app/src/lib Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' create-rock ' : patch
3+ ---
4+
5+ chore(create-app): add hints for brownfield plugins
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export type NpmTemplateInfo = {
1111 /** Directory inside package that contains the template */
1212 directory : string | undefined ;
1313 importName ?: string ;
14+ hint ?: string ;
1415} ;
1516
1617export type LocalTemplateInfo = {
@@ -20,6 +21,7 @@ export type LocalTemplateInfo = {
2021 packageName : string ;
2122 directory : string | undefined ;
2223 importName ?: string ;
24+ hint ?: string ;
2325} ;
2426
2527export const TEMPLATES : TemplateInfo [ ] = [
@@ -37,6 +39,7 @@ export const PLUGINS: TemplateInfo[] = [
3739 type : 'npm' ,
3840 name : 'brownfield-ios' ,
3941 packageName : '@rock-js/plugin-brownfield-ios' ,
42+ hint : 'Setup packaging React Native app as a XCFramework' ,
4043 version : 'latest' ,
4144 directory : 'template' ,
4245 importName : 'pluginBrownfieldIos' ,
@@ -45,6 +48,7 @@ export const PLUGINS: TemplateInfo[] = [
4548 type : 'npm' ,
4649 name : 'brownfield-android' ,
4750 packageName : '@rock-js/plugin-brownfield-android' ,
51+ hint : 'Setup packaging React Native app as an AAR' ,
4852 version : 'latest' ,
4953 directory : 'template' ,
5054 importName : 'pluginBrownfieldAndroid' ,
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ export function promptPlugins(
135135 options : plugins . map ( ( plugin ) => ( {
136136 value : plugin ,
137137 label : plugin . name ,
138+ hint : plugin . hint ,
138139 } ) ) ,
139140 required : false ,
140141 } ) ;
You can’t perform that action at this time.
0 commit comments