From 69989256f6e216ea8b740b499289ed5819d87abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dandelion=20Man=C3=A9?= Date: Thu, 1 Nov 2018 10:19:51 -0700 Subject: [PATCH] Rename `app/` to `homepage/` (#974) Now that we've moved the explorer out of app, it is more concisely described as the homepage. Test plan: Rename only. Run `yarn test`. --- config/env.js | 2 +- src/cli/sourcecred.js | 2 +- src/{app => homepage}/App.js | 0 src/{app => homepage}/DiscordLogo.js | 0 src/{app => homepage}/ExternalRedirect.js | 0 src/{app => homepage}/GithubLogo.js | 0 src/{app => homepage}/HomePage.js | 0 src/{app => homepage}/Page.js | 0 src/{app => homepage}/TwitterLogo.js | 0 src/{app => homepage}/createRoutes.js | 0 src/{app => homepage}/index.css | 0 src/{app => homepage}/index.js | 0 src/{app => homepage}/routeData.js | 0 src/{app => homepage}/routeData.test.js | 2 +- src/{app => homepage}/server.js | 0 src/{app => homepage}/version.js | 0 src/{app => homepage}/version.test.js | 2 +- 17 files changed, 4 insertions(+), 4 deletions(-) rename src/{app => homepage}/App.js (100%) rename src/{app => homepage}/DiscordLogo.js (100%) rename src/{app => homepage}/ExternalRedirect.js (100%) rename src/{app => homepage}/GithubLogo.js (100%) rename src/{app => homepage}/HomePage.js (100%) rename src/{app => homepage}/Page.js (100%) rename src/{app => homepage}/TwitterLogo.js (100%) rename src/{app => homepage}/createRoutes.js (100%) rename src/{app => homepage}/index.css (100%) rename src/{app => homepage}/index.js (100%) rename src/{app => homepage}/routeData.js (100%) rename src/{app => homepage}/routeData.test.js (97%) rename src/{app => homepage}/server.js (100%) rename src/{app => homepage}/version.js (100%) rename src/{app => homepage}/version.test.js (99%) diff --git a/config/env.js b/config/env.js index 585eecf..d6535d0 100644 --- a/config/env.js +++ b/config/env.js @@ -6,7 +6,7 @@ const path = require("path"); const paths = require("./paths"); -/*:: import type {GitState} from "../src/app/version"; */ +/*:: import type {GitState} from "../src/homepage/version"; */ // Make sure that including paths.js after env.js will read .env variables. delete require.cache[require.resolve("./paths")]; diff --git a/src/cli/sourcecred.js b/src/cli/sourcecred.js index 7a3e4a1..b794356 100644 --- a/src/cli/sourcecred.js +++ b/src/cli/sourcecred.js @@ -3,7 +3,7 @@ import type {Command} from "./command"; -import {VERSION_SHORT} from "../app/version"; +import {VERSION_SHORT} from "../homepage/version"; import help from "./help"; import load from "./load"; diff --git a/src/app/App.js b/src/homepage/App.js similarity index 100% rename from src/app/App.js rename to src/homepage/App.js diff --git a/src/app/DiscordLogo.js b/src/homepage/DiscordLogo.js similarity index 100% rename from src/app/DiscordLogo.js rename to src/homepage/DiscordLogo.js diff --git a/src/app/ExternalRedirect.js b/src/homepage/ExternalRedirect.js similarity index 100% rename from src/app/ExternalRedirect.js rename to src/homepage/ExternalRedirect.js diff --git a/src/app/GithubLogo.js b/src/homepage/GithubLogo.js similarity index 100% rename from src/app/GithubLogo.js rename to src/homepage/GithubLogo.js diff --git a/src/app/HomePage.js b/src/homepage/HomePage.js similarity index 100% rename from src/app/HomePage.js rename to src/homepage/HomePage.js diff --git a/src/app/Page.js b/src/homepage/Page.js similarity index 100% rename from src/app/Page.js rename to src/homepage/Page.js diff --git a/src/app/TwitterLogo.js b/src/homepage/TwitterLogo.js similarity index 100% rename from src/app/TwitterLogo.js rename to src/homepage/TwitterLogo.js diff --git a/src/app/createRoutes.js b/src/homepage/createRoutes.js similarity index 100% rename from src/app/createRoutes.js rename to src/homepage/createRoutes.js diff --git a/src/app/index.css b/src/homepage/index.css similarity index 100% rename from src/app/index.css rename to src/homepage/index.css diff --git a/src/app/index.js b/src/homepage/index.js similarity index 100% rename from src/app/index.js rename to src/homepage/index.js diff --git a/src/app/routeData.js b/src/homepage/routeData.js similarity index 100% rename from src/app/routeData.js rename to src/homepage/routeData.js diff --git a/src/app/routeData.test.js b/src/homepage/routeData.test.js similarity index 97% rename from src/app/routeData.test.js rename to src/homepage/routeData.test.js index 8e3628b..b5511ff 100644 --- a/src/app/routeData.test.js +++ b/src/homepage/routeData.test.js @@ -2,7 +2,7 @@ import {routeData} from "./routeData"; -describe("app/routeData", () => { +describe("homepage/routeData", () => { /* * React Router doesn't support relative paths. I'm not sure exactly * what a path without a leading slash would do; it's asking for diff --git a/src/app/server.js b/src/homepage/server.js similarity index 100% rename from src/app/server.js rename to src/homepage/server.js diff --git a/src/app/version.js b/src/homepage/version.js similarity index 100% rename from src/app/version.js rename to src/homepage/version.js diff --git a/src/app/version.test.js b/src/homepage/version.test.js similarity index 99% rename from src/app/version.test.js rename to src/homepage/version.test.js index b7d6865..2fecc9b 100644 --- a/src/app/version.test.js +++ b/src/homepage/version.test.js @@ -9,7 +9,7 @@ import { parseGitState, } from "./version"; -describe("app/version", () => { +describe("homepage/version", () => { const version = (): VersionInfo => ({ major: 3, minor: 13,