freshmint v0.5.0
Freshmint CLI
freshmint is the main entrypoint for developers using Freshmint.
It is a CLI tool that provides commands to generate new NFT projects, deploy contracts, mint NFTs and manage live drops.
Development
To develop this package, start by installing all dependencies from the root of this repository:
npm installNext, build all packages in watch mode:
This ensures that
@freshmint/coreis also up to date, whichfreshmintdepends on.
# Keep this process running in your terminal!
npm run devCreate a link to your development build
Use npm link to create a global symlink to the fresh command:
# Run this from the packages/freshmint directory
cd packages/freshmint
npm linkYou can now execute the fresh command on your system:
# Start a new test project to use during development
fresh start test-projectPackage Structure
- index.ts - the main entrypoint for the
freshcommand. - commands - one file for each available CLI command. All new commands should go here.
- mint - code for minting NFTs, parsing metadata and pinning assets to IPFS.
- flow - a wrapper around the Flow CLI for executing Cadence transactions and scripts.
- generate - code and templates for generating a Freshmint project.
- devServer - a lightweight dev server that runs the Flow Emulator and FCL Dev Wallet.
Key Dependencies
- @freshmint/core supplies:
- All Cadence templates for contracts, transactions and scripts.
- Logic for constructing metadata schemas, parsing and hashing metadata values.
- commander is the framework for creating commands and parsing CLI arguments.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago