organize npm commands

This commit is contained in:
poma 2019-09-17 16:31:48 +03:00
parent bb80cd9788
commit 6b067f067f

View File

@ -10,11 +10,14 @@
"build:circuit:contract": "npx snarkjs generateverifier -v build/circuits/Verifier.sol --vk build/circuits/withdraw_verification_key.json", "build:circuit:contract": "npx snarkjs generateverifier -v build/circuits/Verifier.sol --vk build/circuits/withdraw_verification_key.json",
"build:circuit": "mkdir -p build/circuits && npm run build:circuit:compile && npm run build:circuit:setup && npm run build:circuit:bin && npm run build:circuit:contract", "build:circuit": "mkdir -p build/circuits && npm run build:circuit:compile && npm run build:circuit:setup && npm run build:circuit:bin && npm run build:circuit:contract",
"build:contract": "npx truffle compile", "build:contract": "npx truffle compile",
"build:browserify": "npx browserify cli.js -o index.js --exclude worker_threads",
"build": "npm run build circuit && npm run build contract && npm run build:browserify",
"browserify": "npm run build:browserify",
"test": "npx truffle test", "test": "npx truffle test",
"migrate": "npx truffle migrate --network kovan --reset", "migrate": "npm run migrate:kovan",
"migrate:mainnet": "npx truffle migrate --network mainnet",
"migrate:dev": "npx truffle migrate --network development --reset", "migrate:dev": "npx truffle migrate --network development --reset",
"browserify": "npx browserify cli.js -o index.js --exclude worker_threads", "migrate:kovan": "npx truffle migrate --network kovan --reset",
"migrate:mainnet": "npx truffle migrate --network mainnet",
"eslint": "npx eslint --ignore-path .gitignore .", "eslint": "npx eslint --ignore-path .gitignore .",
"flat": "truffle-flattener contracts/ETHMixer.sol > ETHMixer_flat.sol contracts/ERC20Mixer.sol > ERC20Mixer_flat.sol" "flat": "truffle-flattener contracts/ETHMixer.sol > ETHMixer_flat.sol contracts/ERC20Mixer.sol > ERC20Mixer_flat.sol"
}, },