Skip to content

Commit 4f40f6f

Browse files
committed
upstream changes
2 parents 9ec67b4 + 657b3fd commit 4f40f6f

File tree

79 files changed

+10741
-528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+10741
-528
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
<!--
2+
PLEASE READ THE FIRST SECTION :-)
3+
-->
4+
5+
### Is this a bug report?
6+
7+
(write your answer here)
8+
9+
<!--
10+
If you answered "Yes":
11+
12+
Please note that your issue will be fixed much faster if you spend about
13+
half an hour preparing it, including the exact reproduction steps and a demo.
14+
15+
If you're in a hurry or don't feel confident, it's fine to report bugs with
16+
less details, but this makes it less likely they'll get fixed soon.
17+
18+
In either case, please fill as many fields below as you can.
19+
20+
If you answered "No":
21+
22+
If this is a question or a discussion, you may delete this template and write in a free form.
23+
Note that we don't provide help for webpack questions after ejecting.
24+
You can find webpack docs at https://webpack.js.org/.
25+
-->
26+
27+
28+
### Can you also reproduce the problem with npm 4.x?
29+
30+
<!--
31+
Many errors, especially related to "missing modules", are due to npm bugs.
32+
Which version of npm are you running? You can find out by checking:
33+
34+
npm -v
35+
36+
If it is 5.x, please be aware that it has more than 50 known bugs, and
37+
is not guaranteed to work with Create React App.
38+
39+
If it's not starting with 4, try to install npm 4.x:
40+
41+
npm install -g npm@4
42+
cd your_project_directory
43+
rm -rf node_modules
44+
npm cache clear
45+
npm install
46+
47+
Then try to reproduce the issue again.
48+
Can you still reproduce it?
49+
50+
Note: Please try this even if you are using Yarn so that we know whether it's a Yarn-only bug.
51+
-->
52+
53+
(Write your answer here.)
54+
55+
56+
### Which terms did you search for in User Guide?
57+
58+
<!--
59+
There are a few common documented problems, such as watcher not detecting changes, or build failing.
60+
They are described in the Troubleshooting section of the User Guide:
61+
62+
https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#troubleshooting
63+
64+
Please scan these few sections for common problems.
65+
Additionally, you can search the User Guide itself for something you're having issues with:
66+
67+
https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.me
68+
69+
If you didn't find the solution, please share which words you searched for.
70+
This helps us improve documentation for future readers who might encounter the same problem.
71+
-->
72+
73+
(Write your answer here if relevant.)
74+
75+
76+
### Environment
77+
78+
<!--
79+
Please fill in all the relevant fields by running these commands in terminal.
80+
-->
81+
82+
1. `node -v`:
83+
2. `npm -v`:
84+
4. `yarn --version` (if you use Yarn):
85+
3. `npm ls react-scripts` (if you haven’t ejected):
86+
87+
Then, specify:
88+
89+
1. Operating system:
90+
2. Browser and version (if relevant):
91+
92+
93+
### Steps to Reproduce
94+
95+
<!--
96+
How would you describe your issue to someone who doesn’t know you or your project?
97+
Try to write a sequence of steps that anybody can repeat to see the issue.
98+
-->
99+
100+
(Write your steps here:)
101+
102+
1.
103+
2.
104+
3.
105+
106+
107+
### Expected Behavior
108+
109+
<!--
110+
How did you expect the tool to behave?
111+
It’s fine if you’re not sure your understanding is correct.
112+
Just write down what you thought would happen.
113+
-->
114+
115+
(Write what you thought would happen.)
116+
117+
118+
### Actual Behavior
119+
120+
<!--
121+
Did something go wrong?
122+
Is something broken, or not behaving as you expected?
123+
Please attach screenshots if possible! They are extremely helpful for diagnosing issues.
124+
-->
125+
126+
(Write what happened. Please add screenshots!)
127+
128+
129+
### Reproducible Demo
130+
131+
<!--
132+
If you can, please share a project that reproduces the issue.
133+
This is the single most effective way to get an issue fixed soon.
134+
135+
There are two ways to do it:
136+
137+
* Create a new app and try to reproduce the issue in it.
138+
This is useful if you roughly know where the problem is, or can’t share the real code.
139+
140+
* Or, copy your app and remove things until you’re left with the minimal reproducible demo.
141+
This is useful for finding the root cause. You may then optionally create a new project.
142+
143+
This is a good guide to creating bug demos: https://stackoverflow.com/help/mcve
144+
Once you’re done, push the project to GitHub and paste the link to it below:
145+
-->
146+
147+
(Paste the link to an example project and exact instructions to reproduce the issue.)
148+
149+
<!--
150+
What happens if you skip this step?
151+
152+
We will try to help you, but in many cases it is impossible because crucial
153+
information is missing. In that case we'll tag an issue as having a low priority,
154+
and eventually close it if there is no clear direction.
155+
156+
We still appreciate the report though, as eventually somebody else might
157+
create a reproducible example for it.
158+
159+
Thanks for helping us help you!
160+
-->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!--
2+
Thank you for sending the PR!
3+
4+
If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots!
5+
6+
Happy contributing!
7+
-->

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
language: node_js
33
node_js:
44
- 6
5-
- 7
5+
- 8
66
cache:
77
directories:
88
- node_modules

