mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-27 21:06:09 +00:00
c84a1c01e8
Summary: Now that the main functionality of #643 has been implemented, we no longer have any use for the “public URL” property. In fact, its presence is actively harmful, as it suggests that the gateway may be known before runtime, which is confusing and false. Closes #643. Test Plan: Running `yarn start` works. Building the static site works. Invoking `git grep -i 'public.\?url'` finds no matches. Also, `yarn test --full` passes. wchargin-branch: remove-public-url
42 lines
1.6 KiB
JavaScript
42 lines
1.6 KiB
JavaScript
// @flow
|
|
const path = require("path");
|
|
const fs = require("fs");
|
|
|
|
// Make sure any symlinks in the project folder are resolved:
|
|
// https://github.com/facebookincubator/create-react-app/issues/637
|
|
const appDirectory = fs.realpathSync(process.cwd());
|
|
const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath);
|
|
|
|
// config after eject: we're in ./config/
|
|
module.exports = {
|
|
root: appDirectory,
|
|
dotenv: resolveApp(".env"),
|
|
favicon: resolveApp("src/assets/logo/sourcecred_32.png"),
|
|
appBuild: resolveApp("build"),
|
|
appIndexJs: resolveApp("src/app/index.js"),
|
|
appServerSideRenderingIndexJs: resolveApp("src/app/server.js"),
|
|
appRouteData: resolveApp("src/app/routeData.js"),
|
|
appPackageJson: resolveApp("package.json"),
|
|
appSrc: resolveApp("src"),
|
|
yarnLockFile: resolveApp("yarn.lock"),
|
|
appNodeModules: resolveApp("node_modules"),
|
|
|
|
backendBuild: resolveApp("bin"),
|
|
// This object should have one key-value pair per entry point. For
|
|
// each key, the value should be the path to the entry point for the
|
|
// source file, and the key will be the filename of the bundled entry
|
|
// point within the build directory.
|
|
backendEntryPoints: {
|
|
sourcecred: resolveApp("src/cli/sourcecred.js"),
|
|
"commands/load": resolveApp("src/cli/commands/load.js"),
|
|
//
|
|
fetchAndPrintGithubRepo: resolveApp(
|
|
"src/plugins/github/bin/fetchAndPrintGithubRepo.js"
|
|
),
|
|
createExampleRepo: resolveApp("src/plugins/git/bin/createExampleRepo.js"),
|
|
loadAndPrintGitRepository: resolveApp(
|
|
"src/plugins/git/bin/loadAndPrintRepository.js"
|
|
),
|
|
},
|
|
};
|