Richard's TypeScript template for Create React App. Same as cra-template-typescript but better :)!
-
build
directory is also copied tooutput
, this is helpful for some build systems. - The
homepage
property is package.json is set to"."
. - Does not include the placeholder files: logo.svg, robots.txt, App.css, App.test.tsx, reportWebVitals.ts.
- App.tsx and index.html are stripped back, they have no visible content.
- Indenting is with tabs not spaces (with .editorconfig).
To use this template, add --template richards-typescript
when creating a new app.
For example:
npx create-react-app my-app --template richards-typescript
# or
yarn create react-app my-app --template richards-typescript
For more information, please refer to:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.