Skip to content

Commit 5d12915

Browse files
committed
FB changes that don't need wptheme changes.
1 parent c721753 commit 5d12915

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

packages/react-scripts/config/jest/fileTransform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ module.exports = {
1313
if (filename.match(/\.svg$/)) {
1414
// Based on how SVGR generates a component name:
1515
// https://github.com/smooth-code/svgr/blob/01b194cf967347d43d4cbe6b434404731b87cf27/packages/core/src/state.js#L6
16-
const pascalCaseFileName = camelcase(path.parse(filename).name, {
16+
const pascalCaseFilename = camelcase(path.parse(filename).name, {
1717
pascalCase: true,
1818
});
19-
const componentName = `Svg${pascalCaseFileName}`;
19+
const componentName = `Svg${pascalCaseFilename}`;
2020
return `const React = require('react');
2121
module.exports = {
2222
__esModule: true,

packages/react-scripts/config/webpackDevServer.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = function(proxy, allowedHost) {
5151
// Instead, we establish a convention that only files in `public` directory
5252
// get served. Our build script will copy `public` into the `build` folder.
5353
// In `index.html`, you can get URL of `public` folder with %PUBLIC_URL%:
54-
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
54+
// <link rel="icon" href="%PUBLIC_URL%/favicon.ico">
5555
// In JavaScript code, you can access it with `process.env.PUBLIC_URL`.
5656
// Note that we only recommend to use `public` folder as an escape hatch
5757
// for files like `favicon.ico`, `manifest.json`, and libraries that are

packages/react-scripts/scripts/utils/createJestConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
5656
moduleNameMapper: {
5757
'^react-native$': 'react-native-web',
5858
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
59+
...(modules.jestAliases || {}),
5960
},
6061
moduleFileExtensions: [...paths.moduleFileExtensions, 'node'].filter(
6162
ext => !ext.includes('mjs')

packages/react-scripts/template-typescript/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ In the project directory, you can run:
66

77
### `npm start`
88

9-
Runs the app in the development mode.<br>
9+
Runs the app in the development mode.<br />
1010
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
1111

12-
The page will reload if you make edits.<br>
12+
The page will reload if you make edits.<br />
1313
You will also see any lint errors in the console.
1414

1515
### `npm test`
1616

17-
Launches the test runner in the interactive watch mode.<br>
17+
Launches the test runner in the interactive watch mode.<br />
1818
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
1919

2020
### `npm run build`
2121

22-
Builds the app for production to the `build` folder.<br>
22+
Builds the app for production to the `build` folder.<br />
2323
It correctly bundles React in production mode and optimizes the build for the best performance.
2424

25-
The build is minified and the filenames include the hashes.<br>
25+
The build is minified and the filenames include the hashes.<br />
2626
Your app is ready to be deployed!
2727

2828
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

packages/react-scripts/template-typescript/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta

packages/react-scripts/template/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ In the project directory, you can run:
66

77
### `npm start`
88

9-
Runs the app in the development mode.<br>
9+
Runs the app in the development mode.<br />
1010
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
1111

12-
The page will reload if you make edits.<br>
12+
The page will reload if you make edits.<br />
1313
You will also see any lint errors in the console.
1414

1515
### `npm test`
1616

17-
Launches the test runner in the interactive watch mode.<br>
17+
Launches the test runner in the interactive watch mode.<br />
1818
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
1919

2020
### `npm run build`
2121

22-
Builds the app for production to the `build` folder.<br>
22+
Builds the app for production to the `build` folder.<br />
2323
It correctly bundles React in production mode and optimizes the build for the best performance.
2424

25-
The build is minified and the filenames include the hashes.<br>
25+
The build is minified and the filenames include the hashes.<br />
2626
Your app is ready to be deployed!
2727

2828
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

packages/react-scripts/template/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta

0 commit comments

Comments
 (0)