diff --git a/README.md b/README.md index 3f850cb..cce4ba6 100644 --- a/README.md +++ b/README.md @@ -42,15 +42,25 @@ test/e2e/minikube/run-test.sh teardown ## Development -After editing files in `proto/` or `contracts/`, make sure to run the following commands to sync the generated files: +Install Turbo (If you haven't already) using your favorite package manager , Ex: `npm i -g turbo` -```bash -forge build --root contracts -go generate -turbo build +#### Syncing Generated Files + +After editing files in `proto/` or `contracts/`, run the following command to sync the generated files: + +```sh +turbo sync +``` + +#### Build Images + +The following will build the apocryph trusted pods server and the p2p-helper images + +```sh +turbo build-images ``` - + ## Contributing diff --git a/turbo.json b/turbo.json index 887cbbd..82d9209 100644 --- a/turbo.json +++ b/turbo.json @@ -2,13 +2,19 @@ "$schema": "https://turbo.build/schema.json", "pipeline": { "build": { - "dependsOn": ["//#build-images", "ts-gen-abi", "ts-gen-proto"] + "dependsOn": ["//#build-images"] }, "//#lint": {}, + "sync": { + "dependsOn": ["//#go-build", "ts-gen-proto", "ts-gen-abi"] + }, "//#go-build": { "inputs": ["./proto/**"], "dependsOn": ["//#build-contracts"] }, + "//#build-contracts": { + "inputs": ["./contracts/**"] + }, "//#build-tpodserver": { "dependsOn": ["//#go-build"] }, @@ -16,10 +22,7 @@ "dependsOn": ["//#go-build"] }, "//#build-images": { - "dependsOn": ["//#build-tpodserver", "//#build-p2p-helper"] - }, - "//#build-contracts": { - "inputs": ["./contracts/**"] + "dependsOn": ["//#sync", "//#build-tpodserver", "//#build-p2p-helper"] }, "ts-gen-proto": { "inputs": ["../../proto/**"]