@daonomic/sol-merger
Merges all import files into single file.
Last updated 2 years ago by 0v1se .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @daonomic/sol-merger 
SYNC missed versions from official npm registry.

Build status

Build status

USAGE

Right now it only works with solidity files that are in node_modules or relative to your solidity file.

Simple usage:

npm i --save-dev sol-merger

Then add following line to your package.json.

{
  "scripts": {
    "build-contracts": "sol-merger './contracts/*.sol' ./build"
  },
}

Note that contracts glob should be surrounded with "

If no output file specified then output file will be created at the same directory and appended with _merged (by default), i.e. MyContract_merged.sol. You can also change this behaviour by specifying --append option:

sol-merger --append _me "./contracts/*.sol"
sol-merger -a _me "./contracts/*.sol"

You can also get help via --help command

sol-merger -h
sol-merger --help

More info about glob available at node-glob repository

Current Tags

  • 0.1.2                                ...           latest (2 years ago)

1 Versions

  • 0.1.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (6)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |