sourcecred/config
William Chargin 4184e8594a
Save the GitHub relational store from the CLI (#447)
Summary:
This provides a command-line entry point `load-plugin-v3` (which will
become `load-plugin` eventually), which fetches the GitHub data via
GraphQL and saves the resulting `RelationalStore` to disk.

A change to the Babel config is needed to prevent runtime errors of the
form `_callee7` is not defined, where `_callee7` is a gensym that is
appears exactly once in the source (in use position, not definition
position). I’m not sure exactly what is causing the error or why this
config change fixes it. But while this patch may be fragile, I don’t
think that it’s likely to subtly break anything, so I’m okay with
pushing it for now and dealing with any resulting breakage as it arises.

Paired with @decentralion.

Test Plan:
Run `yarn backend`, then run something like:

```
node bin/sourcecredV3.js load-plugin-v3 \
    sourcecred example-github --plugin github
```

Inspect results in `SOURCECRED_DIR/data/OWNER/NAME/github/view.json`,
where `SOURCECRED_DIR` is `/tmp/sourcecred` by default, and `OWNER` and
`NAME` are the repository owner and name.

This example repository takes about 1.1 seconds to run. The SourceCred
repository takes about 45 seconds.

wchargin-branch: cli-load-plugin
2018-06-29 12:12:37 -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 Save the GitHub relational store from the CLI (#447) 2018-06-29 12:12:37 -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