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

Docusaurus TypeScript support #127

Open
Nightbr opened this issue Dec 1, 2020 · 2 comments
Open

Docusaurus TypeScript support #127

Nightbr opened this issue Dec 1, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Nightbr
Copy link

Nightbr commented Dec 1, 2020

Hello 👋, Thanks for nx-plus plugins for nx! I use it for docusaurus & it works great 👌

Description

I would like to see an option to generate a Docusaurus App with TypeScript instead of only js.

Motivation

My Nx monorepo is composed of APIs in Nestjs in TypeScript, React Apps or Angular Apps in TypeScript, and all my libs & components are written in TS (or tsx). So it could be nice to also move Docusaurus to TypeScript (better interoperability and use of shared libs & components already written in TypeScript).

Suggested Implementation

It seems with Docusaurus 2 you can easily manage to use TypeScript out-of-the-box:

https://v2.docusaurus.io/docs/typescript-support

Could be a nice feature for Docusaurus v2 integration with Nx. I will try to look at the builder in the code to see if I could draft a PR easily.

Thank you for nx-plus plugins & for your help!

@Nightbr Nightbr added the enhancement New feature or request label Dec 1, 2020
@ZachJW34
Copy link
Owner

ZachJW34 commented Dec 2, 2020

Glad it's working for you! As you said, many Nx projects use Typescript so Typescript support for Docsuaurus would be nice. If you are interested in contributing, check out our contributing documentation. Also, check out the conversation for #112. It's a workaround for typescript component support but it might be what you are looking for.

@binary64
Copy link

This would be AWESOME! I beleive it would require an nx plugin for docusaurus, in order to inject into the webpack config to (presumably) load in ts-loader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants