truffle-conflux-workflow-compile
Core workflow behavior for `truffle compile` command
Last updated a year ago by liuis .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install truffle-conflux-workflow-compile 
SYNC missed versions from official npm registry.

truffle-conflux-workflow-compile

Core workflow logic for the truffle compile command behavior

install

$ npm install truffle-conflux-workflow-compile

Usage

const Contracts = require("truffle-conflux-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))

Current Tags

  • 0.0.2-alpha.0                                ...           latest (a year ago)

1 Versions

  • 0.0.2-alpha.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 2
Dependencies (9)
Dev Dependencies (3)

Copyright 2014 - 2017 © taobao.org |