How to use the truffle/lib/config.js.load function in truffle

To help you get started, we’ve selected a few truffle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trufflesuite / truffle / packages / truffle-solidity-loader / lib / build_option_normalizer.js View on Github external
normalize: function(buildOpts, query) {
    var truffleConfig = TruffleConfigLocator.find()

    if(truffleConfig) {
      var config = TruffleConfig.load(truffleConfig)
      config = merge(buildOpts, config)

    if (query !== "undefined") {
      var config = QueryStringParser.parse(query)
      merge(buildOpts, config)

    if(! { = "default"
      Logger.log("Setting network to 'default' for compilation and contract provisioning")

    if(!buildOpts.network_id) {
      buildOpts.network_id = "default"
      Logger.log("Setting network_id to 'default' for compilation and contract provisioning")


Truffle - Simple development framework for Ethereum

Latest version published 8 months ago

Package Health Score

55 / 100
Full package analysis