Generate a config for truffle.js networks -> development, instead of modifying pre-existing

pull/1/head
cgewecke 8 years ago
parent 52f0a4b889
commit 7d652aa7e8
  1. 10
      exec.js

@ -104,9 +104,13 @@ try {
// Coverage network opts NOT specified: default to the development network w/ modified // Coverage network opts NOT specified: default to the development network w/ modified
// port, gasLimit, gasPrice. Export the config object only. // port, gasLimit, gasPrice. Export the config object only.
} else { } else {
truffleConfig.networks.development.port = port; truffleConfig.networks.development = {
truffleConfig.networks.development.gas = gasLimitHex; host: "localhost",
truffleConfig.networks.development.gasPrice = gasPriceHex; network_id: "*",
port: port,
gas: gasLimitHex,
gasPrice: gasPriceHex
}
coverageOption = ''; coverageOption = '';
fs.writeFileSync(`${coverageDir}/truffle.js`, `module.exports = ${JSON.stringify(truffleConfig)}`); fs.writeFileSync(`${coverageDir}/truffle.js`, `module.exports = ${JSON.stringify(truffleConfig)}`);
} }

Loading…
Cancel
Save