Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

2.11.0 #221

Merged
merged 244 commits into from
Jan 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
244 commits
Select commit Hold shift + click to select a range
b60f55c
Print file sizes with correct build folder path. (#2361)
fezhengjin May 25, 2017
fbaeff2
Update README.md for `now` deployments (#2372)
purplecones May 26, 2017
c1ba38d
Removed the overriding of reduce_vars to false since webpack v2.6.0 i…
Zaccc123 May 27, 2017
f6d8544
Disable comparisons feature in uglify compression in production (#2379)
davidascher May 27, 2017
2069e8a
Consistently set environment variables (#2382)
gaearon May 27, 2017
1421010
Update webpack to 2.6.1 (#2383)
gaearon May 27, 2017
84efd45
Add changelog for 1.0.7 (#2384)
gaearon May 27, 2017
58d8c5c
Publish
gaearon May 27, 2017
5317b3f
Catch "No tests found" during CI (#2387)
EnoahNetzach May 27, 2017
70bf125
Suggest just "yarn build" (#2385)
gaearon May 27, 2017
2aafaad
Fix wrong path expansion in end-to-end test (#2388)
gaearon May 27, 2017
3f34238
Revert "Catch "No tests found" during CI" (#2390)
gaearon May 27, 2017
e6ddfb0
Fix kill command in e2e-kitchensink.sh cleanup (#2397)
ro-savage May 29, 2017
32f82c0
Added cache clear to e2e scripts (#2400)
ro-savage May 29, 2017
bcf398d
Fix detection of parent directory in ModuleScopePlugin (#2405)
May 29, 2017
19c5277
docs: update `jest-enzyme` section (#2392)
luftywiranda13 May 29, 2017
02f88ba
Add WebStorm >2017 launchEditor Support (#2414)
wirmar May 30, 2017
e91648a
Fix docs typo (#2420)
ruskakimov May 31, 2017
d1f37d9
Update Travis CI Node versions in User Guide (#2454)
ryansully Jun 2, 2017
e898215
re-add storybook && update the documentation and links (#2331)
ndelangen Jun 4, 2017
b264b8d
Prioritize index.css over the implicit App.css (#2470)
bryankang Jun 5, 2017
c78c1fa
Added NamedModulesPlugin in webpack.config.dev.js (#2458)
Zaccc123 Jun 6, 2017
dc4ce60
Unscope detect-port (#2483)
Timer Jun 6, 2017
9438c5b
Update webpack links to point to webpack 2 (#2492)
Jun 7, 2017
054778f
chore(templates): Move GitHub templates to hidden .github folder (#2489)
glennreyes Jun 7, 2017
cccd855
Fix minor docs typo (#2500)
AlexxNica Jun 8, 2017
9b3cf2f
Fix link to Storybook docs (#2521)
shilman Jun 12, 2017
67f6163
Simplify flow init docs (#2522)
khanglu Jun 12, 2017
acb1957
Upgrade fsevents to 1.1.2 (#2550)
josephfrazier Jun 18, 2017
e6f9935
Fix broken link to React Router docs (#2538)
romanyanke Jun 18, 2017
2ab7ead
Fix wrong comment on Proxy guide (#2447)
hellowin Jun 18, 2017
b1c0faa
Show warning when trying to run on port below 1024 without admin perm…
levrik Jun 19, 2017
5b38c54
Check if CI variable is set to `'false'` (#2501)
varnav Jun 19, 2017
31a4d14
Fix a potential issue (#2569)
Timer Jun 19, 2017
70e36f0
Warn about npm 5 in issue template
gaearon Jun 23, 2017
d468a80
Update issue & PR templates (#2618)
gaearon Jun 26, 2017
4289fce
Whitespace
gaearon Jun 26, 2017
7a8466a
Update ISSUE_TEMPLATE.md
gaearon Jun 26, 2017
de839e9
Update ISSUE_TEMPLATE.md
gaearon Jun 26, 2017
839c7bf
Update ISSUE_TEMPLATE.md
gaearon Jun 26, 2017
58ef08f
Support PhpStorm in launchEditor (#2622)
Jun 26, 2017
6e2898e
Add empty mock for dgram (#2600)
micopiira Jun 26, 2017
76bd132
Docs: Added link to tutorial on code splitting (#2427)
jayair Jun 26, 2017
3e9955d
Update sw-precache-webpack-plugin to lastest version (#2429)
goldhand Jun 26, 2017
a7d31d9
Determines whether PUBLIC_URL is same-origin before registering SW. (…
jeffposnick Jun 26, 2017
43d0307
webpack no need for `ident` if using complex options anymore (#2430)
andykenward Jun 26, 2017
c22c8b3
add docs for setting up CircleCI for CRA (#2423)
knowbody Jun 26, 2017
1f91848
E2E testing enhancements (#2408)
EnoahNetzach Jun 26, 2017
7a0fb4c
Use Babel compact mode in production (#2389)
gaearon Jun 26, 2017
41f2013
turn on ascii_only for issue with emoji and regex (#2596)
viankakrisna Jun 27, 2017
0644e80
add check to filter out custom scripts in eject command (#2562)
paweljedrzejczyk Jun 27, 2017
bed875c
Don't run yarn after ejecting (#2634)
gaearon Jun 27, 2017
3747144
Set npm loglevel to 'error' (#2635)
gaearon Jun 27, 2017
2874e12
Auto-detect running editor on Windows for error overlay (#2552)
levrik Jun 27, 2017
6a09ed1
docs: added REACT_EDITOR to `Advanced Configuration` section (#2445)
wirmar Jun 27, 2017
a9ac789
Fix sourcemap directory organizing on Windows (#2456) (#2610)
pluscubed Jun 27, 2017
78dbf7b
Add simplified service worker invalidation (#2551)
ro-savage Jun 27, 2017
77993e7
Add yarn example under "Installing a Dependency" (#2362)
Jun 27, 2017
0ed6c8d
Update docs with WebSocket proxy information (#2305)
jamesblight Jun 27, 2017
117d82b
Add more info about OOM build failiure [docs] (#2060)
GAumala Jun 27, 2017
60691e6
Update README.md (#1813)
iheng Jun 27, 2017
b4b3d02
Fix CLI grammar (#1945)
ColinEberhardt Jun 27, 2017
5474e2d
Added instruction on how to install Prettier (#2006)
MrHus Jun 27, 2017
0b6c7ff
Less passive-aggressive issue template
gaearon Jun 27, 2017
4edec9e
Updated README (#1931)
shaunwallace Jun 27, 2017
84299ce
Add Brackets to launchEditor.js (#2637)
petetnt Jun 27, 2017
8dfc630
Update ISSUE_TEMPLATE.md (#2643)
ashtonsix Jun 27, 2017
12a2e42
Add React Styleguidist (#2044)
sapegin Jun 27, 2017
91064a1
Ignore "Skipping static resource" message from SW precache (#2645)
gaearon Jun 27, 2017
a4197b6
Add instructions to use source-map-explorer (#1641)
colingalindo Jun 27, 2017
7cf4de7
Warn about large bundle sizes (#2648)
gaearon Jun 27, 2017
4605e6c
Razzle added to the alternatives (#2517)
kireerik Jun 27, 2017
9559ba4
Put react-scripts in dependencies, not devDependencies (#2657)
gaearon Jun 28, 2017
c578d14
Don't ask to install webpack for using Styleguidist (#2656)
gaearon Jun 28, 2017
0cebe04
Minor code style edits to user guide (#2660)
gaearon Jun 28, 2017
16e5d15
Bump dependencies (#2658)
gaearon Jun 28, 2017
6ab0ec0
Better React Native Web support (#2511)
mini-eggs Jun 28, 2017
60ae2b6
Local testing docker links (#2662)
EnoahNetzach Jun 28, 2017
f947669
Update ISSUE_TEMPLATE.md
gaearon Jun 28, 2017
29c8733
Update Prettier to v1 (#2465)
ianschmitz Jun 28, 2017
a171d93
Reformat source code with Prettier 1.5.2
gaearon Jun 28, 2017
3102877
Changelog for 1.0.8 (#2664)
gaearon Jun 28, 2017
7796c94
Publish
gaearon Jun 28, 2017
76ad76e
Add a note about fixed vulnerability in 1.0.8
gaearon Jun 28, 2017
d0aa6b2
Add json and css to lint-staged in template README (#2671)
jbovenschen Jun 28, 2017
657b3fd
Test Node 8 on Travis (#2659)
gaearon Jun 28, 2017
a0bc949
Add more info about apache client side routing (#2666)
viankakrisna Jun 29, 2017
aad5987
Bootstrap with Yarn when available (#2673)
Timer Jun 29, 2017
7b5a589
Fix minor typo (#2679)
dbanck Jun 29, 2017
567d981
Fix external CSS imports (#2680)
gaearon Jun 29, 2017
29df729
Changelog for 1.0.9 (#2682)
gaearon Jun 29, 2017
adf334f
Publish
gaearon Jun 29, 2017
29888fc
Fix typo in README link (#2684)
ForbesLindesay Jun 29, 2017
f9f8125
Fix typo (#2683)
BenBrostoff Jun 29, 2017
5e11b48
Downgrade `strip-ansi` package to 3.0.1 (#2692)
pdhoopr Jun 29, 2017
d3518d6
Added `gluestick` to the alternatives section (#2402)
JoeCortopassi Jun 29, 2017
82ed81a
Upgrade flow (#2693)
Timer Jun 29, 2017
19ba887
Update CHANGELOG.md
gaearon Jun 29, 2017
c1221eb
Changelog for 1.0.10 (#2694)
gaearon Jun 29, 2017
ad35fd1
Publish
gaearon Jun 29, 2017
b0cd286
Issue template: fix env list ordering (#2697)
alexeyraspopov Jun 30, 2017
df00d80
allowTaggedTemplates to avoid warnings from SC's (#2701)
denkristoffer Jul 1, 2017
85a9bc8
Remove Windows note for source-map-explorer (#2719)
hodanny Jul 3, 2017
f495c15
Reorder vim arguments in launchEditor so --remote works (#2723)
trygveaa Jul 4, 2017
8442cf3
Update link to issue blocking JSX hoisting (#2732)
ForbesLindesay Jul 6, 2017
804ac00
Support PyCharm in launchEditor (#2740)
danrr Jul 7, 2017
16f0d4a
Add "node" to Jest's moduleFileExtensions (#2738)
mostafah Jul 7, 2017
bbbc15d
ESLint 4 (#2735)
trungdq88 Jul 7, 2017
a08eb3b
Use Rule.oneOf to resolve correct loader (#2747)
Furizaa Jul 9, 2017
3ca6bae
Autodetect JetBrains IDEs (#2754)
danrr Jul 9, 2017
3690495
Don't prompt to install serve if already installed (#2761)
OwenFlood Jul 10, 2017
a7e7144
Docs for react-router v4 basename feature (#2668)
viankakrisna Jul 12, 2017
3ffad55
Moved npm run build before npm test (#2725)
zeel Jul 13, 2017
3354ab9
List conflicting files when initializing app (#2785)
OwenFlood Jul 14, 2017
1091876
Update link for motion (#2788)
viankakrisna Jul 14, 2017
0482058
Upgrade webpack-dev-server (#2806)
christianbundy Jul 18, 2017
d679843
Add explicit "Opting Out of Caching" header (#2822)
gaearon Jul 19, 2017
bc82755
Feature/webpack3 (#2574)
themre Jul 25, 2017
b1c1224
Bump Webpack 3.4 (#2850)
themre Jul 26, 2017
ea9427b
Allow use of scoped packages with a pinned version (#2853)
wileybenet Aug 2, 2017
a73252f
Use modern syntax feature (#2873)
monkindey Aug 2, 2017
13c7360
Update webpack version note (#2798)
ForbesLindesay Aug 2, 2017
cff167f
Fix parsing HTML/JSX tags to real elements (#2796)
ccloli Aug 2, 2017
88dfd49
Add Electrode to alternatives (#2728)
animesh10 Aug 2, 2017
6443441
Update README.md
Timer Aug 2, 2017
57f2cd7
Update README.md
Timer Aug 2, 2017
20c953d
Unstage yarn.lock pre-commit (#2700)
jdcrensh Aug 2, 2017
b643f57
Format UglifyJs error (#2650)
viankakrisna Aug 2, 2017
664b765
Re-enable flowtype warning (#2718)
Aug 2, 2017
24b18ae
Allow importing package.json (#2468)
iamdoron Aug 2, 2017
e12d053
Feature/webpack 3 4 (#2875)
themre Aug 2, 2017
2766bbd
Fix the order of arguments in spawned child proc (#2913)
koistya Aug 9, 2017
d009a99
Adjust the `checkIfOnline` check if in a corporate proxy environment …
bsyk Aug 9, 2017
badfc2a
Make formatWebpackMessages return all messages (#2834)
onigoetz Aug 9, 2017
1e3a64f
Use env variable to disable source maps (#2818)
viankakrisna Aug 9, 2017
4cdd5ac
Update README.md
Timer Aug 9, 2017
9b23be8
Update dev deps (#2923)
Timer Aug 9, 2017
77265f3
Prepare for 1.0.11 release (#2924)
Timer Aug 9, 2017
bfaee41
Publish
Timer Aug 9, 2017
10c1f57
Update README.md (#2927)
tbassetto Aug 9, 2017
93029f8
Remove superfluous lodash usage (#2938)
Timer Aug 10, 2017
6efab2e
Remove Modulus from user guide (#2948)
Zertz Aug 14, 2017
e8a3e4b
Fix docs for `printFileSizesAfterBuild` (#2942)
Kerumen Aug 16, 2017
5ea6de9
Docs: debugging in WebStorm (#2986)
prigara Aug 21, 2017
5c010e0
Fix module function name in error overlay (#3012)
gaearon Aug 26, 2017
3b91748
Bump react-dev-utils
Timer Aug 10, 2017
ecd1f05
Convert react-error-overlay to React (#2515)
tharakawj Aug 28, 2017
fbbc64f
update babel-runtime dependency in react-error-overlay and react-scri…
christophehurpeau Aug 28, 2017
2cbb760
Default Favicon lossless optimisation (#2917)
sylvainbaronnet Aug 28, 2017
cc2e270
Relax React dep requirements
gaearon Aug 28, 2017
9a072e2
Changelog for 1.0.12 (#3016)
gaearon Aug 28, 2017
a51be95
Publish
gaearon Aug 28, 2017
1df1610
Fix error overlay 'Object.assign' issue in IE by including polyfills …
tharakawj Sep 1, 2017
270b1dc
Strip hash from chunk file name (#3049)
esturcke Sep 1, 2017
51d0df4
Rename Overlay to ErrorOvelay (#3051)
tharakawj Sep 2, 2017
6644054
provide empty mock for child_process so importing libraries with it w…
anthonyalayo Sep 2, 2017
8a72a31
Make error overlay filename configurable (#3028)
jaredpalmer Sep 2, 2017
f65a1a9
Add missing slash
gaearon Sep 2, 2017
efeabee
Changelog for 1.0.13
gaearon Sep 2, 2017
c22dc70
Publish
gaearon Sep 2, 2017
e8b58ed
Set travis config to use 'precise' ci environment
tharakawj Sep 3, 2017
b17fa41
Update eslint-config npm install command (#3072)
jdcrensh Sep 6, 2017
634dadb
Unmapper Windows compatibility (#3079)
Timer Sep 6, 2017
fcb6dc5
run npm 5.4.0 in CI (#3026)
viankakrisna Sep 7, 2017
5e300ce
Reload the page when an error has occurred (#3098)
Timer Sep 9, 2017
44cfbcc
Rerun prettier and pin version (#3058)
viankakrisna Sep 10, 2017
12f1a8e
Clean target directory before compiling overlay (#3102)
Timer Sep 11, 2017
1faee66
Auto-detect running editor on Linux for error overlay (#3077)
gulderov Sep 11, 2017
eed708a
Updated react-error-overlay to latest Flow (0.54.0) (#3065)
duvet86 Sep 11, 2017
0e064b3
Revert "run npm 5.4.0 in CI (#3026)" (#3107)
viankakrisna Sep 12, 2017
206f9e8
Resolved issue #2971 (#2989)
Sep 13, 2017
89bf273
Link local react-error-overlay package in kitchensink test
tharakawj Sep 16, 2017
2cff8db
Display pid in already running message (#3131)
Pajn Sep 16, 2017
b67ef01
Update unclear wording in webpack config docs (#3160)
Sep 20, 2017
700c8cd
Part of class fields to stage 3 (#2908)
rickbeerendonk Sep 20, 2017
376fd43
Update webpack-dev-server to 2.8.2 (#3157)
nikolas Sep 22, 2017
1491d46
Add link to active CSS modules discussion (#3163)
zikaari Sep 22, 2017
2e82ebb
BSD+Patents -> MIT (#3189)
sophiebits Sep 26, 2017
9e966b4
Changelog for 1.0.14
Timer Sep 27, 2017
fedc539
Fix license comments
Timer Sep 27, 2017
b2c0b3f
Publish
Timer Sep 27, 2017
6e5e227
Improve grammar in README (#3211)
Mohamed3on Sep 29, 2017
a34701b
Correct manual proxy documentation (#3185)
robertpanzer Sep 29, 2017
8c8bbca
Minor change to highlight dev proxy behaviour (#3075)
davidjb Sep 29, 2017
c003583
More spec compliant HTML template (#2914)
Hurtak Sep 29, 2017
1e98d0f
Watch for changes in `src/**/node_modules` (#3230)
xjlim Oct 3, 2017
f498547
Fix package management link in README (#3227)
nishina555 Oct 3, 2017
01a0d73
Fix Windows compatibility (#3232)
Timer Oct 3, 2017
cd3d04b
Make error overlay to run in the context of the iframe (#3142)
tharakawj Oct 3, 2017
62f0a83
Update url-loader to 0.6.2 for mime ReDoS vuln (#3246)
joshwiens Oct 5, 2017
a0030fc
Update style-loader and disable inclusion of its HMR code in builds (…
insin Oct 6, 2017
00ed100
Add click-to-open support for build errors (#3100)
tharakawj Oct 6, 2017
360fa27
`react-error-overlay` has no dependencies now (#3263)
Timer Oct 11, 2017
86b4b6a
Add external links to deployment services (#3265)
aericson Oct 11, 2017
9ce144e
Add warning when using `react-error-overlay` in production (#3264)
Timer Oct 11, 2017
991b092
Use production React version for bundled overlay (#3267)
Timer Oct 11, 2017
2d0ef6a
Fix dead link to Jest "expect" docs (#3289)
alexkrolick Oct 17, 2017
1a3017b
Update README.md
Timer Oct 17, 2017
a0c515c
Update link to Jest Expect docs (#3303)
jbranchaud Oct 19, 2017
72a02c7
Add jest coverage configuration docs (#3279)
mattphillips Oct 21, 2017
54f7da9
Update `eslint-plugin-react` (#3146)
lpalmes Oct 23, 2017
aa322d0
Clarify the npm precompilation advice
gaearon Oct 26, 2017
4d4cbf0
Use a simpler string replacement for the overlay
gaearon Oct 28, 2017
c66c296
Use React 16 in development
gaearon Oct 28, 2017
fe4dc74
Polyfill rAF in test environment (#3340)
gaearon Oct 28, 2017
0f5deb6
Update appveyor.cleanup-cache.txt
gaearon Oct 28, 2017
c51258b
recommend react-snap; react-snapshot isn't upgraded for React 16 (#3328)
aaronshaf Oct 28, 2017
d98b756
Bump dependencies (#3342)
gaearon Oct 28, 2017
8c7b6e7
Fix favicon sizes value in manifest (#3287)
ryansully Oct 28, 2017
1fa16ac
Make uglify work in Safari 10.0 - fixes #3280 (#3281)
satyavh Oct 28, 2017
4add16d
Add documentation for Enzyme 3 integration (#3286)
ryansully Oct 28, 2017
5c8000f
Add `.mjs` support (#3239)
Timer Oct 28, 2017
70e0c08
Remove output.path from dev webpack config (#3158)
nikolas Oct 28, 2017
15d8e53
Remove an useless negation in registerServiceWorker.js (#3150)
dunglas Oct 28, 2017
5a336ad
Updating the Service Worker opt-out documentation (#3108)
captDaylight Oct 28, 2017
fc885a0
start using npm-run-all to build scss and js (#2957)
shime Oct 28, 2017
e05a5fe
Mention that start_url needs to be "." for client side routing
foochu Oct 28, 2017
345f550
Fix for add .gitattributes file #3080 (#3122)
ijajmulani Oct 28, 2017
de1beec
Stop using `npm link` in tests (#3345)
Timer Oct 30, 2017
1a61cd4
Add preflight CWD check for npm (#3355)
gaearon Oct 30, 2017
5e7b967
Publish
gaearon Oct 30, 2017
87643fd
[email protected]
gaearon Oct 30, 2017
e62bfdd
Replace template literal; fixes #3367 (#3368)
felthy Oct 31, 2017
a9257ec
Changelog for 1.0.15 (#3357)
gaearon Oct 30, 2017
1740c3f
Update favicon description (#3374)
piotr-cz Oct 31, 2017
7ae6ab1
Changelog for 1.0.16 (#3376)
gaearon Oct 31, 2017
b8e6ba3
Reorder publishing instructions
gaearon Oct 31, 2017
dc95d18
Publish
gaearon Oct 31, 2017
74c523c
Update README.md (#3392)
ryanswapp Nov 2, 2017
35fa70e
Update VS Code debug configuration (#3400)
auchenberg Nov 3, 2017
2cb4871
Add link to VS Code troubleshooting guide (#3399)
auchenberg Nov 3, 2017
90c83f7
Fix grammar in README (#3394)
lorensr Nov 3, 2017
5811d55
Use new WebpackDevServer option (#3401)
gaearon Nov 3, 2017
cfbd468
Add 1.0.17 changelog (#3402)
gaearon Nov 3, 2017
4b55193
Publish
gaearon Nov 3, 2017
1061fde
Merge facebookincubator/[email protected]
wmonk Jan 11, 2018
237c0fa
Fix Missing Variable
wmonk Jan 11, 2018
6f0c62f
Fix
wmonk Jan 11, 2018
bb74fb6
Update JestConfig Creation
wmonk Jan 11, 2018
16af26f
Readd Missing raf Package
wmonk Jan 11, 2018
0d43626
Update package.json dependencies
wmonk Jan 11, 2018
b072857
Update react-dev-utils
wmonk Jan 11, 2018
13c0e7f
Readd transformIgnorePatterns
wmonk Jan 12, 2018
e637c79
Update createJestConfig.js
wmonk Jan 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ More detailed information are in the dedicated [README](/packages/react-scripts/
* Add a four-space indented paragraph after each non-trivial list item, explaining what changed and why. For each breaking change also write who it affects and instructions for migrating existing code.
* Maybe add some newlines here and there. Preview the result on GitHub to get a feel for it. Changelog generator output is a bit too terse for my taste, so try to make it visually pleasing and well grouped.
6. Make sure to include “Migrating from ...” instructions for the previous release. Often you can copy and paste them.
7. After merging the changelog update, create a GitHub Release with the same text. See previous Releases for inspiration.
8. **Do not run `npm publish`. Instead, run `npm run publish`.**
9. Wait for a long time, and it will get published. Don’t worry that it’s stuck. In the end the publish script will prompt for versions before publishing the packages.
7. **Do not run `npm publish`. Instead, run `npm run publish`.**
8. Wait for a long time, and it will get published. Don’t worry that it’s stuck. In the end the publish script will prompt for versions before publishing the packages.
9. After publishing, create a GitHub Release with the same text as the changelog entry. See previous Releases for inspiration.

Make sure to test the released version! If you want to be extra careful, you can publish a prerelease by running `npm run publish -- --tag next` instead of `npm run publish`.

Expand Down
43 changes: 17 additions & 26 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
BSD License
MIT License

For create-react-app software
Copyright (c) 2013-present, Facebook, Inc.

Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
33 changes: 0 additions & 33 deletions PATENTS

This file was deleted.

1 change: 1 addition & 0 deletions appveyor.cleanup-cache.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ http://help.appveyor.com/discussions/questions/1310-delete-cache

----
Just testing if this works.
lalala.
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ image: Visual Studio 2017

environment:
matrix:
- nodejs_version: 7
- nodejs_version: 8
test_suite: "simple"
- nodejs_version: 7
- nodejs_version: 8
test_suite: "installs"
- nodejs_version: 7
- nodejs_version: 8
test_suite: "kitchensink"
- nodejs_version: 6
test_suite: "simple"
Expand Down
6 changes: 2 additions & 4 deletions packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';

Expand Down
12 changes: 6 additions & 6 deletions packages/babel-preset-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "babel-preset-react-app",
"version": "3.0.2",
"version": "3.1.0",
"description": "Babel preset used by Create React App",
"repository": "facebookincubator/create-react-app",
"license": "BSD-3-Clause",
"license": "MIT",
"bugs": {
"url": "https://github.com/facebookincubator/create-react-app/issues"
},
"files": [
"index.js"
],
"dependencies": {
"babel-plugin-dynamic-import-node": "1.0.2",
"babel-plugin-dynamic-import-node": "1.1.0",
"babel-plugin-syntax-dynamic-import": "6.18.0",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.23.0",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-plugin-transform-react-constant-elements": "6.23.0",
"babel-plugin-transform-react-jsx": "6.24.1",
"babel-plugin-transform-react-jsx-self": "6.22.0",
"babel-plugin-transform-react-jsx-source": "6.22.0",
"babel-plugin-transform-regenerator": "6.24.1",
"babel-plugin-transform-regenerator": "6.26.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.5.2",
"babel-preset-env": "1.6.1",
"babel-preset-react": "6.24.1"
},
"peerDependencies": {
Expand Down
125 changes: 85 additions & 40 deletions packages/create-react-app/createReactApp.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -75,14 +73,10 @@ const program = new commander.Command(packageJson.name)
);
console.log(` - a specific npm version: ${chalk.green('0.8.2')}`);
console.log(
` - a custom fork published on npm: ${chalk.green(
'my-react-scripts'
)}`
` - a custom fork published on npm: ${chalk.green('my-react-scripts')}`
);
console.log(
` - a .tgz archive: ${chalk.green(
'https://mysite.com/my-react-scripts-0.8.2.tgz'
)}`
` - a .tgz archive: ${chalk.green('https://mysite.com/my-react-scripts-0.8.2.tgz')}`
);
console.log(
` It is not needed unless you specifically want to use a fork.`
Expand All @@ -92,9 +86,7 @@ const program = new commander.Command(packageJson.name)
` If you have any problems, do not hesitate to file an issue:`
);
console.log(
` ${chalk.cyan(
'https://github.com/facebookincubator/create-react-app/issues/new'
)}`
` ${chalk.cyan('https://github.com/facebookincubator/create-react-app/issues/new')}`
);
console.log();
})
Expand Down Expand Up @@ -160,8 +152,13 @@ function createApp(name, verbose, version, template) {
path.join(root, 'package.json'),
JSON.stringify(packageJson, null, 2)
);

const useYarn = shouldUseYarn();
const originalDirectory = process.cwd();
process.chdir(root);
if (!useYarn && !checkThatNpmCanReadCwd()) {
process.exit(1);
}

if (!semver.satisfies(process.version, '>=6.0.0')) {
console.log(
Expand All @@ -174,7 +171,6 @@ function createApp(name, verbose, version, template) {
version = '[email protected]';
}

const useYarn = shouldUseYarn();
if (!useYarn) {
const npmInfo = checkNpmVersion();
if (!npmInfo.hasMinNpm) {
Expand Down Expand Up @@ -202,7 +198,7 @@ function shouldUseYarn() {
}
}

function install(useYarn, dependencies, verbose, isOnline) {
function install(root, useYarn, dependencies, verbose, isOnline) {
return new Promise((resolve, reject) => {
let command;
let args;
Expand All @@ -214,6 +210,14 @@ function install(useYarn, dependencies, verbose, isOnline) {
}
[].push.apply(args, dependencies);

// Explicitly set cwd() to work around issues like
// https://github.com/facebookincubator/create-react-app/issues/3326.
// Unfortunately we can only do this for Yarn because npm support for
// equivalent --prefix flag doesn't help with this issue.
// This is why for npm, we run checkThatNpmCanReadCwd() early instead.
args.push('--cwd');
args.push(root);

if (!isOnline) {
console.log(chalk.yellow('You appear to be offline.'));
console.log(chalk.yellow('Falling back to the local Yarn cache.'));
Expand Down Expand Up @@ -261,23 +265,19 @@ function run(

console.log('Installing packages. This might take a couple of minutes.');
getPackageName(packageToInstall)
.then(packageName =>
checkIfOnline(useYarn).then(isOnline => ({
isOnline: isOnline,
packageName: packageName,
}))
)
.then(packageName => checkIfOnline(useYarn).then(isOnline => ({
isOnline: isOnline,
packageName: packageName,
})))
.then(info => {
const isOnline = info.isOnline;
const packageName = info.packageName;
console.log(
`Installing ${chalk.cyan('react')}, ${chalk.cyan(
'react-dom'
)}, and ${chalk.cyan(packageName)}...`
`Installing ${chalk.cyan('react')}, ${chalk.cyan('react-dom')}, and ${chalk.cyan(packageName)}...`
);
console.log();

return install(useYarn, allDependencies, verbose, isOnline).then(
return install(root, useYarn, allDependencies, verbose, isOnline).then(
() => packageName
);
})
Expand Down Expand Up @@ -341,9 +341,7 @@ function run(
if (!remainingFiles.length) {
// Delete target folder if empty
console.log(
`Deleting ${chalk.cyan(`${appName} /`)} from ${chalk.cyan(
path.resolve(root, '..')
)}`
`Deleting ${chalk.cyan(`${appName} /`)} from ${chalk.cyan(path.resolve(root, '..'))}`
);
process.chdir(path.resolve(root, '..'));
fs.removeSync(path.join(root));
Expand Down Expand Up @@ -431,9 +429,7 @@ function getPackageName(installPackage) {
/^.+\/(.+?)(?:-\d+.+)?\.tgz$/
)[1];
console.log(
`Based on the filename, assuming it is "${chalk.cyan(
assumedProjectName
)}"`
`Based on the filename, assuming it is "${chalk.cyan(assumedProjectName)}"`
);
return Promise.resolve(assumedProjectName);
});
Expand Down Expand Up @@ -496,9 +492,7 @@ function checkAppName(appName) {
const validationResult = validateProjectName(appName);
if (!validationResult.validForNewPackages) {
console.error(
`Could not create a project called ${chalk.red(
`"${appName}"`
)} because of npm naming restrictions:`
`Could not create a project called ${chalk.red(`"${appName}"`)} because of npm naming restrictions:`
);
printValidationResults(validationResult.errors);
printValidationResults(validationResult.warnings);
Expand All @@ -510,9 +504,7 @@ function checkAppName(appName) {
if (dependencies.indexOf(appName) >= 0) {
console.error(
chalk.red(
`We cannot create a project called ${chalk.green(
appName
)} because a dependency with the same name exists.\n` +
`We cannot create a project called ${chalk.green(appName)} because a dependency with the same name exists.\n` +
`Due to the way npm works, the following names are not allowed:\n\n`
) +
chalk.cyan(dependencies.map(depName => ` ${depName}`).join('\n')) +
Expand All @@ -534,9 +526,7 @@ function makeCaretRange(dependencies, name) {

if (!semver.validRange(patchedVersion)) {
console.error(
`Unable to patch ${name} dependency version because version ${chalk.red(
version
)} will become invalid ${chalk.red(patchedVersion)}`
`Unable to patch ${name} dependency version because version ${chalk.red(version)} will become invalid ${chalk.red(patchedVersion)}`
);
patchedVersion = version;
}
Expand Down Expand Up @@ -606,6 +596,61 @@ function isSafeToCreateProjectIn(root, name) {
return false;
}

function checkThatNpmCanReadCwd() {
const cwd = process.cwd();
let childOutput = null;
try {
// Note: intentionally using spawn over exec since
// the problem doesn't reproduce otherwise.
// `npm config list` is the only reliable way I could find
// to reproduce the wrong path. Just printing process.cwd()
// in a Node process was not enough.
childOutput = spawn.sync('npm', ['config', 'list']).output.join('');
} catch (err) {
// Something went wrong spawning node.
// Not great, but it means we can't do this check.
// We might fail later on, but let's continue.
return true;
}
if (typeof childOutput !== 'string') {
return true;
}
const lines = childOutput.split('\n');
// `npm config list` output includes the following line:
// "; cwd = C:\path\to\current\dir" (unquoted)
// I couldn't find an easier way to get it.
const prefix = '; cwd = ';
const line = lines.find(line => line.indexOf(prefix) === 0);
if (typeof line !== 'string') {
// Fail gracefully. They could remove it.
return true;
}
const npmCWD = line.substring(prefix.length);
if (npmCWD === cwd) {
return true;
}
console.error(
chalk.red(
`Could not start an npm process in the right directory.\n\n` +
`The current directory is: ${chalk.bold(cwd)}\n` +
`However, a newly started npm process runs in: ${chalk.bold(npmCWD)}\n\n` +
`This is probably caused by a misconfigured system terminal shell.`
)
);
if (process.platform === 'win32') {
console.error(
chalk.red(`On Windows, this can usually be fixed by running:\n\n`) +
` ${chalk.cyan('reg')} delete "HKCU\\Software\\Microsoft\\Command Processor" /v AutoRun /f\n` +
` ${chalk.cyan('reg')} delete "HKLM\\Software\\Microsoft\\Command Processor" /v AutoRun /f\n\n` +
chalk.red(`Try to run the above two lines in the terminal.\n`) +
chalk.red(
`To learn more about this problem, read: https://blogs.msdn.microsoft.com/oldnewthing/20071121-00/?p=24433/`
)
);
}
return false;
}

function checkIfOnline(useYarn) {
if (!useYarn) {
// Don't ping the Yarn registry.
Expand Down
Loading