Commit Graph

1693 Commits

Author SHA1 Message Date
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 Abramov
11b4fae3c7 Update appveyor.cleanup-cache.txt 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 Abramov
d979964126 Tweak publishing note v1.1.0 2018-01-15 00:55:15 +00: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
babel-preset-react-app@3.1.1 react-dev-utils@5.0.0 eslint-config-react-app@2.1.0 create-react-app@1.5.0 react-error-overlay@4.0.0 react-scripts@1.1.0
2018-01-15 00:53:37 +00:00
Dan Abramov
aa5bdcd05f Changelog for 1.1.0 (#3795) 2018-01-15 00:37:46 +00:00
Dan Abramov
95b26012a4 Tweak section on expanding env variables 2018-01-15 00:36:53 +00:00
Dan Abramov
12d05447b9 Test Node 9 on CI (#3793)
* Test Node 9 on CI

* Oops
2018-01-14 23:57:49 +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
77148107d9 Add npx note to quick overview 2018-01-14 11:52:10 +00:00
Dan Abramov
585608e3d6 Update opn (#3784) 2018-01-14 10:24:00 +00:00
Dan Abramov
a3d33c4608 Add an explicit link to Code of Conduct (#3781)
All FB open source projects including this one enforce [our code of conduct](https://code.facebook.com/pages/876921332402685/open-source-code-of-conduct), but I just realized we haven't explicitly linked to it from a Markdown file. So I'm doing just that.
2018-01-14 02:48:15 +00:00
Joe Haddad
238af4b1da Enable Yarn check files (#3769)
* This is a good default.
Adds approx 4 seconds to install time, but can save some headaches.

* Add no lockfile for add, too
2018-01-12 22:14:27 -05:00
Dan Abramov
3f0994775f Pin Lerna 2018-01-12 13:50:42 +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
Ade Viankakrisna Fadlil
b02fe66732 clean up changes to npm and yarn registry (#3756) 2018-01-11 23:25:27 +00:00
Dan Abramov
4c0bf037d1 Delete old file
It's been here long enough.
2018-01-11 12:35:51 +00:00
Jonathan
89bf2fcc55 Adding some more non-conflicting files to validFiles (#3740) 2018-01-11 12:29:35 +00:00
Joe Haddad
1098a4a177 Oops 2018-01-11 02:21:25 -05:00
Joe Haddad
ebddb83dd6 Remove redundant steps in e2e tests (#3747)
* This doesn't look needed anymore

* Remove unnecessary rebuilds
2018-01-11 01:40:03 -05:00
Joe Haddad
29e06fc91a Follow-up: use private registry (#3746)
* Convert e2e-installs

* Convert kitchensink tests

* Upgrade npm for kitchensink
2018-01-11 01:38:10 -05:00
Joe Haddad
75d71e1541 Use private registry (#3744)
* Run e2e-simple in a realistic scenario

* Use npx for everything

* oops
2018-01-11 00:49:39 -05:00
Dan Abramov
99c14e710f Separate old Node E2E test (#3742)
* Separate old Node E2E test

* Try this for old node
2018-01-11 01:55:55 +00:00
Dan Abramov
d29d41b3c6 Try to use Yarn in more E2E scripts (#3739)
* Try to use Yarn in more E2E scripts

* Keep using npm pack

* Maybe this will fix Windows?

* Try this
2018-01-11 00:54:49 +00:00
Dan Abramov
dcd8ea6b5c Always use Yarn on CI (#3738) 2018-01-10 23:30:59 +00:00
Dan Abramov
a03524c594 Use latest npm in e2e tests (#3735)
* Use latest npm in e2e tests

* Keep default npm version in "simple" test

* Try to fix CI by using a version that supports Yarn
2018-01-10 21:55:18 +00:00