Skip to content

Commit 1b6202d

Browse files
committed
feat: support solid with typescript template
1 parent ea0a138 commit 1b6202d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/commands/create-project.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class CreateProjectCommand implements ICommand {
203203
this.$logger.printMarkdown(`# Let’s create a NativeScript app!`);
204204
this.$logger.printMarkdown(`
205205
Answer the following questions to help us build the right app for you. (Note: you
206-
can skip this prompt next time using the --template option, or the --ng, --react, --vue, --svelte, --ts, or --js flags.)
206+
can skip this prompt next time using the --template option, or using --ng, --react, --solid, --svelte, --vue, --ts, or --js flags.)
207207
`);
208208
}
209209
}
@@ -366,6 +366,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
366366
value: constants.RESERVED_TEMPLATE_NAMES.solid,
367367
description: CreateProjectCommand.HelloWorldTemplateDescription,
368368
},
369+
{
370+
key: `${CreateProjectCommand.HelloWorldTemplateKey} using TypeScript`,
371+
value: constants.RESERVED_TEMPLATE_NAMES.solidts,
372+
description: `${CreateProjectCommand.HelloWorldTemplateDescription} using TypeScript`,
373+
},
369374
{
370375
key: CreateProjectCommand.BlankVisionTemplateKey,
371376
value: "@nativescript/template-blank-solid-vision",

lib/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export const RESERVED_TEMPLATE_NAMES: IStringDictionary = {
146146
reactjs: "@nativescript/template-blank-react",
147147
solid: "@nativescript/template-blank-solid",
148148
solidjs: "@nativescript/template-blank-solid",
149+
solidts: "@nativescript/template-blank-solid-ts",
149150
svelte: "@nativescript/template-blank-svelte",
150151
// vision templates
151152
vision: "@nativescript/template-hello-world-ts-vision",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy