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:
parent
30600004e4
commit
ca85fdf234
|
@ -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"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -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}"
|
|
@ -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";
|
|
@ -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", () => {
|
Loading…
Reference in New Issue