Joe Haddad
a95822451c
Remove unsupported TS options ( #5609 )
2018-10-28 15:52:09 -04:00
Joe Haddad
3403f05e93
Ignore test files from reported type errors ( #5608 )
...
* Ignore test files from reported type errors
* Ignore setup proxy & test files
2018-10-28 15:24:12 -04:00
Joe Haddad
9747480f19
Turn on certain TypeScript options ( #5607 )
2018-10-28 14:47:06 -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
Bruno Lemos
418e6ee6ff
Fix process.env types ( #5589 )
...
Fix #5576
2018-10-26 12:07:01 -07:00
Jeroen Heijmans
8abf892e4b
Fixing the code splitting links in the ESLint output ( #5586 )
2018-10-26 11:58:14 -07:00
Bruno Lemos
952e7b13c4
Update App.tsx ( #5588 )
2018-10-26 11:57:21 -07:00
Joe Haddad
0379c3898c
Check for CI in publish
2018-10-26 11:54:39 -07:00
Joe Haddad
c662dfb01b
Update lockfile
2018-10-25 07:01:02 -07:00
Joe Haddad
bf0b5e221d
Prompt for 2fa auth code
2018-10-25 00:44:38 -07:00
Joe Haddad
6513c2d300
Add instructions for a prerelease
2018-10-25 00:41:35 -07:00
Joe Haddad
ef499e5764
Always publish with npm
2018-10-25 00:41:01 -07:00
Joe Haddad
ae516d8161
Remove publish time waste
2018-10-25 00:40:52 -07:00
Joe Haddad
0481ae8178
Fix tests x2
2018-10-24 18:37:15 -04:00
Joe Haddad
82052a53b6
Fix tests
2018-10-24 18:35:47 -04:00
Joe Haddad
3aa5c505e8
Enable forceConsistentCasingInFileNames by default
2018-10-24 17:31:19 -04:00
Joe Haddad
021f7e502f
Don't auto exclude test files
2018-10-24 17:23:21 -04:00
Joe Haddad
b50590f7f4
Add TypeScript app creation ( #5550 )
...
* Add TypeScript app creation
* Actually specify new extension
* Check for ts and tsx
* Fix types in default service worker file
* Mirror changes in JS version of SW
* Separate templates
* Use separate template directory
* Remove unused function
* Add a tsconfig file to the template
* Test install of typescript
* Add e2e for TypeScript
* Check for index.tsx to make sure we're not in the JS template
* Ensure TypeScript doesn't leak into normal installs
* Ignore some files
* Print version of CRA
* Fix script
* Add new template
* Move test to correct location
* Use `verifyTypeScriptSetup` routine to populate files
* Ensure tsconfig is created
2018-10-24 16:28:36 -04:00
Bruno Lemos
68a37351d5
Add typings for process.env ( #5557 )
2018-10-24 15:26:00 -04:00
Bruno Lemos
dc7cdf4a26
Change import syntax from typescript declaration ( #5559 )
2018-10-24 13:32:32 -04: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
Amy Lam
618225314f
Add Algolia search bar to Docusaurus ( #5551 )
2018-10-24 01:00:19 -04:00
Joe Haddad
5ead915b73
Automatically setup TypeScript when detected ( #5549 )
...
* Don't resolve TS files if it's not detected in the project
* Automatically create tsconfig.json file for user
* Remove always false check
* Add missing file
* Don't filter paths too early
2018-10-24 00:59:26 -04:00
Joe Haddad
9b4009d718
Remove service worker types from the main install
2018-10-23 20:31:57 -04:00
Nima Shahri
787a4a705d
Avoid pushing .pnp folder to git ( #5469 )
...
* Add .pnp folder ro gitignore file
Avoid pushing .pnp folder to git
* Add .pnp.js to ignore list
2018-10-23 16:09:43 -04:00
Ian Schmitz
315ff4b487
Respect tsconfig.json extends when validating config ( #5537 )
...
* Use TS to resolve tsconfig extends
* Prevent modifications to original tsconfig
* Print friendly error
2018-10-23 15:52:48 -04:00
Bruno Lemos
3c11efe206
Simplified TypeScript steps ( #5533 )
2018-10-22 15:35:51 -04:00
Bruno Lemos
c6cdf42036
Use TypeScript parser to read tsconfig.json ( #5532 )
2018-10-22 14:51:31 -04:00
Bruno Lemos
4c558d7c26
Enable TypeScript json module resolver ( #5531 )
...
* Enable TypeScript json module resolver
* Update verifyTypeScriptSetup.js
2018-10-22 14:49:56 -04:00
Joe Haddad
2cf5cca586
Update adding-typescript.md
2018-10-22 13:46:39 -04:00
Joe Haddad
5410da0bfc
Add TypeScript error formatting ( #5529 )
2018-10-22 13:29:18 -04:00
Jeffrey Posnick
81657147e4
Update Workbox dependency ( #5527 )
2018-10-22 12:23:33 -04:00
Joe Haddad
b8198b7a3c
Add an advanced typescript test case
2018-10-22 11:26:05 -04:00
Joe Haddad
7231285c6a
Properly exclude test files from typechecking
2018-10-22 08:47:41 -04:00
Joe Haddad
6b010b09a9
Fix TypeScript file detection
2018-10-22 08:36:41 -04:00
Joe Haddad
b5f156efec
Print friendly message on first time use
2018-10-22 08:32:48 -04:00
Joe Haddad
fa535304d1
Hoist compiler options
2018-10-22 08:26:52 -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
7ba343c187
Check for TypeScript install in preflight ( #5516 )
...
* Check for TypeScript install in preflight
* Remove unused import
2018-10-21 19:25:04 -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
Amy Lam
07ff5a02ed
Add "edit" feature to Docusaurus pages ( #5492 )
2018-10-21 17:53:53 -04:00
Dan Abramov
60b349fd85
Update required version in README
2018-10-21 16:30:29 -04:00
Ian Sutherland
60f9bc2ace
Update doc links in template README ( #5512 )
2018-10-21 15:23:15 -04:00
Iurii Kucherov
7ae01d6b29
Fix title on Safari ( #5499 )
2018-10-21 13:13:35 -04:00
Bruno Lemos
88aef1100f
TypeScript syntax support ( #4837 )
2018-10-21 12:03:26 -04:00
Joe Haddad
1ae90a18e7
Remove --dev flag
2018-10-21 11:57:24 -04:00
Noel Yoo
ebc721f7d9
Fix typo ( #5494 )
2018-10-20 12:53:58 -04:00
Jesse Peterman
473fde0e1c
Fixed typo in getting-started ( #5493 )
...
changed amy to any
2018-10-20 00:37:07 -07:00