Add `npm start` to start development node

It also creates a JSON file with addresses
of the deployed contracts.
This commit is contained in:
Mark Spanbroek 2021-11-16 16:15:11 +01:00 committed by markspanbroek
parent a69a6d6975
commit a794141308
3 changed files with 10 additions and 7 deletions

7
.gitignore vendored
View File

@ -1,9 +1,4 @@
node_modules node_modules
.env
coverage
coverage.json
typechain
#Hardhat files
cache cache
artifacts artifacts
deployment-localhost.json

View File

@ -14,6 +14,13 @@ To run the tests, execute the following commands:
npm install npm install
npm test npm test
To start a local Ethereum node with the contracts deployed, execute:
npm start
This will create a `deployment-localhost.json` file containing the addresses of
the deployed contracts.
Overview Overview
-------- --------

View File

@ -2,7 +2,8 @@
"name": "dagger-contracts", "name": "dagger-contracts",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "hardhat test" "test": "hardhat test",
"start": "hardhat node --export 'deployment-localhost.json'"
}, },
"devDependencies": { "devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.2", "@nomiclabs/hardhat-ethers": "^2.0.2",