Skip to content
Simon Warta edited this page Dec 10, 2019 · 6 revisions

How to use this repo

1. Sync with upstream:

$ git remote add facebook https://github.com/facebook/create-react-app.git
$ git fetch --all
$ git checkout master
$ git merge facebook/master && git push && git push --tags

2. Create a patched version

Get the version numbers x and y from the original release. Then

$ git checkout v3.x.y
$ git checkout -b 3.x.y-patched

Show diffs we applied last time (replace 3.0.1 with the version that was used last time)

$ git log --pretty=oneline v3.0.1...origin/3.0.1-patched
740c45029d6b0547fb6f6221caa2760f07842cf6 (origin/3.0.1-patched, 3.0.1-patched) Change repository
076160b1ccb4ce4374e9992566b4a9b8aaefd55b Rename package to @iov/browser-extension-react-scripts
17f51d8885c06e5e27050540ff11ea50e3c61fb1 [3.0.1] Update chrome extension config to 3.0.1

Cherry-pick them (from old to new)

$ git cherry-pick 17f51d88 076160b1 740c4502

and resolve merge conflicts. Add a commit bumping the version and

$ git push

3. Publish to npm

  1. Login using npm login (once per machine)
  2. Run (cd packages/react-scripts && npm publish)

Clone this wiki locally