https://github.com/ejwessel/truffle-flatten
https://github.com/ejwessel/truffle-flatten
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ejwessel/truffle-flatten
- Owner: ejwessel
- Created: 2019-11-01T17:22:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T07:33:40.000Z (over 2 years ago)
- Last Synced: 2025-01-27T17:17:23.908Z (6 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# truffle-flatten
Thanks to [Nomic Labs](https://github.com/nomiclabs/truffle-flattener) for the heavy lifting.
This truffle plugin does very little in addition to what the base tool Nomic Labs has provided.
- It extracts all pragmas to the top of the flattened file
- the highest pragma version is selected
- saves the flattened source into `flatten/Flattened.sol`## Installation
1. Install the plugin with npm
```
npm install truffle-flatten
```
1. Add the plugin to your `truffle.js` or `truffle-config.js` file
```js
module.exports = {
/* ... rest of truffle-config */plugins: [
'truffle-flatten'
]
}
```## Usage
```
truffle run flatten
```