Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Merge facebook v0.9.5 #53

Merged
merged 202 commits into from
Mar 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
ccdaa60
Fix typos
gaearon Dec 11, 2016
2b2b8ff
Replace the Flow documentation section (#1245)
gaearon Dec 11, 2016
759806e
Configure which browser to open in npm start (#873) (#1148)
GAumala Dec 11, 2016
519d32a
Only open Chrome tab if BROWSER is missing or is Chrome (#1247)
gaearon Dec 11, 2016
3df6b49
Style nit
gaearon Dec 12, 2016
3a67987
Add "Syntax Highlighting" link to main README
gaearon Dec 12, 2016
587b2f8
Add "Changing the Page Title" to User Guide (#1256)
gaearon Dec 12, 2016
ab3913c
Clarify when to use the public folder
gaearon Dec 12, 2016
7a8edf0
Heroku Deployment: Adds a note on how to resolve "File/Module Not Fou…
msuzoagu Dec 13, 2016
94c912d
Remove interactive shell check when opening browser on start (#1264)
CaryLandholt Dec 13, 2016
7408e36
Only gitignore dirs in root, not deep (#1267)
jayphelps Dec 14, 2016
5fa34dd
gh-1269: Enabling nested folder paths for project name (#1270)
dinukadesilva Dec 18, 2016
21b0044
Remove path-exists from dependencies and replace it with fs.existsSyn…
halfzebra Dec 18, 2016
7d66ba1
Downgrading to compatible version of SockJS-Client (#1274)
holloway Dec 21, 2016
ac6a4c8
Updated react-scripts babel-jest && jest packages to 18.0.0 (#1311)
lopezator Dec 23, 2016
e45b087
Fixes duplicate "is" typo (#1306)
jmagrippis Dec 30, 2016
a90e2b2
fix readme: remove double 'we' (#1312)
Chris-R3 Dec 30, 2016
4d7b754
Use npm script hooks to avoid && in deploy script (#1324)
zpao Dec 30, 2016
2548027
Bump babel-loader version (#1009) (#1309)
frontsideair Jan 8, 2017
1b645e2
Use yarnpkg alias to run Yarn (#1365)
fson Jan 9, 2017
11cc5ae
Merge pull request #1367 from facebookincubator/0.8.x
fson Jan 9, 2017
d29fb00
Add missing import in react-dev-utils README.md (#1369)
pedronauck Jan 11, 2017
3f6937c
Change console.log for errors and warnings (#1375)
jimmyhmiller Jan 11, 2017
17bb8d4
webpack-dev-server patch for 'still-ok' success status (#1377)
Jan 12, 2017
7cd03f9
Document Flow support (#1384)
dschep Jan 12, 2017
9099570
Use a more sophisticated template for end-to-end testing. (#1187)
EnoahNetzach Jan 23, 2017
adce379
replace two space syntax with <br> tag (#1393)
carlsagan21 Jan 23, 2017
65bde54
Add causes of dev server not detecting changes (#1422)
jetpackpony Jan 23, 2017
3bb31cc
Added links to tutorials for integrating cra with an api backend (#1437)
alexdriaguine Jan 24, 2017
dbb7ffe
Added babel-runtime dependency to deduplicate dependencies when using…
jkimbo Jan 24, 2017
da321b2
Bump Jest version (#1432)
gaearon Jan 24, 2017
dd788b6
Readme: Removes experimental from Jest snapshot (#1453)
frehner Jan 26, 2017
bc2fc80
eject: Additionally remove `react-scripts` from dependencies (#1458)
creynders Jan 27, 2017
1d586aa
E2e jsdom fix (#1470)
EnoahNetzach Jan 30, 2017
8964dd6
- import expect and expect flow (#1463)
tuchk4 Jan 30, 2017
6424232
Reflect websocket proxy support on README (#1013) (#1483)
frontsideair Feb 4, 2017
65e6340
Edit User Guide: Add ESLint config for VS Code users (#1482)
Feb 4, 2017
adab23f
e2e: Reduce complexity of e2e and improve Jest coverage (#1484)
Timer Feb 4, 2017
9e0e18f
UX: Explain why build is failing (#1352)
jayphelps Jan 5, 2017
0ac0d11
Update comments for webpack loaders
ro-savage Feb 8, 2017
c811a31
Change "OS X" references to "macOS" (#1511)
RodrigoHahn Feb 9, 2017
de6e059
corrected minor typo (#1514)
Feb 9, 2017
160d8d1
clarifying the use of custom environment variables (#1513)
calweb Feb 9, 2017
b999405
Add missing '\n' to the end of `package.json` file (#1510)
pd4d10 Feb 9, 2017
1d9159d
Make all react app vars accessible in index.html (#1440)
jihchi Feb 10, 2017
613b584
Add `PUBLIC_URL` env variable for advanced use (#937) (#1504)
Timer Feb 10, 2017
8e127aa
Support relative asset paths for special case (#1489)
tibdex Feb 10, 2017
7a02f9a
readme: Add Advanced Configuration (#1515)
Timer Feb 10, 2017
e19b0f6
Make build exit with error code when interrupted (#1496)
brandones Feb 11, 2017
ac39a46
Bump lerna
gaearon Feb 11, 2017
b9d679a
Add test cases for PUBLIC_URL and relative path (#1519)
Timer Feb 11, 2017
5211141
Add an annoying nit
gaearon Feb 11, 2017
354fce0
Upgrade babel dependencies
Timer Feb 11, 2017
7556997
Don't run CI on Node 0.10 (#1521)
gaearon Feb 11, 2017
b0b0e6d
fix: add yarn gitignores (#1507)
AndersDJohnson Feb 11, 2017
15e0b98
Upgrade dependencies (#1522)
Timer Feb 11, 2017
84be4dd
Add CHANGELOG
Timer Feb 11, 2017
67e6cf5
Publish
Timer Feb 11, 2017
dc4e8bb
Make index.html interpolation instructions less clashing with env syntax
gaearon Feb 11, 2017
9f12763
Add additional info about env variables
gaearon Feb 11, 2017
c8644e2
Massage 0.9.0 changelog
gaearon Feb 11, 2017
0e74539
Add release cutters to changelog
gaearon Feb 11, 2017
7ea799d
Tweak indentation
gaearon Feb 11, 2017
0bcb284
Markdown whitespace fixes
gaearon Feb 11, 2017
3e226b2
Some changelog formatting
gaearon Feb 11, 2017
12e8cea
Suggest jest-enzyme for simplifying test matchers (#994)
blainekasten Feb 11, 2017
645ba66
Add SASS support documentation #1007 (#1008)
tsironis Feb 12, 2017
27c99b5
Link to new Sass doc
gaearon Feb 12, 2017
1b3403b
Clarify Less/Sass support
gaearon Feb 12, 2017
6a0edc4
Fix `test -e` with wildcard arguments. (#1503)
marcusrbrown Feb 12, 2017
7f35c79
Correctly Command in README.md (#1275)
lifez Feb 12, 2017
60902dc
reactjs/redux#2004 List features beyond ES6 supported by create-react…
jonathanconway Feb 12, 2017
c861f74
Add a link to supported features
gaearon Feb 12, 2017
d53228d
[documentation] how to disable autoprefix feature (#1320)
Feb 12, 2017
ed47cc3
Added link to Azure deployment tutorial (#1338)
tpetrina Feb 12, 2017
572d07b
Add useful link to react-scripts (#1495)
pd4d10 Feb 12, 2017
963383a
Update language support wording to ES2017
Timer Feb 12, 2017
1aefc2c
Tweak syntax doc (#1539)
gaearon Feb 12, 2017
b279e3f
Make node version check more robust in e2e.sh (#1295)
pugnascotia Feb 13, 2017
677896a
update CSS preprocessor instructions (#1543)
Feb 13, 2017
01f66db
Revert "Don't run CI on Node 0.10" (#1547)
Timer Feb 13, 2017
cb95889
Use Yarn latest in e2e (#1534)
gaearon Feb 15, 2017
8c375ac
modified documentation for setting up jest-enzyme (#1562)
kiranps Feb 15, 2017
41f9d20
Use https in link to Ignoring files at Github (#1561)
Feb 15, 2017
6ae2d06
add --recursive to sass watch script (#1564)
Feb 15, 2017
8780078
Mention Windows support explicitly
gaearon Feb 15, 2017
d6781af
Reorder
gaearon Feb 16, 2017
c7d6a5d
Update README.md (#1573)
mkermani144 Feb 16, 2017
af345f0
MacOS => macOS
gaearon Feb 16, 2017
20b85ba
Switch from Neo to Neutrino (#1576)
eliperelman Feb 17, 2017
71be55b
fixes #1584 PORT env variable not always an integer (#1585)
matoilic Feb 18, 2017
0a41334
babel-preset: remove babel-plugin-transform-es2015-parameters (#1598)
christophehurpeau Feb 21, 2017
bf0c02e
Add note for using CHOKIDAR_USEPOLLING in virtual machines to enable …
AJamesPhillips Feb 22, 2017
321f8b4
Allow --scripts-version to be a git url (#1570)
tomconroy Feb 23, 2017
7c4c167
Install react, react-dom, and react-scripts at the same time (#1253)
n3tr Feb 23, 2017
d4f3985
add a comment about NODE_ENV value set to 'production' during build s…
mderazon Feb 24, 2017
fb94589
Update flow configuration documentation (#1518)
SBrown52 Feb 24, 2017
5ee655b
Add note about when to import bootstrap CSS. (#1618)
joewoodhouse Feb 24, 2017
16a5e55
Document Sass imports
gaearon Feb 24, 2017
ce90532
Fix workflow if react-scripts package is linked via npm-link (#1356)
tuchk4 Feb 24, 2017
9e51852
Document debugging in the browser. (#1540)
bondz Feb 24, 2017
def004a
Link to "Debugging in the Editor"
gaearon Feb 24, 2017
0dcf973
Adding link to “Customizing” create-react-app (#1121)
Feb 24, 2017
8cf9155
Update index.js (#1603)
driquelme Feb 24, 2017
2177030
Remove .bin files defined at react-scripts/package.json after eject …
tuchk4 Feb 24, 2017
627e67d
Bump `recursive-readdir`. (#1560)
wtgtybhertgeghgtwtg Feb 24, 2017
93f7aef
Added a how-to on react-snapshot (#1577)
superhighfives Feb 24, 2017
3b5434c
NPM version check for tip (#1193)
rangle-mobinni Feb 24, 2017
bf11b14
Enable eslint caching in development (#1578)
viankakrisna Feb 24, 2017
fd248ec
Use real build path name in build output (#1478)
chyipin Feb 24, 2017
78882d5
adding a note on how to resolve "Could not find a required file." dep…
Feb 24, 2017
913679b
Use posix paths for Jest config during eject (#1635)
Timer Feb 24, 2017
1fe3e14
Setting a dynamic port value for the pushstate-server URL text (#1628)
mattccrampton Feb 24, 2017
11851ee
Fix up broken line
gaearon Feb 24, 2017
36d86b9
Gracefully handle initial installation error (#1512)
chitchu Feb 25, 2017
f160a81
Add changelog for 0.9.1
Timer Feb 26, 2017
9e2624f
Publish
Timer Feb 26, 2017
0ad2c72
Update changelog
Timer Feb 26, 2017
eb34d80
Fix npm test on Windows (#1647)
gaearon Feb 26, 2017
28d6f32
Add 0.9.2 changelog
gaearon Feb 26, 2017
0c2603f
0.9.2
gaearon Feb 26, 2017
6370c00
Add a note about known issue
gaearon Feb 26, 2017
8fa04c2
Merge changelogs
gaearon Feb 26, 2017
f0b1408
Format differently
gaearon Feb 26, 2017
5a91a01
Set Chrome userDataDir to be under .vscode folder (#1657)
ryansully Feb 27, 2017
a06c95b
Fix e2e when used with cold cache (#1667)
Timer Feb 27, 2017
a1bc3a3
Fix e2e-simple (cont.)
Timer Feb 27, 2017
c5d8cfd
Add appveyor.yml (#1648)
Timer Feb 27, 2017
649c346
fix react dependency versions during initial install (#1669)
johann-sonntagbauer Feb 28, 2017
39d0952
Remove Windows 0.10 simple test
Timer Feb 28, 2017
a2c5be9
add project name validation (#1662)
johann-sonntagbauer Feb 28, 2017
0b46850
fix project cleanup on windows (#1675)
johann-sonntagbauer Feb 28, 2017
5bce8c5
Revert "Enable eslint caching in development" (#1665)
gaearon Feb 28, 2017
8591902
add X-FORWARDED headers for proxy requests (#1677)
johann-sonntagbauer Feb 28, 2017
a319002
Use offline cached version with yarn when it's possible (#1423)
voxsim Feb 28, 2017
4446759
Add 0.9.3 changelog (#1683)
gaearon Feb 28, 2017
0d752f5
Add "migrating" section for 0.9.3
gaearon Feb 28, 2017
aaf1e81
Publish
gaearon Feb 28, 2017
9e8910f
False expression should not be in dependencies
Timer Feb 28, 2017
36f3c55
Publish
Timer Feb 28, 2017
e1dac99
appveyor: Build all branches
Timer Mar 1, 2017
7a6a3c8
Suggest CRA 1.2.1 in changelog
gaearon Mar 1, 2017
290e619
Fixed missing flag in first preprocess command (#1687)
mklemme Mar 1, 2017
58137b7
Re-enable e2e-install directory test
Timer Mar 1, 2017
008d9a1
Suggest to use .env for enabling polling mode (#1698)
gaearon Mar 2, 2017
2580b52
Diagnostic code (#1695)
tgig Mar 2, 2017
5fbb13a
Fix Jest tests for Cygwin
Timer Mar 3, 2017
734fc98
Improve reliability of port hint. (#1696)
chrisdrackett Mar 3, 2017
b9b6135
pin and bump lerna (#1688)
viankakrisna Mar 4, 2017
5ba8709
Lerna 2.0.0-beta.38 expects packages entry
Timer Mar 4, 2017
297ce6a
Add docs for apache's client side routing setting (#1717)
viankakrisna Mar 5, 2017
7d82964
Update now.sh deployment instructions. (#1710)
replaid Mar 5, 2017
474af9e
Add support for ignoreRestSiblings in no-unused-vars (#1705)
chrisdrackett Mar 5, 2017
99aa02d
add double quotes to escape spaces in paths in e2e (#1707)
viankakrisna Mar 5, 2017
66d59bb
Create appveyor.cleanup-cache.txt
gaearon Mar 5, 2017
c017e2c
Link Appveyor caches to appveyor.cleanup-cache.txt
gaearon Mar 5, 2017
be53fa5
Trigger AppVeyor cache cleanup
gaearon Mar 5, 2017
7daff97
Fix hot reloading for WebpackDevServer after eject (#1721)
gaearon Mar 5, 2017
860f1c7
Fix openBrowser() when BROWSER=open on macOS (#1690)
bpierre Mar 5, 2017
ebf5bd5
Create empty package.json in e2e test (#1401) (#1402)
matoilic Mar 5, 2017
6f18606
Skip AppVeyor CI builds for Markdown changes (#1723)
gaearon Mar 5, 2017
830fe20
Don't use ES6 in a file that should run on Node 4 (#1724)
gaearon Mar 5, 2017
b0b9696
Bump jsx-a11y version (#1542)
bondz Mar 5, 2017
6a9e4dc
Bump ESLint config to 0.6.0 manually
gaearon Mar 5, 2017
b34a679
Fix Node 4 e2e tests (#1730)
Timer Mar 5, 2017
b210d7a
Lint internal scripts with eslint:recommended (#1729)
gaearon Mar 5, 2017
1a331e1
Fix ejecting from a scoped fork (#1727)
gaearon Mar 5, 2017
96fe3fc
Properly extract package name for installing tgz of scoped packages (…
Timer Mar 5, 2017
556f394
extract generic build functions to react-dev-utils (#1726)
viankakrisna Mar 6, 2017
57d8596
Bust AppVeoyr cache
gaearon Mar 6, 2017
623c28b
Relax ESLint config peerDependency (#1740)
gaearon Mar 6, 2017
0d0df6a
Fix internal linting setup and add missing headers (#1741)
gaearon Mar 6, 2017
fc5d405
Fix lint
gaearon Mar 6, 2017
8cc5dcc
Fix eject for linked react-scripts (#1736)
tuchk4 Mar 6, 2017
63488c6
Add changelog for 0.9.4
Timer Mar 6, 2017
422847b
Publish
Timer Mar 6, 2017
aa434d5
Adjust changelog wording
Timer Mar 6, 2017
0811775
Switch to preset-env (#1742)
Timer Mar 7, 2017
d24f98a
Display yarn instead of yarnpkg when creating a new app (#1747)
lpalmes Mar 7, 2017
06086f9
Add yarn steps for adding flow (#1756)
zertosh Mar 7, 2017
f4a4e8f
Suggest `serve` for running in production (#1760)
leo Mar 8, 2017
6ca7a7b
Remove 'guard-for-in' lint rule (#1773)
sophiebits Mar 9, 2017
67d0403
Run CI on Node 7; Bump detect-port: 1.0.1 -> 1.1.0 (#1776) (#1783)
ryanwalters Mar 9, 2017
2d4bcc1
Merge tag 'v0.9.5' into merge-facebook-v0.9.5
sverhoeven Mar 28, 2017
f1d9da9
Incorperate some improvements from https://github.com/wmonk/create-re…
sverhoeven Mar 28, 2017
c147333
Fix Travis errors
sverhoeven Mar 28, 2017
ab53aef
Install of @types during init now yarn compatible
sverhoeven Mar 29, 2017
72e40af
Upgrade to TSLint 4
sverhoeven Mar 29, 2017
8ce3fd6
Lots of small things
sverhoeven Mar 29, 2017
fd56110
Correct tslint-config version
sverhoeven Mar 29, 2017
b11e28c
Lower tslint-config version aswell
sverhoeven Mar 29, 2017
ac59c97
e2e triggers awesome typescript loader cache generation, ignore cache…
sverhoeven Mar 30, 2017
aedb632
Make tsConfig path dependend on situation
sverhoeven Mar 30, 2017
18e2c46
Bump tslint-config-react-app to v2.0.0
sverhoeven Mar 30, 2017
9cacde9
Use @nlesc/tslint-config-react-app@2.0.0 in react-scripts
sverhoeven Mar 30, 2017
9e759d7
fixed ejecting
jspaaks Mar 30, 2017
58e5150
fixed typo
jspaaks Mar 30, 2017
fd3f603
pinned some pakcage versions; added glob-all and jest-utils because t…
jspaaks Mar 30, 2017
d7c9a59
kitchensink test needs an index.tsx (and also an App.d.ts); refs #54
jspaaks Mar 30, 2017
2f8fe85
kitchensink test needs tsconfig and tslint; refs #54
jspaaks Mar 30, 2017
d4f2468
edited travis to disable kitchensink testing for now
jspaaks Mar 30, 2017
e54d1de
removed old (4) version of node_js
jspaaks Mar 30, 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
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
build
my-app*
packages/react-scripts/template
packages/react-scripts/fixtures
15 changes: 14 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
{
"extends": "react-app"
"extends": "eslint:recommended",
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"no-console": "off",
"strict": ["error", "global"]
}
}
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
.idea/
.vscode/
node_modules/
build
.DS_Store
*.tgz
my-app*
template/src/__tests__/__snapshots__/
lerna-debug.log
npm-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.changelog
.awcache

24 changes: 19 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
---
language: node_js
node_js:
- 0.10
- 4
- 6
- 7
cache:
directories:
- node_modules
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
script: tasks/e2e.sh
install: true
script:
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
- 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
- 'if [ $TEST_SUITE = "kitchensink" ]; then tasks/e2e-kitchensink.sh; fi'
env:
- USE_YARN=no
- USE_YARN=yes
global:
- USE_YARN=no
matrix:
- TEST_SUITE=simple
- TEST_SUITE=installs
# temporarily disabled kitchensink test; until https://github.com/NLeSC/create-react-app/issues/54 is resolved
# - TEST_SUITE=kitchensink
matrix:
include:
- node_js: 0.10
env: TEST_SUITE=simple
- node_js: 6
env: USE_YARN=yes TEST_SUITE=simple
518 changes: 490 additions & 28 deletions CHANGELOG.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Following these guidelines helps to communicate that you respect the time of the

As much as possible, we try to avoid adding configuration and flags. The purpose of this tool is to provide the best experience for people getting started with React, and this will always be our first priority. This means that sometimes we [sacrifice additional functionality](https://gettingreal.37signals.com/ch05_Half_Not_Half_Assed.php) (such as server rendering) because it is too hard to solve it in a way that wouldn’t require any configuration.

We prefer **convention, heuristics, or interactivity** over configuration.
We prefer **convention, heuristics, or interactivity** over configuration.<br>
Here’s a few examples of them in action.

### Convention
Expand Down Expand Up @@ -68,6 +68,7 @@ and then run `npm start` or `npm run build`.
* You'll need an [access token for the GitHub API](https://help.github.com/articles/creating-an-access-token-for-command-line-use/). Save it to this environment variable: `export GITHUB_AUTH="..."`
* Run `npm run changelog`. The command will find all the labeled pull requests merged since the last release and group them by the label and affected packages, and create a change log entry with all the changes and links to PRs and their authors. Copy and paste it to `CHANGELOG.md`.
* 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`.**
Expand Down
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Create React apps with no build configuration.
* [Getting Started](#getting-started) – How to create a new app.
* [User Guide](https://github.com/NLeSC/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.

Create React App works on macOS, Windows, and Linux.<br>
If something doesn’t work please [file an issue](https://github.com/facebookincubator/create-react-app/issues/new).

## tl;dr

```sh
Expand All @@ -15,7 +18,6 @@ npm install -g create-react-app
create-react-app my-app --scripts-version @nlesc/react-scripts
cd my-app/
npm start

```

Then open [http://localhost:3000/](http://localhost:3000/) to see your app.<br>
Expand Down Expand Up @@ -73,7 +75,7 @@ my-app/
No configuration or complicated folder structures, just the files you need to build your app.<br>
Once the installation is done, you can run some commands inside the project folder:

### `npm start`
### `npm start` or `yarn start`

Runs the app in development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
Expand All @@ -83,14 +85,14 @@ You will see the build errors and lint warnings in the console.

<img src='https://camo.githubusercontent.com/41678b3254cf583d3186c365528553c7ada53c6e/687474703a2f2f692e696d6775722e636f6d2f466e4c566677362e706e67' width='600' alt='Build errors'>

### `npm test`
### `npm test` or `yarn test`

Runs the test watcher in an interactive mode.
Runs the test watcher in an interactive mode.<br>
By default, runs tests related to files changes since the last commit.

[Read more about testing.](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#running-tests)

### `npm run build`
### `npm run build` or `yarn build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.
Expand All @@ -105,26 +107,33 @@ The [User Guide](https://github.com/facebookincubator/create-react-app/blob/mast
- [Updating to New Releases](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#updating-to-new-releases)
- [Folder Structure](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#folder-structure)
- [Available Scripts](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#available-scripts)
- [Supported Language Features and Polyfills](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#supported-language-features-and-polyfills)
- [Syntax Highlighting in the Editor](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#syntax-highlighting-in-the-editor)
- [Displaying Lint Output in the Editor](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#displaying-lint-output-in-the-editor)
- [Debugging in the Editor](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#debugging-in-the-editor)
- [Changing the Page `<title>`](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#changing-the-page-title)
- [Installing a Dependency](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#installing-a-dependency)
- [Importing a Component](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#importing-a-component)
- [Adding a Stylesheet](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-stylesheet)
- [Post-Processing CSS](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#post-processing-css)
- [Adding a CSS Preprocessor (Sass, Less etc.)](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-preprocessor-sass-less-etc)
- [Adding Images and Fonts](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-images-and-fonts)
- [Using the `public` Folder](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#using-the-public-folder)
- [Using Global Variables](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#using-global-variables)
- [Adding Bootstrap](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-bootstrap)
- [Adding Flow](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-flow)
- [Adding Custom Environment Variables](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-custom-environment-variables)
- [Can I Use Decorators?](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#can-i-use-decorators)
- [Integrating with a Node Backend](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#integrating-with-a-node-backend)
- [Integrating with an API Backend](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#integrating-with-an-api-backend)
- [Proxying API Requests in Development](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#proxying-api-requests-in-development)
- [Using HTTPS in Development](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#using-https-in-development)
- [Generating Dynamic `<meta>` Tags on the Server](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#generating-dynamic-meta-tags-on-the-server)
- [Pre-Rendering into Static HTML Files](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#pre-rendering-into-static-html-files)
- [Running Tests](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#running-tests)
- [Developing Components in Isolation](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#developing-components-in-isolation)
- [Making a Progressive Web App](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app)
- [Deployment](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#deployment)
- [Advanced Configuration](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#advanced-configuration)
- [Troubleshooting](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#troubleshooting)

A copy of the user guide will be created as `README.md` in your project folder.
Expand All @@ -145,7 +154,7 @@ Please refer to the [User Guide](https://github.com/facebookincubator/create-rea

**If you’re getting started** with React, use `create-react-app` to automate the build of your app. There is no configuration file, and `react-scripts` is the only extra build dependency in your `package.json`. Your environment will have everything you need to build a modern React app:

* React, JSX, and ES6 support.
* React, JSX, ES6, TypeScript and Flow syntax support.
* Language extras beyond ES6 like the object spread operator.
* A dev server that lints for common errors.
* Import CSS and image files directly from JavaScript.
Expand Down Expand Up @@ -173,7 +182,7 @@ Some features are currently **not supported**:
* Server rendering.
* Some experimental syntax extensions (e.g. decorators).
* CSS Modules.
* LESS or Sass.
* Importing LESS or Sass directly ([but you still can use them](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-preprocessor-sass-less-etc)).
* Hot reloading of components.

Some of them might get added in the future if they are stable, are useful to majority of React apps, don’t conflict with existing tools, and don’t introduce additional configuration.
Expand All @@ -188,6 +197,8 @@ Currently it is a thin layer on top of many amazing community projects, such as:
* [Autoprefixer](https://github.com/postcss/autoprefixer)
* [ESLint](http://eslint.org/)
* [Jest](http://facebook.github.io/jest)
* [TypeScript](https://www.typescriptlang.org/)
* [TSLint](https://palantir.github.io/tslint/)
* and others.

All of them are transitive dependencies of the provided npm package.
Expand All @@ -206,11 +217,11 @@ We are grateful to the authors of existing related projects for their ideas and

## Alternatives

If you don’t agree with the choices made in this project, you might want to explore alternatives with different tradeoffs.
If you don’t agree with the choices made in this project, you might want to explore alternatives with different tradeoffs.<br>
Some of the more popular and actively maintained ones are:

* [insin/nwb](https://github.com/insin/nwb)
* [mozilla/neo](https://github.com/mozilla/neo)
* [mozilla-neutrino/neutrino-dev](https://github.com/mozilla-neutrino/neutrino-dev)
* [NYTimes/kyt](https://github.com/NYTimes/kyt)
* [zeit/next.js](https://github.com/zeit/next.js)
* [gatsbyjs/gatsby](https://github.com/gatsbyjs/gatsby)
Expand Down
5 changes: 5 additions & 0 deletions appveyor.cleanup-cache.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Edit this file to trigger a cache rebuild.
http://help.appveyor.com/discussions/questions/1310-delete-cache

----
Just testing if this works.
46 changes: 46 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
environment:
matrix:
- nodejs_version: 7
test_suite: "simple"
- nodejs_version: 7
test_suite: "installs"
- nodejs_version: 7
test_suite: "kitchensink"
- nodejs_version: 6
test_suite: "simple"
- nodejs_version: 6
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
- packages\react-scripts\node_modules -> appveyor.cleanup-cache.txt

clone_depth: 50

matrix:
fast_finish: true

platform:
- x64

install:
- ps: Install-Product node $env:nodejs_version $env:platform

build: off

skip_commits:
files:
- '**/*.md'

test_script:
- node --version
- npm --version
- sh tasks/e2e-%test_suite%.sh
7 changes: 5 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lerna": "2.0.0-beta.30",
"lerna": "2.0.0-beta.38",
"version": "independent",
"changelog": {
"repo": "NLeSC/create-react-app",
Expand All @@ -12,5 +12,8 @@
"tag: internal": ":house: Internal"
},
"cacheDir": ".changelog"
}
},
"packages": [
"packages/*"
]
}
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@
"build": "node packages/react-scripts/scripts/build.js",
"changelog": "lerna-changelog",
"create-react-app": "tasks/cra.sh",
"e2e": "tasks/e2e.sh",
"e2e": "tasks/e2e-simple.sh",
"postinstall": "lerna bootstrap",
"publish": "tasks/release.sh",
"start": "node packages/react-scripts/scripts/start.js",
"test": "node packages/react-scripts/scripts/test.js --env=jsdom"
},
"devDependencies": {
"babel-eslint": "6.1.2",
"eslint": "3.5.0",
"eslint-config-react-app": "0.2.1",
"eslint-plugin-flowtype": "2.18.1",
"eslint-plugin-import": "1.12.0",
"eslint-plugin-jsx-a11y": "2.2.2",
"eslint-plugin-react": "6.3.0",
"lerna": "2.0.0-beta.30",
"babel-core": "6.22.1",
"eslint": "3.16.1",
"lerna": "2.0.0-beta.38",
"lerna-changelog": "^0.2.3"
}
}
2 changes: 1 addition & 1 deletion packages/babel-preset-react-app/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# babel-preset-react-app

This package includes the Babel preset used by [Create React App](https://github.com/facebookincubator/create-react-app).
This package includes the Babel preset used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
Expand Down
19 changes: 11 additions & 8 deletions packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ if (env === 'development' || env === 'test') {
}

if (env === 'test') {
plugins.push.apply(plugins, [
// We always include this plugin regardless of environment
// because of a Babel bug that breaks object rest/spread without it:
// https://github.com/babel/babel/issues/4851
require.resolve('babel-plugin-transform-es2015-parameters')
]);

module.exports = {
presets: [
// ES features necessary for user's Node version
Expand All @@ -88,7 +81,17 @@ if (env === 'test') {
module.exports = {
presets: [
// Latest stable ECMAScript features
require.resolve('babel-preset-latest'),
[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
}],
// JSX, Flow
require.resolve('babel-preset-react')
],
Expand Down
26 changes: 12 additions & 14 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.0.1",
"version": "2.1.1",
"description": "Babel preset used by Create React App",
"repository": "facebookincubator/create-react-app",
"license": "BSD-3-Clause",
Expand All @@ -11,18 +11,16 @@
"index.js"
],
"dependencies": {
"babel-plugin-transform-class-properties": "6.16.0",
"babel-plugin-transform-es2015-parameters": "6.18.0",
"babel-plugin-transform-object-rest-spread": "6.19.0",
"babel-plugin-transform-react-constant-elements": "6.9.1",
"babel-plugin-transform-react-jsx": "6.8.0",
"babel-plugin-transform-react-jsx-self": "6.11.0",
"babel-plugin-transform-react-jsx-source": "6.9.0",
"babel-plugin-transform-regenerator": "6.16.1",
"babel-plugin-transform-runtime": "6.15.0",
"babel-preset-env": "0.0.8",
"babel-preset-latest": "6.16.0",
"babel-preset-react": "6.16.0",
"babel-runtime": "6.11.6"
"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-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"
}
}
2 changes: 1 addition & 1 deletion packages/create-react-app/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# create-react-app

This package includes the global command for [Create React App](https://github.com/facebookincubator/create-react-app).
This package includes the global command for [Create React App](https://github.com/facebookincubator/create-react-app).<br>
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
Expand Down
Loading