Getting started
Nx Cloud
Nx Consulting

JavaScript and TypeScript

Nx is a general-purpose build system and a general-purpose CLI. It works with JavaScript, TypeScript, Java, C#, Go, etc.. The core plugins Nx comes with do work best with JavaScript or TypeScript.

TypeScript is a great choice for many teams, but not for everyone. If you want to use Nx with JavaScript, simply pass --js to all generate commands, as follows:

nx g @nrwl/react:app myapp --js
nx g @nrwl/react:component mycmp --project=myapp --js

You can build/test/lint/serve your applications and libraries the same way whether you use JavaScript and TypeScript. You can also mix and match them.

Regardless whether you use JavaScript or TypeScript, you will have a tsconfig.json file at the root of the workspace. It's not used to build the applications and libraries in the workspace. It's only used to improve the editor experience.