Skip to content

[Feature] Please add --template javascript or --template typescript on npx @tanstack/cli create my-app --router-only #331

@flyingduck92

Description

@flyingduck92

Which project does this relate to?

Create Tanstack App (file-based routing)

Describe the feature

Please add --template jsx or --template tsx for additional the option on create tanstack-router app

for instance (without --template should use tsx as default):
npx @tanstack/cli create my-app --router-only --template jsx --framework react -> use .jsx not .tsx with file-based routing
pnpx @tanstack/cli create my-app --router-only --template jsx --framework react -> use .jsx not .tsx with file-based routing
or
npx @tanstack/cli create my-app --router-only --framework react -> use .tsx (default) not .jsx with file-based routing
pnpx @tanstack/cli create my-app --router-only --framework react -> use .tsx (default) not .jsx with file-based routing

On my third create-app, I have to add --template javascript in order to show prompt Would you like to use TypeScript? Yes/No

Additional context

No idea why I got .tsx and .jsx in a single app, even i got 2 vite.config .ts and .js
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions