truffle-workflow-compile

js deprecated
Core workflow behavior for `truffle compile` command
Version 2.1.3 License MIT
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 2.2.0-ens-events.1
- 2.0.24-ens.0
- 2.0.16-beta.1
- 2.0.16-beta.0
- 2.0.16-alpha.1
- 2.0.16-alpha.0
- 2.0.0-beta.1
- 2.0.0-beta.0
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))