ScopeLift / flexible-voting

💪🗳️ Flexible Voting – A Powerful Building Block for DAO Governance
https://flexiblevoting.com
MIT License
86 stars 8 forks source link

Ship an NPM package for Flexible Voting contracts #62

Open apbendi opened 1 year ago

apbendi commented 1 year ago

This would be primarily for those using FV with the hardhat developer framework. We'll want to include any of the latest best practices, such as typescript interface generation, etc...

mds1 commented 1 year ago

You don't necessarily need to publish an NPM package for use with hardhat, e.g. forge-std is not published in npm but is still often used with hardhat. Adding a package.json file should be sufficient—this FV repo already has one but you'll need to change the files key to look like this.

Then for the user to install it they specify the github URL in their package.json, here's an example pointing to a commit but you probably can point to a tag also.

Installing from npm is better devex but just sharing as a simpler option that also works