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

2.0.0 #65

Merged
merged 337 commits into from
May 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
337 commits
Select commit Hold shift + click to select a range
af6a0ff
Fixed missing flag in first preprocess command (#1687)
mklemme Mar 1, 2017
43139bc
Re-enable e2e-install directory test
Timer Mar 1, 2017
404c354
Suggest to use .env for enabling polling mode (#1698)
gaearon Mar 2, 2017
45d1d24
Update extract-text-webpack-plugin to latest (#1700)
SimenB Mar 2, 2017
db64278
Diagnostic code (#1695)
tgig Mar 2, 2017
c7a9dae
Fix Jest tests for Cygwin
Timer Mar 3, 2017
59cab8f
Improve reliability of port hint. (#1696)
chrisdrackett Mar 3, 2017
b88d665
Modularise scripts (#1433)
djgrant Mar 4, 2017
72695a1
Remove unneeded `url` lib (#1715)
pd4d10 Mar 4, 2017
b421ed9
pin and bump lerna (#1688)
viankakrisna Mar 4, 2017
8951fbe
Lerna 2.0.0-beta.38 expects packages entry
Timer Mar 4, 2017
443ca23
Add docs for apache's client side routing setting (#1717)
viankakrisna Mar 5, 2017
3fe8289
Update now.sh deployment instructions. (#1710)
replaid Mar 5, 2017
19a4672
Add support for ignoreRestSiblings in no-unused-vars (#1705)
chrisdrackett Mar 5, 2017
4ec5af3
add double quotes to escape spaces in paths in e2e (#1707)
viankakrisna Mar 5, 2017
ae61bf6
Create appveyor.cleanup-cache.txt
gaearon Mar 5, 2017
9d8096e
Link Appveyor caches to appveyor.cleanup-cache.txt
gaearon Mar 5, 2017
23f85d3
Trigger AppVeyor cache cleanup
gaearon Mar 5, 2017
d07accb
Fix openBrowser() when BROWSER=open on macOS (#1690)
bpierre Mar 5, 2017
5414cff
Create empty package.json in e2e test (#1401) (#1402)
matoilic Mar 5, 2017
01c3597
Skip AppVeyor CI builds for Markdown changes (#1723)
gaearon Mar 5, 2017
ed9eeeb
Don't use ES6 in a file that should run on Node 4 (#1724)
gaearon Mar 5, 2017
13f26e3
Bump jsx-a11y version (#1542)
bondz Mar 5, 2017
dbee660
Bump ESLint config to 0.6.0 manually
gaearon Mar 5, 2017
e001da9
Bump root package’s ESLint config dep to latest to resolve peer on npm 2
gaearon Mar 5, 2017
df3ca8e
Fix Node 4 e2e tests (#1730)
Timer Mar 5, 2017
2f7e3a2
Lint internal scripts with eslint:recommended (#1729)
gaearon Mar 5, 2017
23dc422
Fix ejecting from a scoped fork (#1727)
gaearon Mar 5, 2017
3fa5e8e
Properly extract package name for installing tgz of scoped packages (…
Timer Mar 5, 2017
fbdff9d
extract generic build functions to react-dev-utils (#1726)
viankakrisna Mar 6, 2017
e0365a5
Bust AppVeoyr cache
gaearon Mar 6, 2017
03d15f4
Relax ESLint config peerDependency (#1740)
gaearon Mar 6, 2017
1bfd5da
Fix internal linting setup and add missing headers (#1741)
gaearon Mar 6, 2017
d7bcc19
Fix eject for linked react-scripts (#1736)
tuchk4 Mar 6, 2017
abe3b84
Add changelog for 0.9.4
Timer Mar 6, 2017
956322b
Published branch 0.9.x
Timer Mar 6, 2017
cc35b8e
Adjust changelog wording
Timer Mar 6, 2017
24f38f8
Switch to preset-env (#1742)
Timer Mar 7, 2017
ed5c016
Add runtime error overlay (#1101)
Timer Mar 7, 2017
2ac1b38
Whitelist files that can be embedded through url-loader (#1305)
pugnascotia Mar 7, 2017
3b15f0a
Update deps for webpack 2
Timer Mar 7, 2017
7dd124c
Update broken link
gaearon Mar 7, 2017
43873dc
Display yarn instead of yarnpkg when creating a new app (#1747)
lpalmes Mar 7, 2017
fe7b5c2
update to modern code style (#1738)
tuchk4 Mar 7, 2017
8885f8f
Create PR_TEMPLATE.md
gaearon Mar 7, 2017
66dda48
Rename PR_TEMPLATE.md to PULL_REQUEST_TEMPLATE.md
gaearon Mar 7, 2017
db008e6
Update PULL_REQUEST_TEMPLATE.md
gaearon Mar 7, 2017
837f544
Add yarn steps for adding flow (#1756)
zertosh Mar 7, 2017
a235694
Add lint-staged + husky for prettier auto-formatting on commit (#1759)
Mar 8, 2017
a002317
Clarify philosophy about configuration (#1679)
alberto Mar 8, 2017
4bc9e79
Update configuration philosophy (#1768)
Timer Mar 8, 2017
8c00af1
Suggest `serve` for running in production (#1760)
leo Mar 8, 2017
9c9f8f6
Remove 'guard-for-in' lint rule (#1773)
sophiebits Mar 9, 2017
0c0c5c1
Run CI on Node 7; Bump detect-port: 1.0.1 -> 1.1.0 (#1776) (#1783)
ryanwalters Mar 9, 2017
2a03137
Add 0.9.5 changelog (#1784)
gaearon Mar 9, 2017
76680ae
docs(babel-preset): Update comment info about babel-preset-env. (#1787)
evenchange4 Mar 10, 2017
0a66347
Feature/readme-nomoretools (#1799)
moniuch Mar 11, 2017
052fcdd
Suggest "yarn build" rather than "yarn run build" (#1800)
geoffdavis92 Mar 12, 2017
b55a7d8
Tweak the wording
gaearon Mar 13, 2017
ccb5f84
Fixes a silent crash when ejecting (#1810)
gaearon Mar 14, 2017
b3dc81d
Link to CRNA
gaearon Mar 14, 2017
0ace417
Make scripts crash on unhandled rejections (#1819)
dbismut Mar 14, 2017
9512d97
Allow creation of apps in empty mercurial repos (#1811)
GreenGremlin Mar 15, 2017
35d84ef
Make Surge guide more focused
gaearon Mar 18, 2017
c436bf3
User Guide: Removed blockquote from code section, due to markdown con…
Mar 21, 2017
2574a7e
Fix AppVeyor CI (#1876)
darrenscerri Mar 22, 2017
82cebbf
Provide commander with package name (#1867)
mkazantsev Mar 22, 2017
2ac3f99
Fix responsive behavior in iOS 9+ (#1821)
GreenGremlin Mar 22, 2017
0d4d59f
Check internet connectivity with lookup instead of resolve (#1863)
kdleijer Mar 22, 2017
bc6fc95
Update `detect-port` (#1861)
Andreyco Mar 22, 2017
47a8148
Fix importing npm linked libraries (#1359)
AsaAyers Mar 23, 2017
1e1a3cb
Test for accidental extraneous dependencies (#1825)
lpalmes Mar 23, 2017
b403048
Fix AppVeyor CI (#1868)
darrenscerri Mar 24, 2017
7b124e7
Re-disable babel modules transform (#1894)
Timer Mar 27, 2017
5364908
Duplicate CLI file warning header
Timer Mar 27, 2017
c83ee7a
Suggest Yarn in HTML template (#1911)
tmos Apr 5, 2017
798572a
Note that only jest-enzyme@2.x is compatible
gaearon Apr 9, 2017
53943a8
Add sku to the list of alternatives (#1962)
markdalgleish Apr 10, 2017
cb41a76
Update information in User Guide for Enzyme dependency (#1982)
josephrace Apr 14, 2017
f61cba1
Ensure proxy url starts with `http://` or `https://` (#1890)
bunshar Apr 15, 2017
3124328
Add linked modules test (#1913)
Timer Apr 15, 2017
ef86877
Start the dev server at the specified host (#1301)
GAumala Apr 19, 2017
0b9c65f
Add folder structure docs for new contributors (#1991)
anilreddykatta Apr 19, 2017
a0b16df
Relax label rules (#1989)
anilreddykatta Apr 19, 2017
05f3f5e
Update doc server example to work from any directory (#1988)
isramos Apr 19, 2017
31a38b3
removed options in UglifyJsPlugin which are equal to the defaults (#1…
marcofugaro Apr 19, 2017
c0fd569
Resolve localhost when offline on Windows (#1839)
bunshar Apr 21, 2017
d6173fd
Minify and map css (#2013)
viankakrisna Apr 22, 2017
a53f22b
Fix AppVeyor CI (#2010)
Timer Apr 22, 2017
a1b56cf
Update README.md CSS Preprocessor --> node-sass-chokidar alternative …
michaelwayman Apr 22, 2017
5bb502a
Turn off CSS source maps
Timer Apr 24, 2017
927c539
Use custom sourcemap file names
Timer Apr 25, 2017
d721d4a
Modularize and extract crashOverlay to iframe (#1842)
Timer Apr 25, 2017
88f4f95
Upgrade webpack deps and use strictExportPresence (#2028)
Timer Apr 25, 2017
33a9700
Fix Netlify heading level. (#2033)
benpickles Apr 25, 2017
d65070e
Use prop-types package (#2029)
Timer Apr 25, 2017
bed9a39
Update README.md (#2040)
tijwelch Apr 28, 2017
3fac036
Define dev chunk names (#2050)
jstcki May 1, 2017
851a404
Suggest to create .eslintrc for IDE lint plugins (#2054)
gaearon May 1, 2017
629d575
Update README.md (#2058)
luftywiranda13 May 1, 2017
f762728
Fix instructions for serving with now (#2052)
davidascher May 2, 2017
f1563b9
Temporarily pin Yarn to fix CI
gaearon May 3, 2017
59c439b
Fixed documentation link for storybook in README.md (#2081)
May 4, 2017
5a7d8e8
Forbid using window properties as global variables (#1840)
sidoshi May 5, 2017
94149c7
Ignore the yarn cache directory (#2063)
jmorrell May 8, 2017
3a527f2
Revert "Forbid using window properties as global variables" (#2099)
gaearon May 8, 2017
2d7a1bb
Minor tweaks for crash overlay (#2101)
gaearon May 9, 2017
f35593c
Bump minimal Node version to 6 (#1897)
ianschmitz May 9, 2017
0a50395
Prettify errors and warnings for Webpack 2 (#2113)
gaearon May 10, 2017
1acc3a4
Do not parse `.eslintignore` (#2115)
Timer May 10, 2017
70768b3
Add `react-error-overlay` package (#2111)
Timer May 10, 2017
8d4604e
Default to 0.0.0.0 (#2117)
Timer May 11, 2017
6959077
Omit ESLint warnings when there are ESLint errors (#2120)
gaearon May 11, 2017
942cf62
Adds tests for the overlay (#2118)
Timer May 11, 2017
efd99a9
disable ignoring unused vars prefixed with _ (#1763)
sidoshi May 11, 2017
a4bd567
Bump React in development (#2122)
gaearon May 11, 2017
3521eb7
Make error box messages friendlier (#2123)
gaearon May 11, 2017
1ede6a8
Only show first error (#2125)
gaearon May 11, 2017
2b59654
Fix a bad condition
gaearon May 11, 2017
2de95c4
Update Sass docs (#2114)
kellyrmilligan May 12, 2017
80a7fc3
Feature/different env config files #1343 (#1344)
tuchk4 May 12, 2017
68fcba4
Add note about yarn.lock in CONTRIBUTING.md (#2135)
viankakrisna May 12, 2017
fa48296
Update README.md (#2137)
cesarvarela May 12, 2017
76d2d84
Improve unmapper file heuristic, add limited warning support, and ign…
Timer May 13, 2017
b25c133
Skip React frames that are too close (#2143)
gaearon May 14, 2017
4434467
Click to view source from error overlay (#2141)
gaearon May 14, 2017
ac7777d
Work around weird inferred name in Chrome
gaearon May 14, 2017
8b451c3
Don't collapse unintentional top-level errors (#2145)
gaearon May 14, 2017
dbd12f1
Add a missing color mapping (#2146)
Timer May 14, 2017
06e73fa
Blacklist confusing global variables (#2130)
sidoshi May 14, 2017
be43292
Temporarily fork detect-port (#2147)
Timer May 14, 2017
82687dd
Replace prompt function from react-dev-utils with Inquirer.js. (#1772)
iansu May 14, 2017
10c734b
Print error messages for editor integration (#2150)
gaearon May 14, 2017
f17448e
Add custom eslint formatter (#2138)
sidoshi May 14, 2017
77087da
Fix CI
Timer May 14, 2017
21349c5
Tweak error and warning output (#2152)
gaearon May 15, 2017
5e35645
Focus on line in eslint messages
gaearon May 15, 2017
75fc094
Fix CI
Timer May 15, 2017
9b22817
[Internal] Warn for missing brackets (#2151)
Timer May 15, 2017
71a27c0
Allow custom proxies in development (#1790)
jamesblight May 15, 2017
281e8d2
Add support for IPv6 hosts
Timer May 15, 2017
4dc7c86
Prefer localhost as an address (#2154)
Timer May 15, 2017
ac63130
Show network address on start (#2155)
Timer May 15, 2017
172264e
Bump webpack packages
gaearon May 15, 2017
9e733b5
Internal Webpack paths should not be clickable
gaearon May 15, 2017
f87e613
Make error/warning output more useful (#2161)
gaearon May 15, 2017
e17c392
Fix lint
Timer May 15, 2017
f366028
Fix CI
Timer May 15, 2017
71e0960
Update to Jest 19 (#1614)
rogeliog May 15, 2017
fcb7dcf
Put console.stack() behind a react vendor prefix (#2164)
gaearon May 15, 2017
5ecda24
Unpin Yarn (#2124)
gaearon May 15, 2017
7bff715
ESLint Config: Upgrade eslint-plugin-jsx-a11y and activate more rules…
AlmeroSteyn May 15, 2017
814365b
Removing extra `eslint` rules (#2064)
anilreddykatta May 15, 2017
d6dbfc0
Support hoisting react-scripts and add require.resolve() to loaders (…
gaearon May 15, 2017
8f028ae
Support node scripts in BROWSER (#1590)
GAumala May 15, 2017
9b231d4
Enable CSS sourcemaps in production (#2168)
gaearon May 15, 2017
044e57b
Adding plugin postcss-flexbugs-fixes and flexbox: 'no-2009' to Autopr…
cr101 May 16, 2017
1832b76
Try to fix CI
gaearon May 16, 2017
9f8a001
Try again
gaearon May 16, 2017
c5e5eb5
Only run tests in <rootDir>/src (#544) (#1808)
kindrowboat May 16, 2017
0ffed85
Bump dependencies (#2170)
gaearon May 16, 2017
98fec2d
react-dev-utils/openBrowser now supports urls with 2+ params (#2076)
alisonmonteiro May 16, 2017
db2f2ed
Jest 20 (#2171)
gaearon May 16, 2017
10a180b
Make coverage and snapshot Jest options overridable in package.json (…
ryansully May 16, 2017
5868913
Bump versions
gaearon May 16, 2017
50aaae6
Resolve regenerator runtime relative to react-scripts (#2175)
gaearon May 16, 2017
66792dd
Fix Flow hopefully
gaearon May 16, 2017
dadf93b
Disable require.ensure() warning (#2177)
gaearon May 16, 2017
134d229
Reenable require.ensure()
gaearon May 16, 2017
46eeabc
Tweak colors for better contrast on Windows (#2180)
gaearon May 16, 2017
e280254
Handle errors from port detector (#2182)
gaearon May 16, 2017
493e5a6
Tweak lint rules (#2186)
gaearon May 16, 2017
65ff548
Ignore Moment.js locales by default (#2187)
gaearon May 16, 2017
e1f22b5
Disable Yarn on CI temporarily
gaearon May 17, 2017
a61be9c
Add module scope plugin (#2189)
Timer May 17, 2017
e7c113e
Webpack config typo (#2193)
Justkant May 17, 2017
c7c3a52
PWA-ification, via SWPrecacheWebpackPlugin + manifest.json (#1728)
jeffposnick May 17, 2017
d9a2974
Tidy up some build logs (#2197)
gaearon May 17, 2017
ee850f5
Bump Jest to 20.0.3 (#2196)
gaearon May 17, 2017
c27d765
Test module scoping (#2198)
Timer May 17, 2017
fd2a800
Disable Uglify reduce_vars (#2200)
gaearon May 17, 2017
68f95d4
Tweaking error overlay styles (#2201)
bvaughn May 17, 2017
c82c4f0
Refactor and improve build output (#2202)
gaearon May 18, 2017
0681e24
Tweaked error overlay styles (pt2) (#2208)
bvaughn May 18, 2017
8dc9217
Move more logic from react-scripts to react-dev-utils (#2209)
gaearon May 18, 2017
0d0536f
Fix vertical alignment of close button
gaearon May 18, 2017
02968ec
Cleaned up next/prev error arrow styles; arrows wrap around when clic…
bvaughn May 18, 2017
2ae1772
Add temporary support for Node 4.x to global CLI (#2214)
gaearon May 18, 2017
07c75aa
Replace text-align: start with left to fix Edge (#2215)
gaearon May 18, 2017
5f93bc4
ES6 syntax (#2213)
shashkovdanil May 18, 2017
55afd86
Move error overlay middleware (#2216)
gaearon May 18, 2017
43b819c
"rule keywords" => "keywords"
gaearon May 18, 2017
6c8b18b
Improve interaction between compile and runtime overlays (#2219)
gaearon May 18, 2017
b98ba3d
Better document PWA stuff
gaearon May 19, 2017
741c4f0
Enable 1.0 docs (#2220)
Timer May 19, 2017
54ea478
Add documentation about using code splitting (#1801)
tharakawj May 19, 2017
a5e88cd
Swap changelogs (#2222)
gaearon May 19, 2017
bf9eca2
Publish
gaearon May 19, 2017
26c9a3d
Update CHANGELOG.md
gaearon May 19, 2017
af7fbae
March -> May
gaearon May 19, 2017
499adbe
Fix shortcut handling in react-error-overlay (#2238)
Gandem May 19, 2017
70a7f28
Add explicit package dependence (#2243)
Timer May 19, 2017
4a32171
Fix read of .env variables (#2242)
ApacheEx May 19, 2017
e0b444e
Gracefully shut down the server on signals (#2246)
gaearon May 19, 2017
2023e44
Shame on me
gaearon May 19, 2017
5410aa4
Correct docs on which .env.* files are supported. (#2247)
AJamesPhillips May 19, 2017
9d98ca9
Hide React Storybook from the User Guide while it's incompatible (#2252)
gaearon May 19, 2017
1834cb5
Show customized build path for serve instruction (#2229)
chyipin May 19, 2017
f3f5599
Ignore .env.local in test environment (#2250)
gaearon May 19, 2017
c749de7
add noscript to template's index.html (#2224)
viankakrisna May 19, 2017
22ca584
Work around Windows path issue in SWPrecacheWebpackPlugin (#2255)
gaearon May 19, 2017
e939a5b
Turn off operator-assignment stylistic rule (#2256)
gaearon May 19, 2017
bf7df73
update readme with example of include path (#2258)
kellyrmilligan May 19, 2017
d6d2f6d
update reference with new name (#2259)
enguerran May 19, 2017
3cd2267
Additional fix to service worker config for "homepage" field (#2262)
gaearon May 19, 2017
d24311e
Always resolve NODE_PATH (#2261)
gaearon May 19, 2017
3a3be74
Fix a bug on empty NODE_PATH (#2264)
gaearon May 19, 2017
e806332
Shut down server silently, as it is too noisy
gaearon May 19, 2017
b460795
Add changelog for 1.0.1 (#2266)
gaearon May 19, 2017
cd5c6d5
Publish
gaearon May 19, 2017
68cd598
Fix missing dependency (#2269)
GreenGremlin May 19, 2017
2143a30
Describe build in less fluffy terms
gaearon May 19, 2017
34b4ad8
Update README.md
gaearon May 19, 2017
95cbcc4
Update README.md
gaearon May 19, 2017
4e886f7
Update CHANGELOG.md
gaearon May 19, 2017
d3e8536
Add WSL support to launchEditor utility (#2282)
noinkling May 20, 2017
ba0d0da
Only enable host check if you use proxy, and add a way to opt out of …
gaearon May 20, 2017
a257e7d
Ejecting should ensure you have clean git status (#2221)
milocosmopolitan May 20, 2017
f3ff3f2
Add missing license headers
gaearon May 20, 2017
d76c1b7
Wrap console calls into a check (#2290)
gaearon May 20, 2017
eadfad2
Provide a no-op SW that will be served by the dev environment. (#2276)
jeffposnick May 20, 2017
a1749f9
Remove unnecessary dependencies(#751) (#2283)
pmadar May 20, 2017
73356a1
Add changelog for 1.0.2 (#2291)
gaearon May 20, 2017
ae0cb23
Publish
gaearon May 20, 2017
d558eaa
Roll back to an older version of case-sensitive-paths-webpack-plugin …
gaearon May 21, 2017
7348ca9
Wrap console calls into a check (#2301)
BrodaNoel May 21, 2017
3260d17
Remove `flowtype/require-valid-file-annotation` temporarily. (#2311)
Robdel12 May 21, 2017
2430b56
Ensure address is private (#2297)
Timer May 21, 2017
d34a892
Changelog for 1.0.3 (#2315)
gaearon May 21, 2017
d649b8a
Publish
gaearon May 21, 2017
32f52be
Merge remote-tracking branch 'facebook/master'
wmonk May 21, 2017
25f6f8a
v2.0.0-alpha
wmonk May 21, 2017
e7f4221
2.0.0-alpha
wmonk May 22, 2017
6c9b574
Remove tarec from README (#2323)
geowarin May 22, 2017
812658a
1.0.4 changelog
gaearon May 22, 2017
66e05f4
Fix @type Installing
May 22, 2017
c7f2d12
v2.0.0-alpha.0
May 22, 2017
aa3e284
v2.0.0-alpha.3
May 22, 2017
d688c60
Update Readme
May 22, 2017
fc46e5e
Merge create-react-app@1.0.4
May 22, 2017
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
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"rules": {
"no-console": "off",
"strict": ["error", "global"]
"strict": ["error", "global"],
"curly": "warn"
}
}
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
language: node_js
node_js:
- 4
- 6
- 7
cache:
Expand All @@ -20,9 +19,12 @@ env:
matrix:
- TEST_SUITE=simple
- TEST_SUITE=installs
- TEST_SUITE=kitchensink
matrix:
include:
- node_js: 0.10
env: TEST_SUITE=simple
- node_js: 6
env: USE_YARN=yes TEST_SUITE=simple
# There's a weird Yarn/Lerna bug related to prerelease versions.
# TODO: reenable after we ship 1.0.
# - node_js: 6
# env: USE_YARN=yes TEST_SUITE=simple
1,374 changes: 1,374 additions & 0 deletions CHANGELOG-0.x.md

Large diffs are not rendered by default.

1,548 changes: 407 additions & 1,141 deletions CHANGELOG.md

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,36 @@ Please **ask first** if somebody else is already working on this or the core dev

Please also provide a **test plan**, i.e. specify how you verified that your addition works.

## Folder Structure of Create React App
`create-react-app` is a monorepo, meaning it is divided into independent sub-packages.<br>
These packages can be found in the [`packages/`](https://github.com/facebookincubator/create-react-app/tree/master/packages) directory.

### Overview of directory structure
```
packages/
babel-preset-react-app/
create-react-app/
eslint-config-react-app/
react-dev-utils/
react-scripts/
```
### Package Descriptions
#### [babel-preset-react-app](https://github.com/facebookincubator/create-react-app/tree/master/packages/babel-preset-react-app)
This package is a babel preset intended to be used with `react-scripts`.<br>
It targets platforms that React is designed to support (IE 9+) and enables experimental features used heavily at Facebook.<br>
This package is enabled by default for all `create-react-app` scaffolded applications.
#### [create-react-app](https://github.com/facebookincubator/create-react-app/tree/master/packages/create-react-app)
The global CLI command code can be found in this directory, and shouldn't often be changed. It should run on Node 0.10+.
#### [eslint-config-react-app](https://github.com/facebookincubator/create-react-app/tree/master/packages/eslint-config-react-app)
This package contains a conservative set of rules focused on making errors apparent and enforces no style rules.<br>
This package is enabled by default for all `create-react-app` scaffolded applications.
#### [react-dev-utils](https://github.com/facebookincubator/create-react-app/tree/master/packages/react-dev-utils)
This package contains utilities used for `react-scripts` and sister packages.<br>
Its main purpose is to conceal code which the user shouldn't be burdened with upon ejecting.
#### [react-scripts](https://github.com/facebookincubator/create-react-app/tree/master/packages/react-scripts)
This package is the heart of the project, which contains the scripts for setting up the development server, building production builds, configuring all software used, etc.<br>
All functionality must be retained (and configuration given to the user) if they choose to eject.

## Setting Up a Local Copy

1. Clone the repo with `git clone https://github.com/facebookincubator/create-react-app`
Expand All @@ -58,6 +88,8 @@ cd my-app

and then run `npm start` or `npm run build`.

*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.*

## Cutting a Release

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.
Expand Down
8 changes: 8 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!--
Thank you for sending the PR!
If you changed any code, there are just two more things to do:

* Provide us with clear instructions on how you verified your changes work. Bonus points for screenshots!

Happy contributing!
-->
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ When you run `npm run build` the terminal will output the error, including the h

## Changelog

### 2.0.0
* Upgrade to [`react-scripts@1.x.x`](https://github.com/facebookincubator/create-react-app/blob/0d1521aabf5a0201ea1bcccc33e286afe048f820/CHANGELOG.md)

### 1.4.0
* Upgrade to typescript@2.3.2 - thanks to @patrick91
* Add tests around react-scripts-ts - thanks to @migerh
Expand Down
10 changes: 4 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
image: Visual Studio 2017

environment:
matrix:
- nodejs_version: 7
Expand All @@ -12,12 +14,6 @@ environment:
test_suite: "installs"
- nodejs_version: 6
test_suite: "kitchensink"
- nodejs_version: 4
test_suite: "simple"
- nodejs_version: 4
test_suite: "installs"
- nodejs_version: 4
test_suite: "kitchensink"

cache:
- node_modules -> appveyor.cleanup-cache.txt
Expand All @@ -32,6 +28,8 @@ platform:
- x64

install:
# TODO: Remove after https://github.com/appveyor/ci/issues/1426 is fixed
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- ps: Install-Product node $env:nodejs_version $env:platform

build: off
Expand Down
23 changes: 19 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,29 @@
"changelog": "lerna-changelog",
"create-react-app": "tasks/cra.sh",
"e2e": "tasks/e2e-simple.sh",
"postinstall": "lerna bootstrap",
"postinstall": "lerna bootstrap && cd packages/react-error-overlay/ && npm run build:prod",
"publish": "tasks/release.sh",
"start": "node packages/react-scripts/scripts/start.js",
"test": "node packages/react-scripts/scripts/test.js --env=jsdom"
"test": "node packages/react-scripts/scripts/test.js --env=jsdom",
"format": "prettier --trailing-comma es5 --single-quote --write 'packages/*/*.js' 'packages/*/!(node_modules)/**/*.js'",
"precommit": "lint-staged"
},
"devDependencies": {
"eslint": "3.16.1",
"@types/jest": "^19.2.3",
"@types/node": "^7.0.21",
"@types/react": "^15.0.24",
"@types/react-dom": "^15.5.0",
"eslint": "3.19.0",
"husky": "^0.13.2",
"lerna": "2.0.0-beta.38",
"lerna-changelog": "^0.2.3"
"lerna-changelog": "^0.2.3",
"lint-staged": "^3.3.1",
"prettier": "^0.21.0"
},
"lint-staged": {
"*.js": [
"prettier --trailing-comma es5 --single-quote --write",
"git add"
]
}
}
105 changes: 64 additions & 41 deletions packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,34 @@
*/
'use strict';

var path = require('path');

const plugins = [
// class { handleClick = () => { } }
require.resolve('babel-plugin-transform-class-properties'),
// The following two plugins use Object.assign directly, instead of Babel's
// extends helper. Note that this assumes `Object.assign` is available.
// { ...todo, completed: true }
[require.resolve('babel-plugin-transform-object-rest-spread'), {
useBuiltIns: true
}],
[
require.resolve('babel-plugin-transform-object-rest-spread'),
{
useBuiltIns: true,
},
],
// Transforms JSX
[require.resolve('babel-plugin-transform-react-jsx'), {
useBuiltIns: true
}],
[
require.resolve('babel-plugin-transform-react-jsx'),
{
useBuiltIns: true,
},
],
// Polyfills the runtime needed for async/await and generators
[require.resolve('babel-plugin-transform-runtime'), {
helpers: false,
polyfill: false,
regenerator: true,
// Resolve the Babel runtime relative to the config.
moduleName: path.dirname(require.resolve('babel-runtime/package'))
}]
[
require.resolve('babel-plugin-transform-runtime'),
{
helpers: false,
polyfill: false,
regenerator: true,
},
],
];

// This is similar to how `env` works in Babel:
Expand All @@ -42,9 +47,11 @@ const plugins = [
var env = process.env.BABEL_ENV || process.env.NODE_ENV;
if (env !== 'development' && env !== 'test' && env !== 'production') {
throw new Error(
'Using `babel-preset-react-app` requires that you specify `NODE_ENV` or '+
'`BABEL_ENV` environment variables. Valid values are "development", ' +
'"test", and "production". Instead, received: ' + JSON.stringify(env) + '.'
'Using `babel-preset-react-app` requires that you specify `NODE_ENV` or ' +
'`BABEL_ENV` environment variables. Valid values are "development", ' +
'"test", and "production". Instead, received: ' +
JSON.stringify(env) +
'.'
);
}

Expand All @@ -59,49 +66,65 @@ if (env === 'development' || env === 'test') {
// Adds component stack to warning messages
require.resolve('babel-plugin-transform-react-jsx-source'),
// Adds __self attribute to JSX which React will use for some warnings
require.resolve('babel-plugin-transform-react-jsx-self')
require.resolve('babel-plugin-transform-react-jsx-self'),
]);
}

if (env === 'test') {
module.exports = {
presets: [
// ES features necessary for user's Node version
[require('babel-preset-env').default, {
targets: {
node: 'current',
[
require('babel-preset-env').default,
{
targets: {
node: 'current',
},
},
}],
],
// JSX, Flow
require.resolve('babel-preset-react')
require.resolve('babel-preset-react'),
],
plugins: plugins
plugins: plugins.concat([
// Compiles import() to a deferred require()
require.resolve('babel-plugin-dynamic-import-node'),
]),
};
} else {
module.exports = {
presets: [
// Latest stable ECMAScript features
[require.resolve('babel-preset-env'), {
targets: {
// React parses on ie 9, so we should too
ie: 9,
// We currently minify with uglify
// Remove after https://github.com/mishoo/UglifyJS2/issues/448
uglify: true
[
require.resolve('babel-preset-env'),
{
targets: {
// React parses on ie 9, so we should too
ie: 9,
// We currently minify with uglify
// Remove after https://github.com/mishoo/UglifyJS2/issues/448
uglify: true,
},
// Disable polyfill transforms
useBuiltIns: false,
// Do not transform modules to CJS
modules: false,
},
// Disable polyfill transforms
useBuiltIns: false
}],
],
// JSX, Flow
require.resolve('babel-preset-react')
require.resolve('babel-preset-react'),
],
plugins: plugins.concat([
// function* () { yield 42; yield 43; }
[require.resolve('babel-plugin-transform-regenerator'), {
// Async functions are converted to generators by babel-preset-latest
async: false
}],
])
[
require.resolve('babel-plugin-transform-regenerator'),
{
// Async functions are converted to generators by babel-preset-env
async: false,
},
],
// Adds syntax support for import()
require.resolve('babel-plugin-syntax-dynamic-import'),
]),
};

if (env === 'production') {
Expand Down
24 changes: 14 additions & 10 deletions packages/babel-preset-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-react-app",
"version": "2.1.1",
"version": "3.0.0",
"description": "Babel preset used by Create React App",
"repository": "facebookincubator/create-react-app",
"license": "BSD-3-Clause",
Expand All @@ -11,16 +11,20 @@
"index.js"
],
"dependencies": {
"babel-plugin-transform-class-properties": "6.22.0",
"babel-plugin-transform-object-rest-spread": "6.22.0",
"babel-plugin-transform-react-constant-elements": "6.22.0",
"babel-plugin-transform-react-jsx": "6.22.0",
"babel-plugin-dynamic-import-node": "1.0.2",
"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-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.22.0",
"babel-plugin-transform-runtime": "6.22.0",
"babel-preset-env": "1.2.1",
"babel-preset-react": "6.22.0",
"babel-runtime": "6.22.0"
"babel-plugin-transform-regenerator": "6.24.1",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.4.0",
"babel-preset-react": "6.24.1"
},
"peerDependencies": {
"babel-runtime": "^6.23.0"
}
}
Loading