Update npm scripts, README

Introduce a new `build` script that also builds the ABIs.
This commit is contained in:
Basti 2022-05-16 19:16:13 +02:00
parent ab8f632a30
commit 96940716bd
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
2 changed files with 7 additions and 7 deletions

View File

@ -66,10 +66,10 @@ if you want to increase the block time to 10 seconds you can add
$ npm run devchain
$ ipfs daemon
2. Compile contracts
2. Compile contracts and build ABIs
(compiled artifacts will be in `/artifacts`)
$ npm run compile-contracts
$ npm run build
3. Deploy a new KreditsKit and create a new DAO with the latest app versions

View File

@ -10,13 +10,13 @@
"wallet:create": "hardhat create-wallet",
"devchain": "hardhat node --network hardhat",
"deploy:dao": "hardhat run scripts/create-proxy.js --network localhost",
"seeds": "hardhat run scripts/seeds.js --network localhost",
"install-all": "./scripts/every-app.sh \"npm install\"",
"postshrinkwrap": "node scripts/fix-package-lock.js &>/dev/null || true",
"build-json": "npm run compile-contracts && node ./scripts/build-json.js",
"repl": "hardhat console --network localhost",
"compile-contracts": "hardhat compile --force",
"build": "npm run build:contracts && npm run build:json",
"build:contracts": "hardhat compile --force",
"build:json": "node ./scripts/build-json.js",
"seeds": "hardhat run scripts/seeds.js --network localhost",
"bootstrap": "npm run deploy:dao && npm run seeds",
"repl": "hardhat console --network localhost",
"lint:contracts": "solhint \"contracts/**/*.sol\" \"apps/*/contracts/**/*.sol\"",
"lint:contract-tests": "eslint apps/*/test",
"lint:wrapper": "eslint lib/",