Skip to content

Commit 17a7b88

Browse files
committed
[BPK-4282]: Rebase CRA 4 to BRS
1 parent 7ba8154 commit 17a7b88

File tree

10 files changed

+318
-151
lines changed

10 files changed

+318
-151
lines changed

packages/react-scripts/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# `backpack-react-scripts` Change Log
22

3+
## 9.0.0
4+
5+
With this change its is only breaking due to the requirement of needing `Jest` to be upgraded to `26.6.0`, nothing else should affect from a consumer perspective.
6+
7+
### Breaking
8+
9+
- Rebased onto `upstream/master` v4.0.0 (ed958938f642007645dd5ac3466db36202f8754e).
10+
- This release rebases `backpack-react-scripts` on top of `create-react-app` v4! The major changes have been summarised in the following blog post:
11+
[Create React App 4.0](https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md#400-2020-10-23)
12+
13+
- **The only breaking change is the requirement of Jest to be upgraded. Please follow [this guide](./migrating-from-v8-to-v9.md) when upgrading.**
14+
315
## 8.0.5
416

517
- Updated `bpk-mixins` to latest version

packages/react-scripts/README.md

Lines changed: 2 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# backpack-react-scripts
22

3-
### **Important:** The currently supported version of **CRA** by `backpack-react-scripts` is up to `v3.4.1`. Versions above this will not work.
3+
### **Important:** The currently supported version of **CRA** by `backpack-react-scripts` is up to `v4.0.0`. Versions above this will not work.
44

55
This package is a fork of [Create React App](https://github.com/facebookincubator/create-react-app) (specifically the
66
`react-scripts` package). It's intended to be used in conjuction with `create-react-app` like so:
77

88
```sh
9-
npx create-react-app@3.4.1 my-app --scripts-version=@skyscanner/backpack-react-scripts --template @skyscanner/backpack --use-npm
9+
npx create-react-app@4.0.0 my-app --scripts-version=@skyscanner/backpack-react-scripts --template @skyscanner/backpack --use-npm
1010

1111
# start your app development like you normally would with `create-react-app`
1212
cd my-app
@@ -32,63 +32,3 @@ npm start
3232
- `cssModules`: Boolean, true by default.
3333
- `sriEnabled`: Sets if SRI is to be used during build to add integrity hash for files, see [docs](https://github.com/waysact/webpack-subresource-integrity/blob/master/README.md).
3434
- **Note** if this is enabled, `crossOriginLoading` value is overriden with `anonymous` in order for it to output with the integrity value.
35-
36-
## Releasing a new version of `backpack-react-scripts`
37-
38-
1. To publish a new version of `backpack-react-scripts`, run the following command:
39-
40-
```
41-
npm run publish
42-
```
43-
44-
2. You will be prompted to select a new semver version (MAJOR, MINOR, PATCH). Use the [CHANGELOG.md](./CHANGELOG.md) to decide on the nature of the changes since the last release.
45-
46-
- If you want to be extra careful, you can publish a prerelease by running this instead:
47-
48-
```
49-
npm run publish -- --canary
50-
```
51-
52-
3. Update the [CHANGELOG.md](./CHANGELOG.md) with the new version, taking care to follow the format of previous releases.
53-
54-
## Keeping this fork updated
55-
56-
We wish to keep this fork updated with the upstream repo to benefit from the ongoing open source development
57-
of `create-react-app`. To keep this fork up to date, please follow the steps below:
58-
59-
1. Ensure `master` is in sync with `upstream/master`:
60-
61-
```sh
62-
git checkout master
63-
git remote add upstream [email protected]:facebook/create-react-app.git
64-
git fetch upstream
65-
git reset --hard upstream/master
66-
git push --force-with-lease
67-
```
68-
69-
1. Rebase `fork` on top of a **tagged release** on `master`:
70-
71-
```sh
72-
git checkout fork
73-
git rebase <commit>
74-
```
75-
76-
> **Note:** `<commit>` should be the SHA-1 of the latest upstream release - _not_ the latest commit i.e. `upstream/master`
77-
78-
1. Pair with someone else to fix any conflicts and cross examine changes in upstream with changes in our fork.
79-
80-
> This is the most time consuming part. Take care to make sure you are not regressing any functionality that we have added in our fork.
81-
82-
1. Re-name your local, rebased `fork` branch to something else and push it to origin. This will ensure it runs through CI and you can verify your changes.
83-
84-
```sh
85-
git branch -m <branch>
86-
git push origin <branch>
87-
```
88-
89-
1. Finally, when we are confident that the rebase has been successful, re-name your branch back to `fork` and push it to origin:
90-
91-
```sh
92-
git branch -m fork
93-
git push --force-with-lease
94-
```

0 commit comments

Comments
 (0)