truffle-external-compiledeprecated

Wrapper to compile Truffle contracts with arbitrary shell command

Usage no npm install needed!

<script type="module">
  import truffleExternalCompile from 'https://cdn.skypack.dev/truffle-external-compile';
</script>

README

truffle-external-compile

Package to enable Truffle to run arbitrary commands as part of compilation.

Configuration

In your Truffle config (truffle-config.js):

module.exports = {
  compilers: {
    external: {
      command: "<compilation-command>",
      targets: [{
        path: "<relative/globbed/path/to/outputs/*.output>",
        command: "<artifact-generation-command>"
      }]
    }
  }
}