Skip to content

Commit

Permalink
feat: support solid with typescript template
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Dec 29, 2024
1 parent ea0a138 commit 1b6202d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/commands/create-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class CreateProjectCommand implements ICommand {
this.$logger.printMarkdown(`# Let’s create a NativeScript app!`);
this.$logger.printMarkdown(`
Answer the following questions to help us build the right app for you. (Note: you
can skip this prompt next time using the --template option, or the --ng, --react, --vue, --svelte, --ts, or --js flags.)
can skip this prompt next time using the --template option, or using --ng, --react, --solid, --svelte, --vue, --ts, or --js flags.)
`);
}
}
Expand Down Expand Up @@ -366,6 +366,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
value: constants.RESERVED_TEMPLATE_NAMES.solid,
description: CreateProjectCommand.HelloWorldTemplateDescription,
},
{
key: `${CreateProjectCommand.HelloWorldTemplateKey} using TypeScript`,
value: constants.RESERVED_TEMPLATE_NAMES.solidts,
description: `${CreateProjectCommand.HelloWorldTemplateDescription} using TypeScript`,
},
{
key: CreateProjectCommand.BlankVisionTemplateKey,
value: "@nativescript/template-blank-solid-vision",
Expand Down
1 change: 1 addition & 0 deletions lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export const RESERVED_TEMPLATE_NAMES: IStringDictionary = {
reactjs: "@nativescript/template-blank-react",
solid: "@nativescript/template-blank-solid",
solidjs: "@nativescript/template-blank-solid",
solidts: "@nativescript/template-blank-solid-ts",
svelte: "@nativescript/template-blank-svelte",
// vision templates
vision: "@nativescript/template-hello-world-ts-vision",
Expand Down

0 comments on commit 1b6202d

Please sign in to comment.