truffle-workflow-compile

2019-08-15 admin

truffle-workflow-compile是什么

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

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

truffle-workflow-compile

Core workflow logic for the truffle compile command 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))

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-72565.html

文章标题:truffle-workflow-compile

回到顶部