1.0.0-alpha.33 • Published 4 years ago
@youbox/workflow-compile v1.0.0-alpha.33
@youbox/workflow-compile
Core workflow logic for the truffle compile
command behavior
install
$ npm install @youbox/workflow-compile
Usage
const Contracts = require("@youbox/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))
1.0.0-alpha.33
4 years ago
1.0.0-alpha.10
4 years ago
1.0.0-alpha.9
4 years ago
1.0.0-alpha.8
4 years ago
1.0.0-alpha.7
4 years ago
1.0.0-alpha.6
4 years ago