Move package json to root (#37)
Reorganize the code so that we have a single package.json file, which is at the root. All source code now lives under `src`, separated into `src/backend` and `src/explorer`. Test plan: - run `yarn start` - it works - run `yarn test` - it finds the tests (all in src/explorer) and they pass - run `yarn flow` - it works. (tested with an error, that works too) - run `yarn prettify` - it finds all the js files and writes to them
This commit is contained in:
parent
c5be6eceda
commit
bc2377448f
|
@ -1,11 +0,0 @@
|
||||||
[ignore]
|
|
||||||
|
|
||||||
[include]
|
|
||||||
|
|
||||||
[libs]
|
|
||||||
|
|
||||||
[lints]
|
|
||||||
|
|
||||||
[options]
|
|
||||||
|
|
||||||
[strict]
|
|
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
"name": "sourcecred-backend",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"description": "Backend for SourceCred",
|
|
||||||
"main": "index.js",
|
|
||||||
"repository": "https://github.com/SourceCred/SourceCred",
|
|
||||||
"author": "dandelionmane,wchargin",
|
|
||||||
"license": "MIT",
|
|
||||||
"private": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/rest": "octokit/rest.js"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"flow": "^0.2.3",
|
|
||||||
"flow-bin": "^0.66.0",
|
|
||||||
"husky": "^0.14.3",
|
|
||||||
"lint-staged": "^7.0.0",
|
|
||||||
"prettier": "^1.10.2"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"precommit": "npm run lint-staged",
|
|
||||||
"lint-staged": "lint-staged",
|
|
||||||
"prettify": "prettier --write '**/*.js'"
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"**/*.js": "prettier --list-different"
|
|
||||||
}
|
|
||||||
}
|
|
2180
backend/yarn.lock
2180
backend/yarn.lock
File diff suppressed because it is too large
Load Diff
|
@ -44,7 +44,7 @@ module.exports = {
|
||||||
appBuild: resolveApp("build"),
|
appBuild: resolveApp("build"),
|
||||||
appPublic: resolveApp("public"),
|
appPublic: resolveApp("public"),
|
||||||
appHtml: resolveApp("public/index.html"),
|
appHtml: resolveApp("public/index.html"),
|
||||||
appIndexJs: resolveApp("src/index.js"),
|
appIndexJs: resolveApp("src/explorer/index.js"),
|
||||||
appPackageJson: resolveApp("package.json"),
|
appPackageJson: resolveApp("package.json"),
|
||||||
appSrc: resolveApp("src"),
|
appSrc: resolveApp("src"),
|
||||||
yarnLockFile: resolveApp("yarn.lock"),
|
yarnLockFile: resolveApp("yarn.lock"),
|
|
@ -1,20 +0,0 @@
|
||||||
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
|
||||||
|
|
||||||
# dependencies
|
|
||||||
/node_modules
|
|
||||||
|
|
||||||
# testing
|
|
||||||
/coverage
|
|
||||||
|
|
||||||
# production
|
|
||||||
/build
|
|
||||||
|
|
||||||
# misc
|
|
||||||
.env.local
|
|
||||||
.env.development.local
|
|
||||||
.env.test.local
|
|
||||||
.env.production.local
|
|
||||||
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"trailingComma": "es5",
|
|
||||||
"bracketSpacing": false,
|
|
||||||
"arrowParens": "always"
|
|
||||||
}
|
|
|
@ -3,6 +3,7 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@octokit/rest": "octokit/rest.js",
|
||||||
"autoprefixer": "7.1.6",
|
"autoprefixer": "7.1.6",
|
||||||
"babel-core": "6.26.0",
|
"babel-core": "6.26.0",
|
||||||
"babel-eslint": "7.2.3",
|
"babel-eslint": "7.2.3",
|
|
@ -2,6 +2,18 @@
|
||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
"@octokit/rest@octokit/rest.js":
|
||||||
|
version "0.0.0-semantically-released"
|
||||||
|
resolved "https://codeload.github.com/octokit/rest.js/tar.gz/57c20ed25ca6da640571db0e9cea9dfab11597b3"
|
||||||
|
dependencies:
|
||||||
|
before-after-hook "^1.1.0"
|
||||||
|
btoa-lite "^1.0.0"
|
||||||
|
debug "^3.1.0"
|
||||||
|
is-array-buffer "^1.0.0"
|
||||||
|
is-stream "^1.1.0"
|
||||||
|
lodash "^4.17.4"
|
||||||
|
url-template "^2.0.8"
|
||||||
|
|
||||||
abab@^1.0.3:
|
abab@^1.0.3:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e"
|
resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e"
|
||||||
|
@ -989,6 +1001,10 @@ bcrypt-pbkdf@^1.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
tweetnacl "^0.14.3"
|
tweetnacl "^0.14.3"
|
||||||
|
|
||||||
|
before-after-hook@^1.1.0:
|
||||||
|
version "1.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-1.1.0.tgz#83165e15a59460d13702cb8febd6a1807896db5a"
|
||||||
|
|
||||||
big.js@^3.1.3:
|
big.js@^3.1.3:
|
||||||
version "3.2.0"
|
version "3.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e"
|
resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e"
|
||||||
|
@ -1174,6 +1190,10 @@ bser@^2.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
node-int64 "^0.4.0"
|
node-int64 "^0.4.0"
|
||||||
|
|
||||||
|
btoa-lite@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337"
|
||||||
|
|
||||||
buffer-indexof@^1.0.0:
|
buffer-indexof@^1.0.0:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/buffer-indexof/-/buffer-indexof-1.1.1.tgz#52fabcc6a606d1a00302802648ef68f639da268c"
|
resolved "https://registry.yarnpkg.com/buffer-indexof/-/buffer-indexof-1.1.1.tgz#52fabcc6a606d1a00302802648ef68f639da268c"
|
||||||
|
@ -3289,6 +3309,10 @@ is-absolute-url@^2.0.0:
|
||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6"
|
resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6"
|
||||||
|
|
||||||
|
is-array-buffer@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-1.0.0.tgz#f32497a0509d109423f472003f98bab6a8ea34cb"
|
||||||
|
|
||||||
is-arrayish@^0.2.1:
|
is-arrayish@^0.2.1:
|
||||||
version "0.2.1"
|
version "0.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
|
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
|
||||||
|
@ -6523,6 +6547,10 @@ url-parse@^1.1.8:
|
||||||
querystringify "~1.0.0"
|
querystringify "~1.0.0"
|
||||||
requires-port "~1.0.0"
|
requires-port "~1.0.0"
|
||||||
|
|
||||||
|
url-template@^2.0.8:
|
||||||
|
version "2.0.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21"
|
||||||
|
|
||||||
url@^0.11.0:
|
url@^0.11.0:
|
||||||
version "0.11.0"
|
version "0.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
|
resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
|
Loading…
Reference in New Issue