Skip to content

Commit f30a984

Browse files
committed
replace scripts, rootfiles and dotfiles from official upstream (without react-scripts)
1 parent 839c1cf commit f30a984

31 files changed

+477
-13370
lines changed

CHANGELOG-0.x.md

+385-446
Large diffs are not rendered by default.

CHANGELOG-1.x.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -1577,18 +1577,20 @@ Unhandled Promise rejections will now crash tests. You can fix them by explicitl
15771577
After the regular update procedure above, add these line to `<head>` in `public/index.html`:
15781578

15791579
```html
1580-
<meta name="theme-color" content="#000000" />
1581-
<!--
1582-
manifest.json provides metadata used when your web app is added to the
1583-
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1584-
-->
1585-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
1580+
<meta name="theme-color" content="#000000">
1581+
<!--
1582+
manifest.json provides metadata used when your web app is added to the
1583+
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1584+
-->
1585+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
15861586
```
15871587

15881588
Add `<noscript>` to `<body>` in `public/index.html`:
15891589

15901590
```html
1591-
<noscript> You need to enable JavaScript to run this app. </noscript>
1591+
<noscript>
1592+
You need to enable JavaScript to run this app.
1593+
</noscript>
15921594
```
15931595

15941596
Then create a file called `public/manifest.json` that looks like this:

bootstrap.js

-67
This file was deleted.

