From b0959be666e7f8ba86a5be17cd2f67c766f189ea Mon Sep 17 00:00:00 2001 From: Jacob Homanics Date: Mon, 24 Jun 2024 21:44:11 -0500 Subject: [PATCH] added setup command --- README.md | 5 ++--- package.json | 1 + packages/foundry/package.json | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a0897a1..87497b5 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,10 @@ cd reputation-and-roles-monorepo yarn install ``` -2. In your terminal, clone the environemnt example +2. In your terminal, setup the environment by cloning the environemnt example ``` -cd packages/foundry -cp .env.example .env +yarn setup ``` 3. On the first terminal, run a local network: diff --git a/package.json b/package.json index 7432237..f844757 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ ] }, "scripts": { + "setup": "yarn workspace @se-2/foundry setup", "account": "yarn workspace @se-2/foundry account", "chain": "yarn workspace @se-2/foundry chain", "compile": "yarn workspace @se-2/foundry compile", diff --git a/packages/foundry/package.json b/packages/foundry/package.json index 883439c..18cabf4 100644 --- a/packages/foundry/package.json +++ b/packages/foundry/package.json @@ -3,6 +3,7 @@ "version": "0.0.1", "type": "module", "scripts": { + "setup": "cp .env .example", "account": "node script/ListAccount.js", "chain": "anvil --config-out localhost.json", "compile": "forge compile",