An open API service indexing awesome lists of open source software.

https://github.com/cpuchain/hh-flatten

Extending hardhat flatten task to flatten all files
https://github.com/cpuchain/hh-flatten

hardhat hardhat-config hardhat-plugin hardhat-tasks solidity

Last synced: about 1 month ago
JSON representation

Extending hardhat flatten task to flatten all files

Awesome Lists containing this project

README

        

# hh-flatten

Extending hardhat flatten task to flatten all files

### Install

```bash
$ yarn add -D hh-flatten
```

### Usage

Add the following line on `hardhat.config.ts`

```ts
import 'hh-flatten';
```

or on `hardhat.config.js`

```js
require('hh-flatten');
```

Run extended flatten task with the following ( which would flatten all files under contracts and store it under flatten in recursive behavior )

```bash
$ npx hardhat flatten:all
```