Reorganize `src/` directory (#87)

Test Plan:
Note that tests still pass, and all changes to snapshot files are
verbatim moves.

wchargin-branch: reorg
This commit is contained in:
William Chargin 2018-03-19 14:31:50 -07:00 committed by Dandelion Mané
parent 30600004e4
commit ca85fdf234
18 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ module.exports = {
// point within the build directory. // point within the build directory.
backendEntryPoints: { backendEntryPoints: {
fetchAndPrintGitHubRepo: resolveApp( fetchAndPrintGitHubRepo: resolveApp(
"src/backend/bin/fetchAndPrintGitHubRepo.js" "src/plugins/github/bin/fetchAndPrintGitHubRepo.js"
), ),
}, },
}; };

View File

@ -19,7 +19,7 @@ main() {
>"${output}" \ >"${output}" \
; ;
diff -uw \ diff -uw \
src/backend/githubDemoData/example-repo.json \ src/plugins/github/demoData/example-repo.json \
"${output}" \ "${output}" \
; ;
rm "${output}" rm "${output}"

View File

@ -1,8 +1,8 @@
// @flow // @flow
import type {Node, Edge} from "./graph"; import type {Node, Edge} from "../../core/graph";
import type {Address} from "./address"; import type {Address} from "../../core/address";
import {Graph} from "./graph"; import {Graph} from "../../core/graph";
const stringify = require("json-stable-stringify"); const stringify = require("json-stable-stringify");
export const GITHUB_PLUGIN_NAME = "sourcecred/github-beta"; export const GITHUB_PLUGIN_NAME = "sourcecred/github-beta";

View File

@ -1,7 +1,7 @@
// @flow // @flow
import {GithubParser, getNodeType, getEdgeType} from "./githubPlugin"; import {GithubParser, getNodeType, getEdgeType} from "./githubPlugin";
import exampleRepoData from "./githubDemoData/example-repo.json"; import exampleRepoData from "./demoData/example-repo.json";
describe("GithubParser", () => { describe("GithubParser", () => {
describe("whole repo parsing", () => { describe("whole repo parsing", () => {