Update npm scripts, README
Introduce a new `build` script that also builds the ABIs.
This commit is contained in:
parent
ab8f632a30
commit
96940716bd
@ -66,10 +66,10 @@ if you want to increase the block time to 10 seconds you can add
|
|||||||
$ npm run devchain
|
$ npm run devchain
|
||||||
$ ipfs daemon
|
$ ipfs daemon
|
||||||
|
|
||||||
2. Compile contracts
|
2. Compile contracts and build ABIs
|
||||||
|
|
||||||
(compiled artifacts will be in `/artifacts`)
|
(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
|
3. Deploy a new KreditsKit and create a new DAO with the latest app versions
|
||||||
|
|
||||||
|
10
package.json
10
package.json
@ -10,13 +10,13 @@
|
|||||||
"wallet:create": "hardhat create-wallet",
|
"wallet:create": "hardhat create-wallet",
|
||||||
"devchain": "hardhat node --network hardhat",
|
"devchain": "hardhat node --network hardhat",
|
||||||
"deploy:dao": "hardhat run scripts/create-proxy.js --network localhost",
|
"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",
|
"postshrinkwrap": "node scripts/fix-package-lock.js &>/dev/null || true",
|
||||||
"build-json": "npm run compile-contracts && node ./scripts/build-json.js",
|
"build": "npm run build:contracts && npm run build:json",
|
||||||
"repl": "hardhat console --network localhost",
|
"build:contracts": "hardhat compile --force",
|
||||||
"compile-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",
|
"bootstrap": "npm run deploy:dao && npm run seeds",
|
||||||
|
"repl": "hardhat console --network localhost",
|
||||||
"lint:contracts": "solhint \"contracts/**/*.sol\" \"apps/*/contracts/**/*.sol\"",
|
"lint:contracts": "solhint \"contracts/**/*.sol\" \"apps/*/contracts/**/*.sol\"",
|
||||||
"lint:contract-tests": "eslint apps/*/test",
|
"lint:contract-tests": "eslint apps/*/test",
|
||||||
"lint:wrapper": "eslint lib/",
|
"lint:wrapper": "eslint lib/",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user