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.
41 lines (30 loc) • 1.02 kB
text/typescript
import * as path from "path";
process.env.TS_NODE_PROJECT = path.join(__dirname, "../../tsconfig.json");
process.env.TS_CONFIG_PATHS = "true";
import { program } from "commander";
import init from "./commands/init";
import build from "./commands/build";
import test from "./commands/test";
import run from "./commands/run";
import code from "./commands/getContractCode";
import fee from "./commands/getStoraeFee";
import { commandInjector } from "../../plugins/utils";
import { tryToAttachEntryFile } from "./utils";
import clean from "./commands/clean";
const main = async () => {
global.extenders = [];
tryToAttachEntryFile();
program.addCommand(init);
program.addCommand(clean);
program.addCommand(test);
program.addCommand(build);
program.addCommand(run);
program.addCommand(code);
program.addCommand(fee);
// program.addCommand(gendoc);
program.version(require("../../package.json").version);
commandInjector(program);
program.parse(process.argv);
};
main();