Skip to content

0.9.x #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 176 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
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
5282dc3
Add 0.9.5 changelog (#1784)
gaearon Mar 9, 2017
9b23762
Publish
gaearon Mar 9, 2017
356603f
docs(babel-preset): Update comment info about babel-preset-env. (#1787)
evenchange4 Mar 10, 2017
1b47336
Feature/readme-nomoretools (#1799)
moniuch Mar 11, 2017
bc9aca8
Suggest "yarn build" rather than "yarn run build" (#1800)
geoffdavis92 Mar 12, 2017
b103ed7
Tweak the wording
gaearon Mar 13, 2017
b9e549e
Link to CRNA
gaearon Mar 14, 2017
e3db147
Allow creation of apps in empty mercurial repos (#1811)
GreenGremlin Mar 15, 2017
022822b
Make Surge guide more focused
gaearon Mar 18, 2017
32cd4fe
User Guide: Removed blockquote from code section, due to markdown con…
stochris Mar 21, 2017
1e40708
Fix AppVeyor CI (#1876)
darrenscerri Mar 22, 2017
40f558b
Fix responsive behavior in iOS 9+ (#1821)
GreenGremlin Mar 22, 2017
825b77c
Check internet connectivity with lookup instead of resolve (#1863)
kdleijer Mar 22, 2017
a5479de
Update `detect-port` (#1861)
Andreyco Mar 22, 2017
d9fc932
Fix importing linked packages (#1884)
Timer Mar 23, 2017
ebebe80
Fix AppVeyor CI (#1868)
darrenscerri Mar 24, 2017
df7c067
Suggest Yarn in HTML template (#1911)
tmos Apr 5, 2017
40d1b17
Note that only [email protected] is compatible
gaearon Apr 9, 2017
8bd395a
Add sku to the list of alternatives (#1962)
markdalgleish Apr 10, 2017
3d8c820
Update information in User Guide for Enzyme dependency (#1982)
josephrace Apr 14, 2017
10dfd89
Ensure proxy url starts with `http://` or `https://` (#1890)
bunshar Apr 15, 2017
4b92fd3
Update ansi-html to fix #1881
Timer Apr 15, 2017
51f34f1
Add linked modules test (0.9.x) (#1912)
Timer Apr 15, 2017
19e0386
Add note about installing watchman (#1950)
just-boris Apr 15, 2017
604519a
Start the dev server at the specified host
GAumala Dec 21, 2016
47659a6
Add folder structure docs for new contributors (#1991)
anilreddykatta Apr 19, 2017
a0c37ca
Relax label rules (#1989)
Timer Apr 19, 2017
144f03b
Update doc server example to work from any directory (#1988)
isramos Apr 19, 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"]
}
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
.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
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ language: node_js
node_js:
- 4
- 6
- 7
cache:
directories:
- node_modules
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
install: true
script:
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
- 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
Expand Down
560 changes: 534 additions & 26 deletions CHANGELOG.md

Large diffs are not rendered by default.

35 changes: 34 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 @@ -41,12 +41,44 @@ 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`

2. Run `npm install` in the root `create-react-app` folder.

3. *(Only for macOS Sierra)*: Until [0.10.0](https://github.com/facebookincubator/create-react-app/milestone/23) is released, you may need to install [Watchman](https://facebook.github.io/watchman/docs/install.html) (e.g. `brew install watchman`).

Once it is done, you can modify any file locally and run `npm start`, `npm test` or `npm run build` just like in a generated project.

If you want to try out the end-to-end flow with the global CLI, you can do this too:
Expand All @@ -68,6 +100,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
36 changes: 28 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,31 @@ Create React apps with no build configuration.
* [Getting Started](#getting-started) – How to create a new app.
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.

## tl;dr
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).

## Quick Overview

```sh
npm install -g create-react-app

create-react-app my-app
cd my-app/
npm start

```

Then open [http://localhost:3000/](http://localhost:3000/) to see your app.<br>
When you’re ready to deploy to production, create a minified bundle with `npm run build`.

<img src='https://camo.githubusercontent.com/506a5a0a33aebed2bf0d24d3999af7f582b31808/687474703a2f2f692e696d6775722e636f6d2f616d794e66434e2e706e67' width='600' alt='npm start'>

### Get Started Immediately

You **don’t** need to install or configure tools like Webpack or Babel.<br>
They are preconfigured and hidden so that you can focus on the code.

Just create a project, and you’re good to go.

## Getting Started

### Installation
Expand All @@ -35,7 +44,7 @@ npm install -g create-react-app

**We strongly recommend to use Node >= 6 and npm >= 3 for faster installation speed and better disk usage.** You can use [nvm](https://github.com/creationix/nvm#usage) to easily switch Node versions between different projects.

**This tool doesn’t assume a Node backend**. The Node installation is only required for the build tools that rely on it locally, such as Webpack and Babel.
**This tool doesn’t assume a Node backend**. The Node installation is only required for Create React App itself.

### Creating an App

Expand Down Expand Up @@ -70,7 +79,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 @@ -80,14 +89,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.<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 @@ -102,13 +111,16 @@ 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)
Expand All @@ -120,10 +132,12 @@ The [User Guide](https://github.com/facebookincubator/create-react-app/blob/mast
- [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 Down Expand Up @@ -172,7 +186,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 @@ -195,6 +209,11 @@ All of them are transitive dependencies of the provided npm package.

We'd love to have your helping hand on `create-react-app`! See [CONTRIBUTING.md](CONTRIBUTING.md) for more information on what we're looking for and how to get started.

## React Native

Looking for something similar, but for React Native?<br>
Check out [Create React Native App](https://github.com/react-community/create-react-native-app/).

## Acknowledgements

We are grateful to the authors of existing related projects for their ideas and collaboration:
Expand All @@ -209,7 +228,7 @@ If you don’t agree with the choices made in this project, you might want to ex
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 All @@ -225,6 +244,7 @@ Notable alternatives also include:
* [react-app](https://github.com/kriasoft/react-app)
* [dev-toolkit](https://github.com/stoikerty/dev-toolkit)
* [tarec](https://github.com/geowarin/tarec)
* [sku](https://github.com/seek-oss/sku)

You can also use module bundlers like [webpack](http://webpack.github.io) and [Browserify](http://browserify.org/) directly.<br>
React documentation includes [a walkthrough](https://facebook.github.io/react/docs/package-management.html) on this topic.
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.
50 changes: 50 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
image: Visual Studio 2017

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:
# 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

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": "facebookincubator/create-react-app",
Expand All @@ -12,5 +12,8 @@
"tag: internal": ":house: Internal"
},
"cacheDir": ".changelog"
}
},
"packages": [
"packages/*"
]
}
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,8 @@
"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",
"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
21 changes: 12 additions & 9 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,14 +81,24 @@ 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')
],
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 functions are converted to generators by babel-preset-env
async: false
}],
])
Expand Down
Loading