From 6b067f067f21a8fd9934b822bce9ad3a00d6c760 Mon Sep 17 00:00:00 2001 From: poma Date: Tue, 17 Sep 2019 16:31:48 +0300 Subject: [PATCH] organize npm commands --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8940fbe..01b05dd 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,14 @@ "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: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", - "migrate": "npx truffle migrate --network kovan --reset", - "migrate:mainnet": "npx truffle migrate --network mainnet", + "migrate": "npm run migrate:kovan", "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 .", "flat": "truffle-flattener contracts/ETHMixer.sol > ETHMixer_flat.sol contracts/ERC20Mixer.sol > ERC20Mixer_flat.sol" },