Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The init CLI should prompt for TS usage #9401

Closed
1 task done
slorber opened this issue Oct 13, 2023 · 4 comments
Closed
1 task done

The init CLI should prompt for TS usage #9401

slorber opened this issue Oct 13, 2023 · 4 comments
Labels
apprentice Issues that are good candidates to be handled by a Docusaurus apprentice / trainee proposal This issue is a proposal, usually non-trivial change

Comments

@slorber
Copy link
Collaborator

slorber commented Oct 13, 2023

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)

@slorber slorber added proposal This issue is a proposal, usually non-trivial change apprentice Issues that are good candidates to be handled by a Docusaurus apprentice / trainee labels Oct 13, 2023
@Josh-Cena Josh-Cena changed the title The init CLI should promp for TS usage The init CLI should prompt for TS usage Oct 13, 2023
@san70sh
Copy link

san70sh commented Oct 17, 2023

Hello @slorber, I would like to work on this issue if nobody picked it up.

@OzakIOne
Copy link
Collaborator

@san70sh Please send directly a PR, Docusaurus maintainers don't assign issue to people

@Rafael-Martins
Copy link
Contributor

Hey @slorber I implemented a solution for this, lets discuss about it in the pr! :D

@Josh-Cena
Copy link
Collaborator

Should be fixed by #9442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apprentice Issues that are good candidates to be handled by a Docusaurus apprentice / trainee proposal This issue is a proposal, usually non-trivial change
Projects
None yet
Development

No branches or pull requests

5 participants