Fix bootstrap

This runs npm install for every app through a postinstall hook.
This commit is contained in:
bumi 2019-04-08 18:08:56 +02:00
parent b35dc2049b
commit 65d9cf2a06
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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",