From f35d447894689fd62a33cdb95eca8519715f0bff Mon Sep 17 00:00:00 2001 From: Emmanuel Yusufu Kimaswa Date: Thu, 28 May 2026 11:28:20 +0300 Subject: [PATCH] docs: mention TypeScript option on the generator page express-generator only scaffolds JavaScript, and the generator page never points anywhere for TypeScript. Add a short section on the 4x and 5x English pages pointing to the community express-generator-typescript tool, flagged as community-maintained. Closes #7231 Signed-off-by: Emmanuel Yusufu Kimaswa --- src/content/docs/en/4x/starter/generator.mdx | 10 ++++++++++ src/content/docs/en/5x/starter/generator.mdx | 10 ++++++++++ 2 files changed, 20 insertions(+) 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.