locklift
Version:
Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.
23 lines (22 loc) • 1.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const config_1 = require("../../config");
const build_1 = require("../steps/build");
const program = new commander_1.Command();
program
.name("build")
.description("Build contracts by using Ever Solidity compiler and TVM linker")
.option("-c, --contracts <contracts>", "Path to the contracts folder", "contracts")
.option("-b, --build <build>", "Path to the build folder", "build")
.option("-f, --force", "Force build contracts", false)
.option("--disable-include-path", "Disables including node_modules. Use this with old compiler versions", false)
.addOption(new commander_1.Option("--config <config>", "Path to the config file")
.default(async () => (0, config_1.loadConfig)("locklift.config.ts"))
.argParser(config => () => (0, config_1.loadConfig)(config)))
.action(async (options) => {
const config = await options.config();
await (0, build_1.buildStep)(config, options, options.force);
process.exit(0);
});
exports.default = program;