CHANGELOG.md

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,178 @@
1+
## 1.0.8 (June 28, 2017)
2+
3+
#### :bug: Bug Fix
4+
* `react-scripts`
5+
6+
* [#2550](https://github.com/facebookincubator/create-react-app/pull/2550) Fix Node 8 compatibility. ([@josephfrazier](https://github.com/josephfrazier))
7+
* [#2610](https://github.com/facebookincubator/create-react-app/pull/2610) Fix sourcemap directory organization on Windows. ([@plusCubed](https://github.com/plusCubed))
8+
* [#2596](https://github.com/facebookincubator/create-react-app/pull/2596) Fix an issue with minifying emojis. ([@viankakrisna](https://github.com/viankakrisna))
9+
* [#2501](https://github.com/facebookincubator/create-react-app/pull/2501) Fix incorrect check if `CI` variable is set to true. ([@varnav](https://github.com/varnav))
10+
* [#2432](https://github.com/facebookincubator/create-react-app/pull/2432) In new projects, don't register service worker for projects using `PUBLIC_URL` for CDN. ([@jeffposnick](https://github.com/jeffposnick))
11+
* [#2470](https://github.com/facebookincubator/create-react-app/pull/2470) In new projects, prioritize `index.css` over `App.css`. ([@bryankang](https://github.com/bryankang))
12+
13+
* `react-dev-utils`
14+
15+
* [#2405](https://github.com/facebookincubator/create-react-app/pull/2405) Fix detection of parent directory in `ModuleScopePlugin`. ([@diligiant](https://github.com/diligiant))
16+
* [#2562](https://github.com/facebookincubator/create-react-app/pull/2562) Fix eject command output. ([@paweljedrzejczyk](https://github.com/paweljedrzejczyk))
17+
18+
#### :nail_care: Enhancement
19+
20+
* `react-scripts`
21+
22+
* [#2648](https://github.com/facebookincubator/create-react-app/pull/2648) Warn about large bundle sizes. ([@gaearon](https://github.com/gaearon))
23+
* [#2511](https://github.com/facebookincubator/create-react-app/pull/2511) Support `.web.js` extension for React Native Web. ([@mini-eggs](https://github.com/mini-eggs))
24+
* [#2645](https://github.com/facebookincubator/create-react-app/pull/2645) Hide confusing "Skipping static resource" message. ([@gaearon](https://github.com/gaearon))
25+
* [#2389](https://github.com/facebookincubator/create-react-app/pull/2389) Silence unnecessary warning from Babel. ([@gaearon](https://github.com/gaearon))
26+
* [#2429](https://github.com/facebookincubator/create-react-app/pull/2429) Update `sw-precache-webpack-plugin` to lastest version. ([@goldhand](https://github.com/goldhand))
27+
* [#2600](https://github.com/facebookincubator/create-react-app/pull/2600) Add empty mock for `dgram` Node module. ([@micopiira](https://github.com/micopiira))
28+
* [#2458](https://github.com/facebookincubator/create-react-app/pull/2458) Add names to module factories in development. ([@Zaccc123](https://github.com/Zaccc123))
29+
* [#2551](https://github.com/facebookincubator/create-react-app/pull/2551) In new projects, unregister service worker and force reload if `service-worker.js` is not found. ([@ro-savage](https://github.com/ro-savage))
30+
31+
* `babel-preset-react-app`, `react-dev-utils`, `react-scripts`
32+
33+
* [#2658](https://github.com/facebookincubator/create-react-app/pull/2658) Bump dependencies. ([@gaearon](https://github.com/gaearon))
34+
35+
* `create-react-app`, `react-scripts`
36+
37+
* [#2657](https://github.com/facebookincubator/create-react-app/pull/2657) Put `react-scripts` in `dependencies`, not `devDependencies`. ([@gaearon](https://github.com/gaearon))
38+
* [#2635](https://github.com/facebookincubator/create-react-app/pull/2635) Silence unhelpful npm warnings. ([@gaearon](https://github.com/gaearon))
39+
40+
* `react-dev-utils`
41+
42+
* [#2637](https://github.com/facebookincubator/create-react-app/pull/2637) Auto-detect Brackets editor from error overlay. ([@petetnt](https://github.com/petetnt))
43+
* [#2552](https://github.com/facebookincubator/create-react-app/pull/2552) Auto-detect running editor on Windows for error overlay. ([@levrik](https://github.com/levrik))
44+
* [#2622](https://github.com/facebookincubator/create-react-app/pull/2622) Support opening PhpStorm for error overlay. ([@miraage](https://github.com/miraage))
45+
* [#2414](https://github.com/facebookincubator/create-react-app/pull/2414) Support opening WebStorm 2017+ from error overlay. ([@wirmar](https://github.com/wirmar))
46+
* [#2518](https://github.com/facebookincubator/create-react-app/pull/2518) Warn when trying to run on port below 1024 without admin permissions under Linux/macOS. ([@levrik](https://github.com/levrik))
47+
* [#2385](https://github.com/facebookincubator/create-react-app/pull/2385) Suggest just `yarn build` in output. ([@gaearon](https://github.com/gaearon))
48+
49+
* `create-react-app`
50+
51+
* [#1945](https://github.com/facebookincubator/create-react-app/pull/1945) Fix grammar in CLI output. ([@ColinEberhardt](https://github.com/ColinEberhardt))
52+
53+
#### :memo: Documentation
54+
55+
* User Guide
56+
57+
* [#2662](https://github.com/facebookincubator/create-react-app/pull/2662) Local testing docker links. ([@EnoahNetzach](https://github.com/EnoahNetzach))
58+
* [#2660](https://github.com/facebookincubator/create-react-app/pull/2660) Minor code style edits to user guide. ([@gaearon](https://github.com/gaearon))
59+
* [#2656](https://github.com/facebookincubator/create-react-app/pull/2656) Don't ask to install webpack for using Styleguidist. ([@gaearon](https://github.com/gaearon))
60+
* [#1641](https://github.com/facebookincubator/create-react-app/pull/1641) Add instructions to use `source-map-explorer`. ([@gr33nfury](https://github.com/gr33nfury))
61+
* [#2044](https://github.com/facebookincubator/create-react-app/pull/2044) Add React Styleguidist. ([@sapegin](https://github.com/sapegin))
62+
* [#2006](https://github.com/facebookincubator/create-react-app/pull/2006) Added instruction on how to install Prettier. ([@MrHus](https://github.com/MrHus))
63+
* [#1813](https://github.com/facebookincubator/create-react-app/pull/1813) Fix grammar. ([@iheng](https://github.com/iheng))
64+
* [#2060](https://github.com/facebookincubator/create-react-app/pull/2060) Add more info about OOM build failiure [docs]. ([@GAumala](https://github.com/GAumala))
65+
* [#2305](https://github.com/facebookincubator/create-react-app/pull/2305) Update docs with WebSocket proxy information. ([@jamesblight](https://github.com/jamesblight))
66+
* [#2445](https://github.com/facebookincubator/create-react-app/pull/2445) Document `REACT_EDITOR` environment variable. ([@wirmar](https://github.com/wirmar))
67+
* [#2362](https://github.com/facebookincubator/create-react-app/pull/2362) Add yarn example under "Installing a Dependency". ([@BrianDGLS](https://github.com/BrianDGLS))
68+
* [#2423](https://github.com/facebookincubator/create-react-app/pull/2423) Add docs for setting up CircleCI for CRA. ([@knowbody](https://github.com/knowbody))
69+
* [#2427](https://github.com/facebookincubator/create-react-app/pull/2427) Added link to tutorial on code splitting. ([@jayair](https://github.com/jayair))
70+
* [#2447](https://github.com/facebookincubator/create-react-app/pull/2447) Fix wrong comment on Proxy guide. ([@hellowin](https://github.com/hellowin))
71+
* [#2538](https://github.com/facebookincubator/create-react-app/pull/2538) Fix broken link to a tutorial. ([@romanyanke](https://github.com/romanyanke))
72+
* [#2522](https://github.com/facebookincubator/create-react-app/pull/2522) Flow init to run as command not flag. ([@khanglu](https://github.com/khanglu))
73+
* [#2521](https://github.com/facebookincubator/create-react-app/pull/2521) Fix broken link to Storybook docs. ([@shilman](https://github.com/shilman))
74+
* [#2500](https://github.com/facebookincubator/create-react-app/pull/2500) Fix minor typo. ([@AlexxNica](https://github.com/AlexxNica))
75+
* [#2331](https://github.com/facebookincubator/create-react-app/pull/2331) Re-add storybook && update the documentation and links. ([@ndelangen](https://github.com/ndelangen))
76+
* [#2454](https://github.com/facebookincubator/create-react-app/pull/2454) Update Travis CI Node versions in User Guide. ([@ryansully](https://github.com/ryansully))
77+
* [#2420](https://github.com/facebookincubator/create-react-app/pull/2420) Fix typo. ([@ruskakimov](https://github.com/ruskakimov))
78+
* [#2392](https://github.com/facebookincubator/create-react-app/pull/2392) Update `jest-enzyme` section. ([@luftywiranda13](https://github.com/luftywiranda13))
79+
80+
* README
81+
82+
* [#2517](https://github.com/facebookincubator/create-react-app/pull/2517) Add Razzle to the alternatives. ([@kireerik](https://github.com/kireerik))
83+
* [#1931](https://github.com/facebookincubator/create-react-app/pull/1931) Updated README. ([@shaunwallace](https://github.com/shaunwallace))
84+
* [#2492](https://github.com/facebookincubator/create-react-app/pull/2492) Update webpack links to point to webpack 2. ([@laruiss](https://github.com/laruiss))
85+
86+
#### :house: Internal
87+
88+
* Other
89+
90+
* [#2465](https://github.com/facebookincubator/create-react-app/pull/2465) Update Prettier to v1. ([@ianschmitz](https://github.com/ianschmitz))
91+
* [#2489](https://github.com/facebookincubator/create-react-app/pull/2489) chore(templates): Move GitHub templates to hidden .github folder. ([@glennreyes](https://github.com/glennreyes))
92+
* [#2400](https://github.com/facebookincubator/create-react-app/pull/2400) Added cache clear to e2e scripts. ([@ro-savage](https://github.com/ro-savage))
93+
* [#2397](https://github.com/facebookincubator/create-react-app/pull/2397) Fix command in e2e-kitchensink.sh cleanup. ([@ro-savage](https://github.com/ro-savage))
94+
* [#2388](https://github.com/facebookincubator/create-react-app/pull/2388) Fix wrong path expansion in end-to-end test. ([@gaearon](https://github.com/gaearon))
95+
* [#2387](https://github.com/facebookincubator/create-react-app/pull/2387) Catch "No tests found" during CI. ([@EnoahNetzach](https://github.com/EnoahNetzach))
96+
97+
* `react-scripts`
98+
99+
* [#2408](https://github.com/facebookincubator/create-react-app/pull/2408) E2E testing enhancements. ([@EnoahNetzach](https://github.com/EnoahNetzach))
100+
* [#2430](https://github.com/facebookincubator/create-react-app/pull/2430) Remove an unnecessary webpack option. ([@andykenward](https://github.com/andykenward))
101+
102+
* `react-dev-utils`
103+
104+
* [#2483](https://github.com/facebookincubator/create-react-app/pull/2483) Remove a scoped package dependency. ([@Timer](https://github.com/Timer))
105+
106+
#### Committers: 46
107+
- Ade Viankakrisna Fadlil ([viankakrisna](https://github.com/viankakrisna))
108+
- Alexandre Nicastro ([AlexxNica](https://github.com/AlexxNica))
109+
- Andi N. Dirgantara ([hellowin](https://github.com/hellowin))
110+
- Andy Kenward ([andykenward](https://github.com/andykenward))
111+
- Artem Sapegin ([sapegin](https://github.com/sapegin))
112+
- Ashton ([ashtonsix](https://github.com/ashtonsix))
113+
- Brian Douglas ([BrianDGLS](https://github.com/BrianDGLS))
114+
- Colin Eberhardt ([ColinEberhardt](https://github.com/ColinEberhardt))
115+
- Colin Galindo ([gr33nfury](https://github.com/gr33nfury))
116+
- Dan Abramov ([gaearon](https://github.com/gaearon))
117+
- Daniel Ciao ([plusCubed](https://github.com/plusCubed))
118+
- Erik Engi ([kireerik](https://github.com/kireerik))
119+
- Evan Jones ([mini-eggs](https://github.com/mini-eggs))
120+
- Fabrizio Castellarin ([EnoahNetzach](https://github.com/EnoahNetzach))
121+
- Frédéric Miserey ([diligiant](https://github.com/diligiant))
122+
- Gabriel Aumala ([GAumala](https://github.com/GAumala))
123+
- Glenn Reyes ([glennreyes](https://github.com/glennreyes))
124+
- Heng Li ([iheng](https://github.com/iheng))
125+
- Ian Schmitz ([ianschmitz](https://github.com/ianschmitz))
126+
- James Blight ([jamesblight](https://github.com/jamesblight))
127+
- Jay V ([jayair](https://github.com/jayair))
128+
- Jeffrey Posnick ([jeffposnick](https://github.com/jeffposnick))
129+
- Joe Haddad ([Timer](https://github.com/Timer))
130+
- Joseph Frazier ([josephfrazier](https://github.com/josephfrazier))
131+
- Khang Lu ([khanglu](https://github.com/khanglu))
132+
- Levin Rickert ([levrik](https://github.com/levrik))
133+
- Lufty Wiranda ([luftywiranda13](https://github.com/luftywiranda13))
134+
- Maarten Hus ([MrHus](https://github.com/MrHus))
135+
- Marius Wirtherle ([wirmar](https://github.com/wirmar))
136+
- Mateusz Zatorski ([knowbody](https://github.com/knowbody))
137+
- Michael Shilman ([shilman](https://github.com/shilman))
138+
- Mico Piira ([micopiira](https://github.com/micopiira))
139+
- Mikhail Osher ([miraage](https://github.com/miraage))
140+
- Norbert de Langen ([ndelangen](https://github.com/ndelangen))
141+
- Paweł Jędrzejczyk ([paweljedrzejczyk](https://github.com/paweljedrzejczyk))
142+
- Pete Nykänen ([petetnt](https://github.com/petetnt))
143+
- Ro Savage ([ro-savage](https://github.com/ro-savage))
144+
- Roman ([romanyanke](https://github.com/romanyanke))
145+
- Rustem Kakimov ([ruskakimov](https://github.com/ruskakimov))
146+
- Ryan Sullivan ([ryansully](https://github.com/ryansully))
147+
- Stanislas Ormières ([laruiss](https://github.com/laruiss))
148+
- Will Farley ([goldhand](https://github.com/goldhand))
149+
- Zac Kwan ([Zaccc123](https://github.com/Zaccc123))
150+
- [bryankang](https://github.com/bryankang)
151+
- [varnav](https://github.com/varnav)
152+
- shaun wallace ([shaunwallace](https://github.com/shaunwallace))
153+
154+
### Migrating from 1.0.7 to 1.0.8
155+
156+
Inside any created project that has not been ejected, run:
157+
158+
```
159+
npm install --save-dev --save-exact [email protected]
160+
```
161+
162+
or
163+
164+
```
165+
yarn add --dev --exact [email protected]
166+
```
167+
168+
**If you previously used `HTTPS=true` environment variable in development**, make sure you aren't affected by a now-fixed vulnerability in Webpack by [visiting this page](http://badcert.mike.works/). You can read more about the vulnerability [here](https://medium.com/@mikenorth/webpack-preact-cli-vulnerability-961572624c54).
169+
170+
You may optionally then move `react-scripts` from `devDependencies` to `dependencies` since that’s how we’ll structure newly created projects. It is not necessary though.
171+
172+
If you left the service worker integration enabled and didn’t change how it works, you can replace `src/registerServiceWorker.js` with [this updated version](https://raw.githubusercontent.com/facebookincubator/create-react-app/895c475d3fc218c65dcac9a3ef3f2c0ea746a1ed/packages/react-scripts/template/src/registerServiceWorker.js).
173+
174+
If you haven't changed the default CSS organization, you may want to apply [this fix](https://github.com/facebookincubator/create-react-app/pull/2470/files) that makes `index.css` take precedence over `App.css` in your project.
175+
1176
## 1.0.7 (May 27, 2017)
2177

3178
#### :bug: Bug Fix

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ and then run `npm start` or `npm run build`.
9090

9191
*Note: if you are using yarn, we suggest that you use `yarn install --no-lockfile` instead of the bare `yarn` or `yarn install` because we [intentionally](https://github.com/facebookincubator/create-react-app/pull/2014#issuecomment-300811661) do not ignore or add yarn.lock to our repo.*
9292

93+
## Contributing to E2E (end to end) tests
94+
95+
**TL;DR** use the command `yarn e2e:docker` to run unit and e2e tests.
96+
97+
More detailed information are in the dedicated [README](/packages/react-scripts/fixtures/kitchensink/README.md).
98+
9399
## Cutting a Release
94100

95101
1. Tag all merged pull requests that go into the release with the relevant milestone. Each merged PR should also be labeled with one of the [labels](https://github.com/facebookincubator/create-react-app/labels) named `tag: ...` to indicate what kind of change it is.

0 commit comments

Comments
 (0)