Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Commit 93bc8fc

Browse files
author
Dominik Rowicki
authored
Merge pull request #23 from netguru/facebookincubator-master
Merge changes from upstream
2 parents 1da9ccf + 4462749 commit 93bc8fc

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/react-dev-utils/ignoredFiles.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
'use strict';
99

1010
const path = require('path');
11+
const escape = require('escape-string-regexp');
1112

1213
module.exports = function ignoredFiles(appSrc) {
1314
return new RegExp(
14-
`^(?!${path
15-
.normalize(appSrc + '/')
16-
.replace(/[\\]+/g, '/')}).+/node_modules/`,
15+
`^(?!${escape(
16+
path.normalize(appSrc + '/').replace(/[\\]+/g, '/')
17+
)}).+/node_modules/`,
1718
'g'
1819
);
1920
};

packages/react-scripts/template/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -890,10 +890,10 @@ life of the shell session.
890890
#### Windows (cmd.exe)
891891

892892
```cmd
893-
set REACT_APP_SECRET_CODE=abcdef&&npm start
893+
set "REACT_APP_SECRET_CODE=abcdef" && npm start
894894
```
895895

896-
(Note: the lack of whitespace is intentional.)
896+
(Note: Quotes around the variable assignment are required to avoid a trailing whitespace.)
897897

898898
#### Linux, macOS (Bash)
899899

@@ -1258,7 +1258,7 @@ it('renders without crashing', () => {
12581258
});
12591259
```
12601260

1261-
This test mounts a component and makes sure that it didn’t throw during rendering. Tests like this provide a lot value with very little effort so they are great as a starting point, and this is the test you will find in `src/App.test.js`.
1261+
This test mounts a component and makes sure that it didn’t throw during rendering. Tests like this provide a lot of value with very little effort so they are great as a starting point, and this is the test you will find in `src/App.test.js`.
12621262

12631263
When you encounter bugs caused by changing components, you will gain a deeper insight into which parts of them are worth testing in your application. This might be a good time to introduce more specific tests asserting specific expected output or behavior.
12641264

@@ -2131,7 +2131,7 @@ In this case, ensure that the file is there with the proper lettercase and that
21312131
**To do a manual deploy to Netlify’s CDN:**
21322132

21332133
```sh
2134-
npm install netlify-cli
2134+
npm install netlify-cli -g
21352135
netlify deploy
21362136
```
21372137

0 commit comments

Comments
 (0)