sourcecred/config
William Chargin 3216f5596e
Add `GitState`, `Environment` to the `VersionInfo` (#692)
Summary:
The version number displayed in the application now displays much more
specific information. It now lists the Git commit from which the build
was constructed, and will identify whether we have accidentally deployed
a development instance (which would be slow) or an instance with
uncommitted changes (which would be bad).

The version information is computed during the initialization of the
Webpack config. For development, this means that it is computed when you
run `yarn start`, and not updated thenafter. If the stale information
presents actual confusion, we would need to backport Webpack 4’s support
for runtime values in `DefinePlugin` to Webpack 3 (or upgrade Webpack
by a major version).

Test Plan:
The logic for `GitState` and `Environment` has existing tests. With both
a clean tree and a dirty tree, run `yarn start` and build the static
site, and check that the resulting versions are correct.

wchargin-branch: use-rich-version-types
2018-08-16 13:38:13 -07:00
..
jest Add `GitState`, `Environment` to the `VersionInfo` (#692) 2018-08-16 13:38:13 -07:00
RemoveBuildDirectoryPlugin.js Refine the build directory cleaning logic (#577) 2018-07-31 15:27:32 -07:00
babel.js Save the GitHub relational store from the CLI (#447) 2018-06-29 12:12:37 -07:00
env.js Add `GitState`, `Environment` to the `VersionInfo` (#692) 2018-08-16 13:38:13 -07:00
makeWebpackConfig.js Remove remaining public URL logic (#686) 2018-08-16 11:19:09 -07:00
paths.js Remove remaining public URL logic (#686) 2018-08-16 11:19:09 -07:00
polyfills.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
test.js Add `sharness` for shell-based testing (#597) 2018-08-06 12:56:25 -07:00
webpack.config.backend.js Don’t erase the `bin/` folder in CI (#317) 2018-05-29 15:40:42 -07:00