Skip to content

Commit

Permalink
Merge pull request #14 from facebook/master
Browse files Browse the repository at this point in the history
sync upstream
  • Loading branch information
adammockor committed Apr 1, 2018
2 parents 1566d8b + cb1608b commit 7da6a78
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 7 deletions.
40 changes: 40 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,43 @@
## 1.1.1 (February 2, 2018)

#### :bug: Bug Fix
* `react-scripts`
* [#4000](https://github.com/facebook/create-react-app/pull/4000) Fix escaping `$` in environment variables. ([@iansu](https://github.com/iansu))

#### :nail_care: Enhancement
* `react-scripts`
* [#4006](https://github.com/facebook/create-react-app/pull/4006) Add Node 9 compatibility for `fsevents`. ([@gaearon](https://github.com/gaearon))

#### :memo: Documentation
* `react-scripts`
* [#3971](https://github.com/facebook/create-react-app/pull/3971) Update instructions for continuous delivery with Netlify. ([@hubgit](https://github.com/hubgit))
* [#3894](https://github.com/facebook/create-react-app/pull/3894) Include `{json,css}` files in prettier command. ([@reyronald](https://github.com/reyronald))

#### :house: Internal
* `create-react-app`
* [#3853](https://github.com/facebook/create-react-app/pull/3853) pin envinfo version to 3.4.2. ([@bondz](https://github.com/bondz))

#### Committers: 6
- Alf Eaton ([hubgit](https://github.com/hubgit))
- Bond ([bondz](https://github.com/bondz))
- Dan Abramov ([gaearon](https://github.com/gaearon))
- Ian Sutherland ([iansu](https://github.com/iansu))
- Ronald Rey ([reyronald](https://github.com/reyronald))

### Migrating from 1.1.0 to 1.1.1

Inside any created project that has not been ejected, run:

```
npm install --save --save-exact react-scripts@1.1.1
```

or

```
yarn add --exact react-scripts@1.1.1
```

## 1.1.0 (January 15, 2018)

#### :rocket: New Feature
Expand Down
2 changes: 1 addition & 1 deletion packages/create-react-app/package.json
@@ -1,6 +1,6 @@
{
"name": "create-react-app",
"version": "1.5.1",
"version": "1.5.2",
"keywords": [
"react"
],
Expand Down
1 change: 0 additions & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Expand Up @@ -319,7 +319,6 @@ module.exports = {
// having to parse `index.html`.
new ManifestPlugin({
fileName: 'asset-manifest.json',
publicPath: publicPath
}),
// Generate a service worker script that will precache, and keep up to date,
// the HTML & assets that are part of the Webpack build.
Expand Down
6 changes: 3 additions & 3 deletions packages/react-scripts/package.json
@@ -1,6 +1,6 @@
{
"name": "react-scripts",
"version": "1.1.0",
"version": "1.1.1",
"description": "Configuration and scripts for Create React App.",
"repository": "facebookincubator/create-react-app",
"license": "MIT",
Expand Down Expand Up @@ -32,7 +32,7 @@
"chalk": "1.1.3",
"css-loader": "0.28.7",
"dotenv": "4.0.0",
"dotenv-expand": "4.0.1",
"dotenv-expand": "4.2.0",
"eslint": "4.10.0",
"eslint-config-react-app": "^2.1.0",
"eslint-loader": "1.9.0",
Expand Down Expand Up @@ -64,6 +64,6 @@
"react-dom": "^16.0.0"
},
"optionalDependencies": {
"fsevents": "1.1.2"
"fsevents": "^1.1.3"
}
}
2 changes: 1 addition & 1 deletion packages/react-scripts/scripts/utils/createJestConfig.js
Expand Up @@ -45,12 +45,12 @@ module.exports = (resolve, rootDir, isEjecting) => {
},
moduleFileExtensions: [
'web.js',
'mjs',
'js',
'json',
'web.jsx',
'jsx',
'node',
'mjs',
],
};
if (rootDir) {
Expand Down
13 changes: 12 additions & 1 deletion packages/react-scripts/template/README.md
Expand Up @@ -2209,6 +2209,16 @@ GitHub Pages doesn’t support routers that use the HTML5 `pushState` history AP
* You could switch from using HTML5 history API to routing with hashes. If you use React Router, you can switch to `hashHistory` for this effect, but the URL will be longer and more verbose (for example, `http://user.github.io/todomvc/#/todos/42?_k=yknaj`). [Read more](https://reacttraining.com/react-router/web/api/Router) about different history implementations in React Router.
* Alternatively, you can use a trick to teach GitHub Pages to handle 404 by redirecting to your `index.html` page with a special redirect parameter. You would need to add a `404.html` file with the redirection code to the `build` folder before deploying your project, and you’ll need to add code handling the redirect parameter to `index.html`. You can find a detailed explanation of this technique [in this guide](https://github.com/rafrex/spa-github-pages).

#### Troubleshooting

##### "/dev/tty: No such a device or address"

If, when deploying, you get `/dev/tty: No such a device or address` or a similar error, try the follwing:

1. Create a new [Personal Access Token](https://github.com/settings/tokens)
2. `git remote set-url origin https://<user>:<token>@github.com/<user>/<repo>` .
3. Try `npm run deploy again`

### [Heroku](https://www.heroku.com/)

Use the [Heroku Buildpack for Create React App](https://github.com/mars/create-react-app-buildpack).<br>
Expand Down Expand Up @@ -2264,7 +2274,8 @@ With this setup Netlify will build and deploy when you push to git or open a pul

1. [Start a new netlify project](https://app.netlify.com/signup)
2. Pick your Git hosting service and select your repository
3. Click `Build your site`
3. Set `yarn build` as the build command and `build` as the publish directory
4. Click `Deploy site`

**Support for client-side routing:**

Expand Down

0 comments on commit 7da6a78

Please sign in to comment.