Refactor package.json
This commit is contained in:
parent
75da4bb5bf
commit
2b8c44c1d5
|
@ -38,6 +38,9 @@ accounts/keystore/*
|
|||
/data/spec.json
|
||||
/data/StakingToken.json
|
||||
|
||||
# Empty files
|
||||
/data/node*/keys/DPoSChain/address_book.json
|
||||
|
||||
# NPM files
|
||||
/node_modules/
|
||||
|
||||
|
|
|
@ -3,19 +3,20 @@
|
|||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"after-start": "(node scripts/watchOrdinaryNode.js &) && node scripts/deploy-staking-token.js && (node scripts/watchRandomSeed &) && npm run test && npm run stop-test-setup",
|
||||
"after-start": "npm run checkers && npm run test && npm run watcher && npm run stop-test-setup",
|
||||
"after-start-no-watcher": "npm run checkers && npm run test && npm run stop-test-setup",
|
||||
"all": "npm run before-start && npm run start-test-setup-openethereum && npm run after-start",
|
||||
"all-nethermind": "npm run before-start && npm run start-test-setup-nethermind && npm run after-start",
|
||||
"all-nethermind-no-watcher": "npm run before-start && npm run start-test-setup-nethermind && (node scripts/watchOrdinaryNode.js &) && node scripts/deploy-staking-token.js && (node scripts/watchRandomSeed &) && npm run test-no-watcher && npm run stop-test-setup",
|
||||
"all-nethermind-no-watcher": "npm run before-start && npm run start-test-setup-nethermind && npm run after-start-no-watcher",
|
||||
"before-start": "npm i && npm run get-all-submodules && npm run cleanup && npm run compile-posdao-contracts && npm run make-spec",
|
||||
"checkers": "(node scripts/watchOrdinaryNode.js &) && node scripts/deploy-staking-token.js && (node scripts/watchRandomSeed &)",
|
||||
"cleanup": "bash scripts/stop-test-setup && rm -rf ./build ./data ./accounts && git checkout ./data && git checkout ./accounts",
|
||||
"get-all-submodules": "git submodule update --init --remote",
|
||||
"compile-posdao-contracts": "cd ./posdao-contracts && npm i && npm run compile",
|
||||
"make-spec": ". ./scripts/network-spec && cd ./posdao-contracts && npm i && node ./scripts/make_spec.js && node ../scripts/copy-spec.js",
|
||||
"start-test-setup-openethereum": "bash scripts/start-test-setup ../openethereum/target/release/openethereum",
|
||||
"start-test-setup-nethermind": "bash scripts/start-test-setup ../nethermind/bin/Nethermind.Runner",
|
||||
"test": "node_modules/.bin/mocha --bail --timeout 1200000 && npm run watcher",
|
||||
"test-no-watcher": "node_modules/.bin/mocha --bail --timeout 1200000",
|
||||
"test": "node_modules/.bin/mocha --bail --timeout 1200000",
|
||||
"stop-test-setup": "bash scripts/stop-test-setup",
|
||||
"watcher": "node scripts/watcher.js"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue