How to use the @truffle/require.exec function in @truffle/require

To help you get started, we’ve selected a few @truffle/require 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-core / lib / commands / exec.js View on Github external
// `--compile`
        if (options.c || options.compile) {
          return Contracts.compile(config, function(err) {
            if (err) return done(err);

            Require.exec(
              config.with({
                file: file
              }),
              done
            );
          });
        }

        // Just exec
        Require.exec(
          config.with({
            file: file
          }),
          done
        );
      })
      .catch(error => {

@truffle/require

Require and execute a Javascript module within a Truffle context

MIT
Latest version published 1 year ago

Package Health Score

50 / 100
Full package analysis

Popular @truffle/require functions