sourcecred/config
William Chargin ca5346b524
Create a bridge for the V1 and V3 apps (#448)
Summary:
Our build system doesn’t make it easy to have two separate React
applications, which we would like to have for the V1 and V3 branches.
Instead, we’ll implement a bridge to maintain compatibility.

The plan looks like this:

 1. Change the app from pointing to V1 to pointing to a bridge
 2. Move the router into the bridge and move the V1 app from the `/`
    route to the `/v1` route (e.g., `/v1/explorer`)
 3. Add a V3 app under the `/v3` route
 4. ???
 5. Delete the V1 app and remove it from the bridge
 6. Delete the bridge and move the V3 app from the `/v3` route to `/`

This commit implements Step 1.

Test Plan:
To verify that the bridge is in fact showing, apply

```diff
diff --git a/src/bridge/app/index.js b/src/bridge/app/index.js
index 379e289..72e784c 100644
--- a/src/bridge/app/index.js
+++ b/src/bridge/app/index.js
@@ -9,5 +9,11 @@ const root = document.getElementById("root");
 if (root == null) {
   throw new Error("Unable to find root element!");
 }
-ReactDOM.render(<V1App />, root);
+ReactDOM.render(
+  <React.Fragment>
+    <h1>Hello</h1>
+    <V1App />
+  </React.Fragment>,
+  root
+);
 registerServiceWorker();
```

and say “hello” back to the app.

wchargin-branch: bridge
2018-06-29 13:09:39 -07:00
..
jest Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
babel.js Save the GitHub relational store from the CLI (#447) 2018-06-29 12:12:37 -07:00
env.js Turn on flow for config/env.js (#243) 2018-05-08 14:56:06 -07:00
paths.js Create a bridge for the V1 and V3 apps (#448) 2018-06-29 13:09:39 -07:00
polyfills.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
travis.js Copy graph-independent V1 Git plugin code to V3 (#401) 2018-06-20 15:28:37 -07:00
webpack.config.backend.js Don’t erase the `bin/` folder in CI (#317) 2018-05-29 15:40:42 -07:00
webpack.config.dev.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
webpack.config.prod.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
webpackDevServer.config.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00