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
- Host: GitHub
- URL: https://github.com/cpuchain/hh-flatten
- Owner: cpuchain
- License: mit
- Created: 2025-02-19T08:05:04.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-27T08:51:46.000Z (3 months ago)
- Last Synced: 2025-03-25T07:22:24.158Z (about 2 months ago)
- Topics: hardhat, hardhat-config, hardhat-plugin, hardhat-tasks, solidity
- Language: TypeScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```