docusaurus/docs/adding-a-sass-stylesheet.md

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ This will allow you to do imports like
3737
To use imports relative to a path you specify, and from `node_modules` without adding the `~` prefix, you can add a [`.env` file](https://github.com/facebook/create-react-app/blob/master/docusaurus/docs/adding-custom-environment-variables.md#adding-development-environment-variables-in-env) at the project root with the variable `SASS_PATH=node_modules:src`. To specify more directories you can add them to `SASS_PATH` separated by a `:` like `path1:path2:path3`.
3838

3939
If you set `SASS_PATH=node_modules:src`, this will allow you to do imports like
40-
4140
```scss
4241
@import 'styles/colors'; // assuming a styles directory under src/, where _colors.scss partial file exists.
4342
@import 'nprogress/nprogress'; // importing a css file from the nprogress node module

docusaurus/docs/adding-custom-environment-variables.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ When you load the app in the browser and inspect the `<input>`, you will see its
4545
```html
4646
<div>
4747
<small>You are running this application in <b>development</b> mode.</small>
48-
<form><input type="hidden" value="abcdef" /></form>
48+
<form>
49+
<input type="hidden" value="abcdef" />
50+
</form>
4951
</div>
5052
```
5153

docusaurus/docs/deployment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ To deploy your built project directly with Now CLI in your terminal, without any
443443
444444
3. Run `now --name your-project-name` from within the build directory. You will be given a **now.sh** URL as a response as your build is deployed, similar to the following: https://my-cra-project-4rx7b16z3.now.sh/
445445
446-
Click or paste the deployment URL into your browser when the build is complete and you will see your deployed app.
446+
Click or paste the deployment URL into your browser when the build is complete and you will see your deployed app.
447447
448448
For more information on deploying React applications with Now, including automatically building your application fresh in the cloud, setting up routes to rewrite all paths to the index.html file, and setting up caching headers for speed, see [the ZEIT Guide for Deploying a React app with Create React App](https://zeit.co/guides/deploying-react-with-now-cra/).
449449

docusaurus/docs/title-and-meta-tags.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ If you use a custom server for your app in production and want to modify the tit
1919
Since Create React App doesn’t support server rendering, you might be wondering how to make `<meta>` tags dynamic and reflect the current URL. To solve this, we recommend to add placeholders into the HTML, like this:
2020

2121
```html
22-
<!DOCTYPE html>
22+
<!doctype html>
2323
<html lang="en">
2424
<head>
25-
<meta property="og:title" content="__OG_TITLE__" />
26-
<meta property="og:description" content="__OG_DESCRIPTION__" />
27-
</head>
28-
</html>
25+
<meta property="og:title" content="__OG_TITLE__">
26+
<meta property="og:description" content="__OG_DESCRIPTION__">
2927
```
3028

3129
Then, on the server, regardless of the backend you use, you can read `index.html` into memory and replace `__OG_TITLE__`, `__OG_DESCRIPTION__`, and any other placeholders with values depending on the current URL. Just make sure to sanitize and escape the interpolated values so that they are safe to embed into HTML!

docusaurus/docs/using-the-public-folder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you put a file into the `public` folder, it will **not** be processed by Webp
2929
Inside `index.html`, you can use it like this:
3030

3131
```html
32-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
32+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
3333
```
3434

3535
Only files inside the `public` folder will be accessible by `%PUBLIC_URL%` prefix. If you need to use a file from `src` or `node_modules`, you’ll have to copy it there to explicitly specify your intention to make this file a part of the build.

docusaurus/website/README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ This website was created with [Docusaurus](https://docusaurus.io/).
22

33
# What's In This Document
44

5-
- [Get Started in 5 Minutes](#get-started-in-5-minutes)
6-
- [Directory Structure](#directory-structure)
7-
- [Editing Content](#editing-content)
8-
- [Adding Content](#adding-content)
9-
- [Full Documentation](#full-documentation)
5+
* [Get Started in 5 Minutes](#get-started-in-5-minutes)
6+
* [Directory Structure](#directory-structure)
7+
* [Editing Content](#editing-content)
8+
* [Adding Content](#adding-content)
9+
* [Full Documentation](#full-documentation)
1010

1111
# Get Started in 5 Minutes
1212

@@ -16,7 +16,6 @@ This website was created with [Docusaurus](https://docusaurus.io/).
1616
# Install dependencies
1717
$ yarn
1818
```
19-
2019
2. Run your dev server:
2120

2221
```sh
@@ -103,7 +102,6 @@ For more information about adding new docs, click [here](https://docusaurus.io/d
103102
1. Add links to docs, custom pages or external links by editing the headerLinks field of `website/siteConfig.js`:
104103

105104
`website/siteConfig.js`
106-
107105
```javascript
108106
{
109107
headerLinks: [
@@ -128,7 +126,6 @@ For more information about the navigation bar, click [here](https://docusaurus.i
128126
1. If you want your page to show up in your navigation header, you will need to update `website/siteConfig.js` to add to the `headerLinks` element:
129127

130128
`website/siteConfig.js`
131-
132129
```javascript
133130
{
134131
headerLinks: [

docusaurus/website/siteConfig.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ const siteConfig = {
1515
// For github.io type URLs, you would set the url and baseUrl like:
1616
url: 'https://facebook.github.io',
1717
baseUrl: '/create-react-app/',
18-
editUrl:
19-
'https://github.com/facebook/create-react-app/edit/master/docusaurus/docs/',
18+
editUrl: 'https://github.com/facebook/create-react-app/edit/master/docusaurus/docs/',
2019

2120
// Used for publishing and more
2221
projectName: 'create-react-app',
@@ -87,7 +86,7 @@ const siteConfig = {
8786
algolia: {
8887
apiKey: '3be60f4f8ffc24c75da84857d6323791',
8988
indexName: 'create-react-app',
90-
},
89+
}
9190
};
9291

9392
module.exports = siteConfig;

lerna.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"lerna": "2.6.0",
3-
"npmClient": "npm",
3+
"npmClient": "yarn",
4+
"useWorkspaces": true,
45
"version": "independent",
56
"changelog": {
67
"repo": "facebook/create-react-app",

packages/react-app-polyfill/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Each polyfill ensures the following language features are present:
1313
1. `Symbol` (a built-in object used by `for...of` syntax and friends)
1414
1. `Array.from` (a built-in static method used by array spread, i.e. `[...arr]`)
1515

16-
_If you need more features, you must include them manually._
16+
*If you need more features, you must include them manually.*
1717

1818
### Usage
1919

0 commit comments

Comments
 (0)