Commit Graph

13 Commits

Author SHA1 Message Date
Dan Abramov
c8c3e48abd Update adding-typescript.md 2019-01-03 15:38:20 +00:00
Max Belsky
4a6007e035 Add docs for creating new TypeScript project (#6015) 2018-12-11 09:45:39 +02:00
Vincent
d671b8fb04 Add link to cra-ts migration guide (#5629)
For users coming from create-react-app-typescript, the added link provides instructions on how to port their app to Create React App.
2018-10-30 11:34:07 -04:00
Joe Haddad
b6e4cc70aa Add note about react-scripts version 2018-10-29 23:50:46 -04:00
Joe Haddad
eca0ec0d52 Refine how TypeScript env types are handled (#5593)
* Specify types in package

* Do not remove types file on eject

* Stop copying types into generated project

* Reference react and react-dom

* Reference node types

* Install node types as well

* Restore copying

* Add Node to the list of installed types

* Reference Jest types

* Remove jest types from install

* Remove jest from CRA install

* Remove Jest reference and let user do this themselves

* Stop copying types file

* Add types key to package.json

* Add appTypeDeclarations and create when missing

* Rename declarations file

* Add Jest back to install instructions

* Minimize diff
2018-10-27 22:11:47 -07:00
Joe Haddad
6a94cc7c51 Adjust notes 2018-10-24 01:09:52 -04:00
Joe Haddad
34962872e7 Simplify TypeScript setup instructions 2018-10-24 01:07:33 -04:00
Bruno Lemos
3c11efe206 Simplified TypeScript steps (#5533) 2018-10-22 15:35:51 -04:00
Joe Haddad
2cf5cca586 Update adding-typescript.md 2018-10-22 13:46:39 -04:00
Joe Haddad
e0939b6262 Automatically create a tsconfig.json when entrypoint is TypeScript 2018-10-22 08:24:48 -04:00
Joe Haddad
680cf9371a Validate tsconfig when using TypeScript (#5524)
* Sanity check TypeScript config

* Check more options

* Set all defaults and suggestions

* Update docs

* Update doc notes

* Automatically copy react app declared types to project on start

* Remove note about loaders.d.ts
2018-10-22 08:15:41 -04:00
Joe Haddad
c019942bf9 Always type check TypeScript when being used (#5515)
* Always type check TypeScript when being used

* Use alternate version
2018-10-21 18:24:33 -04:00
Bruno Lemos
88aef1100f TypeScript syntax support (#4837) 2018-10-21 12:03:26 -04:00