Commit Graph

821 Commits

Author SHA1 Message Date
Sibiraj
85a8a22513 Run prettier on HTML files (#5839) 2018-11-22 23:41:10 -05:00
Joe Haddad
5c3f333837 Upgrade babel deps 2018-11-21 22:54:53 -05:00
Joe Haddad
30ee52cf3b Merge webpack configuration (#5722)
* Rename production configuration

* Upgrade lint staged

* Merge mode, bail, devtool, and entry

* Merge output settings

* Remove old comment

* Merge some trivial differences

* Disable minimize in development mode

* Only minify html and generate SW in production

* Adjust comment

* Toggle development plugins

* Add missing imports

* Scope settings

* Delete development config

* Use new config file

* Remove unnecessary config import
2018-11-07 22:11:20 -05:00
Noel Yoo
77f8df7ad7 Fix typo (#5727) 2018-11-06 07:44:59 -05:00
Ben Scott
457a562541 Version bump postcss-preset-env to latest (#5721) 2018-11-05 19:45:09 -05:00
Ian Schmitz
5cdf360246 Fix tsconfig.json lib suggested value (#5701) 2018-11-03 15:21:10 -04:00
Joe Haddad
aac14ea579 Add permissive TS lib defaults (#5694) 2018-11-02 19:25:56 -04:00
Joe Haddad
3e9ba54018 Publish
- babel-plugin-named-asset-import@0.2.3
 - babel-preset-react-app@6.1.0
 - create-react-app@2.1.1
 - react-dev-utils@6.1.1
 - react-error-overlay@5.1.0
 - react-scripts@2.1.1
2018-10-31 23:29:52 -04:00
Eduardo Duran
6311bac13e Make serviceWorker config argument optional in template (#5651) 2018-10-31 09:47:00 -04:00
ZHAO Jinxiang
e1321e520c fix: Duplicate string index signature in ProcessEnv (#5621) 2018-10-31 00:42:12 -04:00
Joe Haddad
b8c180dca3 Publish
- babel-preset-react-app@6.0.0
 - confusing-browser-globals@1.0.5
 - create-react-app@2.1.0
 - eslint-config-react-app@3.0.5
 - react-dev-utils@6.1.0
 - react-error-overlay@5.0.6
 - react-scripts@2.1.0
2018-10-29 23:40:56 -04:00
Joe Haddad
6364bbf6dc Remove react-scripts type reference on eject (#5611)
* Remove react-scripts type reference on eject

* Check for env file

* Check eject for typescript

* Shuffle appTypeDeclarations

* Append internal types on eject

* Ensure lib is published for types

* Adjust comment

* Don't add a bunch of new lines

* File should exist and not be deleted

* Add debug

* Set file explicitly

* Revert "Set file explicitly"

This reverts commit bcd58a36cbd08a71af50b037d8f1fae6c595fb4e.

* Copy file before destroying ourselves

* Revert "Add debug"

This reverts commit 0068ba81c6d79d99788877c9e1b618acd7412dce.
2018-10-29 23:15:52 -04:00
Bruno Lemos
feea693f63 Ignore json files from TypeScript type checking (#5614)
Fix #5613
2018-10-29 10:33:57 -04:00
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
Bruno Lemos
952e7b13c4 Update App.tsx (#5588) 2018-10-26 11:57:21 -07: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
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
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
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
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
Ian Sutherland
60f9bc2ace Update doc links in template README (#5512) 2018-10-21 15:23:15 -04:00
Bruno Lemos
88aef1100f TypeScript syntax support (#4837) 2018-10-21 12:03:26 -04:00
Dan Abramov
f1fbc671e1 Update README.md 2018-10-19 20:06:23 -04:00
Dan Abramov
fa6da6219a Update README.md 2018-10-19 20:05:20 -04:00
Dan Abramov
0ff690dba7 Point README to docs 2018-10-19 20:04:06 -04:00
Kit Thompson
302daeffff Fix typo
explictly seems like a typo for explicitly
2018-10-18 10:31:43 -04:00
Ran Yitzhaki
05d3fd2d0d Remove dot from the end of the link (#5449) 2018-10-16 20:14:33 -04:00
Dan Abramov
f89385f743 Publish
- babel-preset-react-app@5.0.4
 - confusing-browser-globals@1.0.4
 - create-react-app@2.0.4
 - eslint-config-react-app@3.0.4
 - react-dev-utils@6.0.5
 - react-error-overlay@5.0.5
 - react-scripts@2.0.5
2018-10-14 20:03:15 +01:00
Rafael Lüder
a70055fe5b Added note on update to .flowconfig for .scss imports (#5321)
* Added note on update to .flowconfig for .scss imports

Added a note aimed at Flow users on how to get Flow to recognize the .scss imports.

* Mentioned .sass extension in note, added backticks
2018-10-14 19:36:44 +01:00
Gavin Barron
c52cdc6280 Correct instructions for HTTPS and PowerShell (#5394)
Current instructions for running using HTTPS in a PowerShell prompt are incorrect and do not work on Windows 10 v1809
2018-10-14 19:30:45 +01:00