docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

The init CLI should prompt for TS usage

Open slorber opened this issue 2 years ago • 3 comments

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 https://github.com/facebook/docusaurus/issues/9402 (DX should be consistent)

slorber avatar Oct 13 '23 15:10 slorber

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

san70sh avatar Oct 17 '23 17:10 san70sh

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

OzakIOne avatar Oct 18 '23 15:10 OzakIOne

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

Rafael-Martins avatar Oct 24 '23 00:10 Rafael-Martins

Should be fixed by https://github.com/facebook/docusaurus/pull/9442

Josh-Cena avatar Jul 19 '24 22:07 Josh-Cena