Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup: npm scripts, circleci, docker (#397)
- Use build, lint and install as standard scripts for every package - rename lint-checks to lint - remove old dockerfile - rename dockerfiles to use `Dockerfile` name - Simplify circleci build - add tslint to utils - normalize script names - rename compile-typescript to build:ts - create build:gen for generated files - don't compile typescript on lint. (build will do that) - Fix linting problems * Revisit celotool docker file - Build projects - fix missing dependencies - improve docker caching & size * circleci: lint & prettify:diff as 2 steps
- Loading branch information
Mariano Cortesi
committed
Aug 10, 2019
1 parent
c586305
commit 3f63d04
Showing
52 changed files
with
227 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
packages/mobile | ||
node_modules | ||
**/node_modules | ||
*node_modules | ||
*node_modules | ||
|
||
# root folders | ||
.github | ||
dockerfiles | ||
.vscode | ||
|
||
# not docker packages | ||
packages/analytics | ||
packages/blockchain-api | ||
packages/docs | ||
packages/faucet | ||
packages/helm-charts | ||
packages/mobile | ||
packages/notification-service | ||
# packages/verification-pool-api | ||
packages/verifier | ||
packages/web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,38 @@ | ||
package.json | ||
**/.next | ||
**/coverage | ||
packages/functions/lib | ||
packages/protocol/types/typechain | ||
**/node_modules | ||
**/privacy/* | ||
.git/ | ||
|
||
packages/blockchain-api/dist | ||
|
||
packages/cli/lib | ||
|
||
packages/contractkit/lib/ | ||
packages/contractkit/.artifacts/ | ||
packages/contractkit/contracts/ | ||
packages/contractkit/types/ | ||
packages/dappkit/lib/ | ||
packages/docs/_book | ||
packages/faucet/dist/ | ||
packages/mobile/src/geth/*.json | ||
packages/notification-service/dist/ | ||
|
||
packages/protocol/build/ | ||
packages/protocol/types/ | ||
packages/protocol/lib/**/*.js | ||
packages/protocol/scripts/**/*.js | ||
packages/protocol/migrations/**/*.js | ||
packages/protocol/tests/**/*.js | ||
packages/protocol/types/**/*.js | ||
**/privacy/* | ||
packages/mobile/src/geth/*.json | ||
|
||
packages/transaction-metrics-exporter/src/contracts/*.ts | ||
packages/verification-pool-api/lib/**/*.js | ||
packages/dappkit/lib/ | ||
packages/utils/lib/ | ||
|
||
packages/verification-pool-api/lib/ | ||
packages/verification-pool-api/contracts/*.ts | ||
packages/contractkit/.artifacts/ | ||
packages/contractkit/contracts/ | ||
packages/contractkit/lib/ | ||
packages/contractkit/types/ | ||
|
||
packages/web/dist | ||
.git/ | ||
packages/web/.next | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM node:8 | ||
WORKDIR /celo-monorepo | ||
|
||
# Needed for gsutil | ||
RUN apt-get update && \ | ||
apt-get install -y lsb-release && \ | ||
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ | ||
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ | ||
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ | ||
apt-get update -y && \ | ||
apt-get install -y google-cloud-sdk && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
# ensure yarn.lock is evaluated by kaniko cache diff | ||
COPY lerna.json package.json yarn.lock ./ | ||
COPY scripts/ scripts/ | ||
COPY packages/utils/package.json packages/utils/ | ||
COPY packages/typescript/package.json packages/typescript/ | ||
COPY packages/contractkit/package.json packages/contractkit/ | ||
COPY packages/verification-pool-api/package.json packages/verification-pool-api/ | ||
COPY packages/celotool/package.json packages/celotool/ | ||
|
||
RUN yarn install --frozen-lockfile && yarn cache clean | ||
|
||
COPY packages/utils packages/utils/ | ||
COPY packages/typescript packages/typescript/ | ||
COPY packages/contractkit packages/contractkit/ | ||
COPY packages/verification-pool-api packages/verification-pool-api/ | ||
COPY packages/celotool packages/celotool/ | ||
|
||
# RUN yarn build | ||
|
||
ENV PATH="/celo-monorepo/packages/celotool/bin:${PATH}" | ||
|
||
CMD ["celotooljs.sh"] |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.