Commit Graph

1023 Commits

Author SHA1 Message Date
Dan Abramov
72c3d4ebb5 Try to fix CI (#3806)
* Try to fix CI

* Bump Jest elsewhere

* Bump Babel elsewhere

* Fix CI on Windows by writing .cmd file back
2018-01-16 18:24:14 +00:00
Dan Abramov
19e0bb1881 Support Jest --watchAll flag (#3804)
* Support Jest --watchAll flag

* Use clearer condition

* Add comma
2018-01-15 17:49:57 +00:00
Gary Meehan
f5708c67cd Add feature #3116 extended Jest config (#3802) 2018-01-15 17:03:14 +00:00
Joe Haddad
2e59c5412c Offer to set default browsers (#3792)
* Offer to set browser defaults

* Catch error on no

* Add ending newlines

* Ensure we re-check to prevent defaults from leaking

* Reduce nesting

* Add defaults message

* More explicit
2018-01-15 00:09:07 -05:00
Dan Abramov
0ff234949f Add regression test for #3055 (#3791) 2018-01-15 00:08:48 -05:00
Joe Haddad
5d1710aec2 Tell user what browser support their application was built with (#3782)
* Warn about browsers during build

* Better message
2018-01-15 00:08:48 -05:00
Dan Abramov
ea46cf4f36 Bump dependencies (#3785)
* Bump dependencies

* Use a more sensible way to compile error overlay

* Keep old chalk for global CLI
2018-01-15 00:08:47 -05:00
Joe Haddad
1013927a38 Allow parsing of ecma 8 2018-01-15 00:08:14 -05:00
Siddharth Doshi
c36d1a00a1 Add restricted globals package (#2286)
* Add restricted globals package

* Use new package in eslint-config

* Add eslint-restricted-globals dependency

* Fixes

* Update dependencies

* Update test and README

* Use jest

* tweaks

* Add lint/test to CI

* Fix lint
2018-01-15 00:08:14 -05:00
Joe Haddad
2ed4a7034f Compile code in parallel (#3778)
* Cheap perf gains

* Whoopsie
2018-01-15 00:08:14 -05:00
Dan Abramov
3d4440812c Compile dependencies with babel-preset-env (#3776) 2018-01-15 00:08:14 -05:00
Dan Abramov
11db9af4df Add preflight check to guard against wrong versions of webpack/eslint/jest higher up the tree (#3771)
* Run real scripts in local development

* Add preflight check warning

* I know what I am doing

* Move preflight check into individual scripts

This ensures we don't try to filter NODE_PATH twice, accidentally removing the now-absolute path.

* Slightly tweak the wording

* Fix lint
2018-01-15 00:08:14 -05:00
Joe Haddad
aa67a4f78e Loosen Babel preset to use browserslist (#3770)
* Provide better defaults

* Let babel determine features to compile

* meh

* Remove setting of BABEL_ENV

* Revert "Remove setting of BABEL_ENV"

This reverts commit ee2db707faa8b9ada3e7a668e8a94944f5955a1e.

* Set browsers to ie9
2018-01-15 00:08:14 -05:00
Chris Laughlin
f6c3730085 Enable getter-return rule as a warning (#3723)
* Updating ESlint to ^4.15.0 and adding new rules to config

* remoning style rule and auto fixing breakages from new rules

* Removing implicit-arrow-linebreak style rule

* adding new rule to eslint config project

* updating react scripts eslint version

* Pinning version.

* Changing getter-return to warn

* Update package.json

* Update .eslintrc
2018-01-15 00:08:14 -05:00
Dan Abramov
bf02edbef2 Bump eslint-plugin-jsx-a11y version (#2690)
* Bump eslint-plugin-jsx-a11y

* Update index.js

* Update index.js

* Update package.json

* Don't use links for non-linky things
2018-01-15 00:07:58 -05:00
Dan
a573d37f36 Fix windows build 2018-01-15 00:07:58 -05:00
Dan
c8970c4e9a Fix the build 2018-01-15 00:07:57 -05:00
Dan
b90f2337d1 wip 2018-01-15 00:07:57 -05:00
Clement Hoang
1552949a3b Switch to Babel 7 (#3522)
* Update dependencies in react-scripts

* Add first pass of working dependencies for babel-preset-react-app and react-scripts

* Bump more dependency versions

* Adjust more versions and edit fix options

* Restore functionality of old preset

* Disable Uglify in iframe webpack

* Apply prettier

* Re-enable cache in dev and clean deps

* Lock packages and move babel/core to dep in preset

* Bump babel-jest

* Re-enable uglify

* Nest forceAllTransforms correctly in webpack config

* Install babel-core bridge for jest

* Add jest-cli and babel-core bridge to make tests in react-error-overlay pass

* Re-enable transform-dynamic-import

* Add dynamic import syntax support back

* Use new babel in kitchensink

* Transform modules in test

* Revert "Transform modules in test"

This reverts commit 539e46a1d77259898b7e70d778a5e43fc25edc2a.

* Attempt fix for ejected tests

* try this

* Add regenerator back

* Bump babel deps to beta.34

* Remove bad files

* Use default when requiring babel transform plugin

* Bump deps

* Try the fix?

* Oopsie

* Remove some weird things

* Run Babel on react-error-overlay tests

* Try fixing kitchensink

* Use new API for codeFrame

* Add missing (?) babelrc

* Maybe this helps?

* Maybe fix mocha

* I shouldn't have deleted this 🤦
2018-01-15 00:07:57 -05:00
Dan Abramov
590df7eead Bump Jest to 22.0.6 (#3751) 2018-01-15 00:06:25 -05:00
aisensiy
776d2d6036 Update jest to 22 and support watchPathIgnorePatterns configuration (#3124)
* update jest to 21.0.2 to support watchPathIgnorePatterns configuration

* update jest to 21.1.0

* Try bumping Jest

* Bump babel-jest

* Try to debug weird CI failure

* Remove debug code

* Bump other Jest packages

* ffs

* temp

* Revert "temp"

This reverts commit 62aec9ac1ae70a995a89548feb7ac7870e5324c0.
2018-01-15 00:06:24 -05:00
Rami
3c79497eb0 Change the default start_url to . (#3346) 2018-01-15 00:06:24 -05:00
Jeffrey Posnick
b6aebb9e8f Remove the navigateFallback behavior from the generated service worker (#3419)
* Disables navigateFallback and updates the README

* Typos

* Updated a URL in a comment.
2018-01-15 00:06:24 -05:00
everdimension
813584ff35 Redisable require.ensure() (#3121) 2018-01-15 00:06:24 -05:00
Kent C. Dodds
3c3547f942 add experimental babel-plugin-macros support (#3675)
* add experimental babel-plugin-macros support

closes #2730

This will remain undocumented until the brave have tried it in the wild.

**Test Plan:**

There's currently no established way to test changes to
`babel-preset-react-app`. But I did create
[`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros)
[a while back](https://github.com/facebookincubator/create-react-app/issues/2730#issuecomment-328153982)
and it worked well.

* Pin the version
2018-01-15 00:06:24 -05:00
Andrey Sitnik
0a331710aa Move browsers to cross-tool config (#3644) 2018-01-15 00:06:24 -05:00
Joe Haddad
1f18ab7879 Specify ecma version (#3743) 2018-01-15 00:06:24 -05:00
Ade Viankakrisna Fadlil
ff544949b9 Use uglifyjs-webpack-plugin v1 (#3618) 2018-01-15 00:06:24 -05:00
Dan
e73a783ef1 Publish
- babel-preset-react-app@3.1.1
 - create-react-app@1.5.0
 - eslint-config-react-app@2.1.0
 - react-dev-utils@5.0.0
 - react-error-overlay@4.0.0
 - react-scripts@1.1.0
2018-01-15 00:53:37 +00:00
Dan Abramov
95b26012a4 Tweak section on expanding env variables 2018-01-15 00:36:53 +00:00
Ian Sutherland
b86fe056a3 Add warning when HOST environment variable is set (#3730)
* Add warning when HOST environment variable is set (#3719)

* Improve HOST environment variable warning message

* Adjust text and message

Closes #3719
2018-01-14 14:14:37 -05:00
Dan Abramov
22f9fe0d33 Always include destructuring transform (#3788)
* Always include destructuring transform

* Fix lint
2018-01-14 15:37:00 +00:00
Dan Abramov
1e9eaf3630 Bump detect-port-alt (#3787)
* Bump detect-port-alt

* Bump again
2018-01-14 15:05:38 +00:00
Dan Abramov
585608e3d6 Update opn (#3784) 2018-01-14 10:24:00 +00:00
Dan Abramov
0aeffe62ef Switch to Yarn Workspaces (#3755)
* Switch to Yarn Workspaces

* Feedback

* Move flowconfig

* Use publish script

* Keep git status check

* Fix Flow without perf penalty

* Remove Flow from package.json "test"

* Try running it from script directly (?)

* Try magic incantations

* lol flow COME ON

* Try to skip Flow on AppVeyor

* -df

* -df

* -df

* Try to fix CI

* Revert unrelated changes

* Update CONTRIBUTING.md
2018-01-12 01:54:53 +00:00
Dan Abramov
3f7851deab Try updating Flow (#3757) 2018-01-12 00:01:30 +00:00
Jonathan
89bf2fcc55 Adding some more non-conflicting files to validFiles (#3740) 2018-01-11 12:29:35 +00:00
Ade Viankakrisna Fadlil
7b881f12e3 move the link for deployment to the bottom (#3736) 2018-01-10 17:43:32 +00:00
Ade Viankakrisna Fadlil
7fd37d35ed add link to deployment docs after build (#3104)
* add link to deployment docs after build

* Update printHostingInstructions.js
2018-01-10 16:51:12 +00:00
Vladimir Tolstikov
d49744f04c docs: add info about HTTP caching headers into Firebase section (#3659) 2018-01-10 13:02:45 +00:00
Siddharth Doshi
0ec41350db Use proxy for all request methods other than GET (#3726)
* Use proxy for all request methods other than GET

* Add comment
2018-01-10 12:00:03 +00:00
Jonathan
72b6eb8c3c Cleaning up printHostingInstructions a bit (#3036)
* Replacing literal 'build' with `buildFolder` variable

* Cleaning up the printHostingInstructions a bit

* Fixing undefined variable
2018-01-09 17:41:10 +00:00
Sascha Dens
11f09a16aa Extend --scripts-version to include .tar.gz format (#3725)
* Extend --scripts-version to include .tar.gz format

* Removal of debug console.log
2018-01-09 17:34:46 +00:00
Maksym Dogadailo
3a0b836be3 added getProxy (#3320)
* added getProxy

getProxy checks proxy settings from process.env.https_proxy or Yarn (NPM) config (.npmrc)

* changed yarn for npm to get https-proxy 

default value for https-proxy is null, not undefined like in yarn
2018-01-09 17:30:25 +00:00
Ryan McCue
887fd10ed8 Print full directory name from lsof (#3440)
awk splits lines based on spaces, which causes directory names with spaces to end up in other fields. Using a for loop allows us to print from the 9th field onwards instead of just the 9th field.
2018-01-09 16:07:21 +00:00
Moos
dccc752cac fix #2223 - [feature] Implement dotenv-expand to accept variable expa… (#3387)
* fix #2223 - [feature] Implement dotenv-expand to accept variable expansion in dot env files

* add to README TOC

* fix readme

* Update README.md
2018-01-09 16:05:36 +00:00
Trevor Brindle
b507a9aec1 add envinfo package, —info flag (#3408)
* add envinfo package, —info flag

* update envinfo to use new duplicates option
2018-01-09 16:02:15 +00:00
David Boyne
ab507e62f8 Updated babel-preset-react-app README.md (#3463)
Added some more documentation to install the babel-preset-react-app making it more clear on how to get started with this preset outside of create-react-app.
2018-01-09 15:59:26 +00:00
Tao Gómez Gil
373687feaf Add Powershell commands to README.md (#3515) 2018-01-09 15:50:20 +00:00
Jonathan
0d716713c4 Allowing "file:<path>" --scripts-version values (#3629)
* Allowing for local "file:" prefixed scripts packages

* Fixing test failure
2018-01-09 15:49:17 +00:00