Skip to content

Commit 1d579ad

Browse files
authored
chore(create-app): add hints for brownfield plugins (#568)
* chore(create-app): add hints for brownfield plugins * changeset
1 parent ec90814 commit 1d579ad

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.changeset/red-drinks-rescue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-rock': patch
3+
---
4+
5+
chore(create-app): add hints for brownfield plugins

packages/create-app/src/lib/templates.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

1617
export type LocalTemplateInfo = {
@@ -20,6 +21,7 @@ export type LocalTemplateInfo = {
2021
packageName: string;
2122
directory: string | undefined;
2223
importName?: string;
24+
hint?: string;
2325
};
2426

2527
export 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',

packages/create-app/src/lib/utils/prompts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)