Skip to content

The init CLI should prompt for TS usage #9401

@slorber

Description

@slorber

Have you read the Contributing Guidelines on issues?

Motivation

Currently the only way to init a site with TypeScript is to use the following command:

npx create-docusaurus@latest my-website classic --typescript

My suggestion is we should support these commands:

npx create-docusaurus@latest my-website classic --javascript
npx create-docusaurus@latest my-website classic --typescript

If no language is provided, the CLI should be interactive and ask the user if they want to use TypeScript.


Related to #9402 (DX should be consistent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    apprenticeIssues that are good candidates to be handled by a Docusaurus apprentice / traineeproposalThis issue is a proposal, usually non-trivial change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions