truffle-workflow-compile

2019-08-15

truffle-workflow-compile是什么

什么是truffle-workflow-compile,Core workflow behavior for truffle compilecommand

truffle-workflow-compile使用教程帮助文档

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))

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

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部