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] $ cd apps/[app]
$ npm install $ 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 ### Local development chain
@ -49,8 +49,10 @@ Ethereum RPC port.
$ npm run devchain $ npm run devchain
$ ipfs daemon $ ipfs daemon
2. Deploy each app to the devchain 2. Deploy each app to the devchain
(make sure you've run `npm install` for every app - see installation)
$ npm run deploy:apps $ npm run deploy:apps
3. Deploy a new KreditsKit and create a new DAO with the latest app versions 3. Deploy a new KreditsKit and create a new DAO with the latest app versions

View File

@ -7,11 +7,12 @@
"test": "test" "test": "test"
}, },
"scripts": { "scripts": {
"postinstall": "./scripts/every-app.sh \"npm install\"",
"build-json": "npm run compile-contracts && node ./scripts/build-json.js", "build-json": "npm run compile-contracts && node ./scripts/build-json.js",
"repl": "truffle exec scripts/repl.js", "repl": "truffle exec scripts/repl.js",
"seeds": "truffle exec scripts/seeds.js", "seeds": "truffle exec scripts/seeds.js",
"compile-contracts": "aragon contracts compile --all", "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": "npm run deploy:kit && npm run deploy:dao",
"reset:hard": "npm run deploy:apps && npm run reset", "reset:hard": "npm run deploy:apps && npm run reset",
"deploy:kit": "npm run compile-contracts && aragon contracts exec scripts/deploy-kit.js", "deploy:kit": "npm run compile-contracts && aragon contracts exec scripts/deploy-kit.js",