truffle-workflow-compile

Core workflow behavior for truffle compilecommand

truffle-workflow-compile

Core workflow logic for the truffle compilecommand behavior

install

$ npm install truffle-workflow-compile

Usage

const Contracts = require("truffle-workflow-compile");

// expected config object
const config = {
  contracts_directory: "/users/myPath/to/contracts", // dir where contracts are located
  contracts_build_directory: "/users/myPath/to/buildDir" // dir where contract artifacts will be saved
};

// compiles contracts found in contracts_directory,
// saves them in contracts_build_directory
Contracts.compile(config)
  .then(() => console.log("Compilation complete!"))
  .catch(e => console.error(e))

HomePage

https://github.com/trufflesuite/truffle/tree/master/packages/truffle-workflow-compile#readme

Repository

https://github.com/trufflesuite/truffle/tree/master/packages/truffle-workflow-compile


上一篇:truffle-external-compile
下一篇:vue element-ui table组件动态生成表头和数据并修改单元格格式 父子组件通信

相关推荐

官方社区

扫码加入 JavaScript 社区