UNPKG

harsta

Version:

Harsta is a contract development tool based on Hardhat, designed to streamline the development, testing, and referencing of contracts, addresses, ABIs, and contract instances.

26 lines (24 loc) 705 B
import type { Argv } from 'yargs' import features, { environment } from '../features' export function registerCompileCommand(cli: Argv) { cli.command( 'compile', 'Compile and output the dist directory', args => args .option('output', { describe: 'output directory, default output to @harsta/client, if not installed, output dist', alias: 'o', type: 'string', }) .option('clean', { describe: 'Clears the cache and deletes all artifacts', alias: 'c', type: 'boolean', }) .help(), async (args) => { const env = environment.createEnvironment() await features.compiler.compile(env, args) }, ) }