Commit Graph

1147 Commits

Author SHA1 Message Date
Dugagjin Lashi
3d1c0eacea add webp support for typescript (#5978)
* add webp support for typescript

* moved webp declaration below png
2018-12-11 10:53:44 -05:00
Manoel
a9cf551db7 Update eslint instructions in docs (#5990) 2018-12-08 09:02:58 +02:00
Ian Sutherland
7513481491 Update links to docs in all package README files (#5912)
* Update links to docs in all package README files

* Fix formatting of issue template

* Fix formatting of issue template
2018-12-06 13:30:54 -07:00
Stephen Algeo
433d0be3b1 Improve error messaging in verifyPackageTree.js (#5974) 2018-12-06 13:39:01 +02:00
Joe Haddad
c50a7ea7de Suggest a different default for speed reasons (#5959)
Advanced users can opt into this behavior, but it's generally outside the users' control to fix and comes with performance concerns
2018-12-04 10:58:48 -05:00
Ian Sutherland
88f2b0bcfc Add pre-eject message about new features in v2 (#5954)
* Add pre-eject message about new features in v2

* Make message bold
2018-12-03 21:54:56 -05:00
Michael Jackson
4878f2cae7 Correct some comments (#5927)
And remove some outdated info from 1.x
2018-11-29 20:48:07 -08:00
Ian Sutherland
2616d5fd9c Add placeholders to template README for bit.ly links. (#5808)
* Add placeholders to template README for bit.ly links.

* Add placeholders to template README for goo.gl links.
2018-11-27 11:29:30 -05:00
Alex Guerra
81c0cd4b19 Disable copy to clipboard in cra --info (#5905)
* Disable copy to clipboard in cra --info

Fixes an issue where npx create-react-app --info throws an exception on Windows. The exception was caused by envinfo's copy to clipboard functionality; envinfo is distributed pre-bundled, but the dependency it uses for copying to the clipboard makes use of a binary on Windows that can't be found once the bundle is made. Disabling copy to clipboard fixes the issue. Closes #5757.

* Explicitly set clipboard to false
2018-11-27 08:07:44 -05:00
Ian Schmitz
49e258b4a6 Support setupTests.ts (#5698) 2018-11-22 21:14:25 -08:00
Ian Sutherland
d9ee05cc8a Remove unnecessary whitespace in template HTML 2018-11-22 21:57:51 -07:00
Sibiraj
85a8a22513 Run prettier on HTML files (#5839) 2018-11-22 23:41:10 -05:00
Simen Bekkhus
3a14e8fc26 fix: make typescriptformatter support 0.5 of fork checker (#5879) 2018-11-22 20:44:35 -05:00
Joe Haddad
5c3f333837 Upgrade babel deps 2018-11-21 22:54:53 -05:00
Ian Schmitz
445a56dab4 Fix TypeScript decorator support (#5783)
* Fix TypeScript decorator support

* Update babel flow override

* WIP
2018-11-21 21:57:25 -05:00
Simen Bekkhus
2c92fd48f1 fix: add sideEffects: false to react-error-overlay (#5451)
This allows us to leave the import in the code, and webpack will still tree shake it out
2018-11-21 21:53:03 -05:00
Rasmus Eneman
a5ea56abbf Add allowESModules option to babel-preset-react-app (#5487)
* Add allowESModules option to babel-preset-react-app

* changes after feedback

* Apply suggestions from code review

Co-Authored-By: Pajn <rasmus@eneman.eu>
2018-11-21 14:39:33 -05:00
Nima Shahri
fb465a39e5 Make named-asset-import plugin work with export-as syntax (#5573)
* update named-asset-import babel plugin

* add tests to named-asset-import plugin

* add more plugin test

* extract generateNewSource method, renaming variables

* extract replaceNotVisitedSpecifiers for export and import visitors

* remove visited list update from importDeclaration

* renaming methods and removing return directly instead of saving
2018-11-20 09:00:29 -07:00
Adam Wanninger
7e25df150d extra polyfills must be included manually (#5814)
* extra polyfills must be included manually, fixes #5795

* make note italicized
2018-11-16 09:06:01 -05:00
Gregory Shilin
0c9c97a778 Don't polyfill fetch for Node -- additional files (#5789) 2018-11-13 10:22:03 -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
Dennis Ushakov
20be1b6707 ignore intellij module files when generating an app (#4605) 2018-11-02 11:24:50 -04:00
Trevor Brindle
79ad494367 update envinfo to 5.11.1 (#5685) 2018-11-02 10:28:42 -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
Joe Haddad
6094329bf9 Update cached lock file 2018-10-31 23:28:26 -04:00
Andrew Lisowski
36ce5786f5 Expose reportRuntimeError (#4709)
* factor out crashWithFrames and expose reportRuntimeError

* address code review and move error call to handleRuntimeError
2018-10-31 23:20:23 -04:00
Joe Haddad
1a8003dbdc Add support for decorators (#5659)
* Turn on decorators

* Add decorator test
2018-10-31 23:08:52 -04:00
Nima Shahri
337541b452 add tests for named-asset-imports plugin (#5575)
* add tests for named-asset-imports plugin

* add ticketFormats store/saga

* change import to require on test file to avoid using babel when running tests

* remove all babel dependencies as not needed more for running tests

* update tests and rename file to index.test.js

* remove npmignore as it is whitelisted in package.json

* add babel-plugin-named-asset-import tests to e2e
2018-10-31 14:33:02 -06: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
12be8387cf Update lockfile 2018-10-29 23:39:52 -04:00
Joe Haddad
0542698fe5 Update lockfile 2018-10-29 23:25:40 -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
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
c662dfb01b Update lockfile 2018-10-25 07:01:02 -07:00
Joe Haddad
ae516d8161 Remove publish time waste 2018-10-25 00:40:52 -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