freshmint
freshmint copied to clipboard
Auto-install the Flow CLI
Freshmint currently requires the Flow CLI (flow binary) to be installed in order to deploy contracts or mint NFTs.
The Flow CLI is not installed alongside Freshmint but is mentioned as a dependency in the README. This is a weak connection.
Freshmint should do one of the following:
-
Stop depending on the
flowbinary and implement transaction/script logic in JS - Automatically install the
flowbinary on installation
I'd like to go with option 2 because it allows Freshmint users to eject from Freshmint and use their project directly with the Flow CLI.
It's fairly easy to install platform-specific Go binaries in an NPM postinstall script: https://blog.xendit.engineer/how-we-repurposed-npm-to-publish-and-distribute-our-go-binaries-for-internal-cli-23981b80911b