diff --git a/src/content/docs/en/4x/starter/generator.mdx b/src/content/docs/en/4x/starter/generator.mdx index 4f22665f43..893cf4fd03 100644 --- a/src/content/docs/en/4x/starter/generator.mdx +++ b/src/content/docs/en/4x/starter/generator.mdx @@ -123,3 +123,13 @@ The app structure created by the generator is just one of many ways to structure Feel free to use this structure or modify it to best suit your needs. + +## Generating a TypeScript app + +`express-generator` scaffolds a JavaScript app. For a TypeScript skeleton, the community-maintained [`express-generator-typescript`](https://github.com/seanpmaxwell/express-generator-typescript) tool runs the same way: + +```bash +$ npx express-generator-typescript myapp +``` + +It produces a project with a comparable structure plus `tsconfig.json` and build scripts. This tool is maintained by the community, not the Express team. diff --git a/src/content/docs/en/5x/starter/generator.mdx b/src/content/docs/en/5x/starter/generator.mdx index 4f22665f43..893cf4fd03 100644 --- a/src/content/docs/en/5x/starter/generator.mdx +++ b/src/content/docs/en/5x/starter/generator.mdx @@ -123,3 +123,13 @@ The app structure created by the generator is just one of many ways to structure Feel free to use this structure or modify it to best suit your needs. + +## Generating a TypeScript app + +`express-generator` scaffolds a JavaScript app. For a TypeScript skeleton, the community-maintained [`express-generator-typescript`](https://github.com/seanpmaxwell/express-generator-typescript) tool runs the same way: + +```bash +$ npx express-generator-typescript myapp +``` + +It produces a project with a comparable structure plus `tsconfig.json` and build scripts. This tool is maintained by the community, not the Express team.