Skip to content

Commit 2172407

Browse files
committed
fix: support plugin in create-app
1 parent 11959be commit 2172407

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.changeset/long-beers-cross.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rnef/create-app': patch
3+
---
4+
5+
fix: support plugin in create-app

packages/create-app/src/lib/utils/parse-cli-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function parseCliOptions(argv: string[]): CliOptions {
3030
const options = minimist<MinimistOptions>(argv, {
3131
alias: { h: 'help', v: 'version', p: 'platform', t: 'template', d: 'dir' },
3232
boolean: ['help', 'version', 'override'],
33-
string: ['template', 'platform', 'dir'],
33+
string: ['template', 'platform', 'dir', 'plugin' ],
3434
});
3535

3636
return {

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,19 @@ export function printHelpMessage(
2626
2727
Options:
2828
29-
-h, --help Display help for command
30-
-v, --version Output the version number
31-
-d, --dir Create project in specified directory
32-
-t, --template Specify template to use
33-
-p, --platform Specify platform(s) to use
34-
--override Override files in target directory
29+
-h, --help Display help for command
30+
-v, --version Output the version number
31+
-d, --dir Create project in specified directory
32+
-t, --template Specify template to use
33+
-p, --platform Specify platform(s) to use
34+
--plugin Specify plugin(s) to use
35+
--remote-cache-provider Specify remote cache provider
36+
--override Override files in target directory
3537
36-
Templates:
38+
Available templates:
3739
${templates.map((t) => t.name).join(', ')}
3840
39-
Platforms:
41+
Available platforms:
4042
${platforms.map((p) => p.name).join(', ')}
4143
`);
4244
}

0 commit comments

Comments
 (0)