The init CLI should prompt for TS usage
Have you read the Contributing Guidelines on issues?
- [X] I have 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)
Hello @slorber, I would like to work on this issue if nobody picked it up.
@san70sh Please send directly a PR, Docusaurus maintainers don't assign issue to people
Hey @slorber I implemented a solution for this, lets discuss about it in the pr! :D
Should be fixed by https://github.com/facebook/docusaurus/pull/9442