From 65d9cf2a062bd6d11c3b4215c5f54dce4e76bad1 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Mon, 8 Apr 2019 18:08:56 +0200 Subject: [PATCH] Fix bootstrap This runs npm install for every app through a postinstall hook. --- README.md | 6 ++++-- package.json | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cbad40f..ff71ad3 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Each of the aragon apps are separate packages: $ cd apps/[app] $ npm install -or use the bootstrap command (see below) +this will be automatically executed after you run `npm install` through a `postinstall` hook. ### Local development chain @@ -45,12 +45,14 @@ Ethereum RPC port. ### Bootstrap 1. Run an Ethereum node and ipfs - + $ npm run devchain $ ipfs daemon + 2. Deploy each app to the devchain + (make sure you've run `npm install` for every app - see installation) $ npm run deploy:apps 3. Deploy a new KreditsKit and create a new DAO with the latest app versions diff --git a/package.json b/package.json index bc1c948..078d906 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,12 @@ "test": "test" }, "scripts": { + "postinstall": "./scripts/every-app.sh \"npm install\"", "build-json": "npm run compile-contracts && node ./scripts/build-json.js", "repl": "truffle exec scripts/repl.js", "seeds": "truffle exec scripts/seeds.js", "compile-contracts": "aragon contracts compile --all", - "bootstrap": "./scripts/every-app \"npm install \" && npm run reset:hard && npm run seeds", + "bootstrap": "./scripts/every-app.sh \"npm install \" && npm run reset:hard && npm run seeds", "reset": "npm run deploy:kit && npm run deploy:dao", "reset:hard": "npm run deploy:apps && npm run reset", "deploy:kit": "npm run compile-contracts && aragon contracts exec scripts/deploy-kit.js",