Move `version.js` to core (#977)

Currently version is located in `homepage/`, which doesn't make much
sense, since it's versioning the whole project.

We move it to core.

Test plan: `yarn test --full`
This commit is contained in:
Dandelion Mané 2018-11-01 11:33:03 -07:00 committed by GitHub
parent 64500f53cb
commit 0ad1e0557f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ const path = require("path");
const paths = require("./paths");
/*:: import type {GitState} from "../src/homepage/version"; */
/*:: import type {GitState} from "../src/core/version"; */
// Make sure that including paths.js after env.js will read .env variables.
delete require.cache[require.resolve("./paths")];

View File

@ -3,7 +3,7 @@
import type {Command} from "./command";
import {VERSION_SHORT} from "../homepage/version";
import {VERSION_SHORT} from "../core/version";
import help from "./help";
import load from "./load";

View File

@ -9,7 +9,7 @@ import {
parseGitState,
} from "./version";
describe("homepage/version", () => {
describe("core/version", () => {
const version = (): VersionInfo => ({
major: 3,
minor: 13,

View File

@ -11,7 +11,7 @@ import TwitterLogo from "./TwitterLogo";
import DiscordLogo from "./DiscordLogo";
import {routeData} from "./routeData";
import * as NullUtil from "../util/null";
import {VERSION_SHORT, VERSION_FULL} from "./version";
import {VERSION_SHORT, VERSION_FULL} from "../core/version";
export default class Page extends React.Component<{|
+assets: Assets,