Resolver-cli
Resolver is a CLI tool that enable developers to scaffold projects for different development purpose, tools and programming languages.
Installations
Installing resolver-cli requires that you already have Rust , and cargo installed. Use the following command to install Rust and Cargo:
|
To check whether you have Rust installed correctly, open a shell, and run the command below:
Check whether cargo is installed:
Now that you have Rust and Cargo installed, run the command below to install resolver-cli:
Usage
With resolver-cli you can create projects for different development tools and programming languages. Resolver-cli has three action commands get, scaffold, and install.
The get action is used to clone selected Diamond Standard Templates from GitHub which covers for Hardhat JavaScript, Hardhat TypeScript, and Foundry.
Diamond Standard Hardhat JavaScript
Creates a project boilerplate with Diamond Standard Hardhat JavaScript
Diamond Standard Hardhat TypeScript
Creates a project boilerplate with Diamond Standard Hardhat TypeScript
Diamond Standard Foundry
Creates a project boilerplate with Diamond Standard Foundry
The scaffold action is used to scaffold projects for different development tools and languages which includes:
- ReactJS
- ReactTs
- Hardhat
- NestJs
- Laravel
- NextJs
- Foundry
- Vue
- Vite
- Starknet Foundry
ReactJS
Creates a React project with JavaScript
ReactTS
Creates a React project with TypeScript
Hardhat
Creates a Hardhat Solidity project
NestJs
Creates a NestJS project
Laravel
Creates a Laravel PHP project
NextJS
Creates a NextJS project
Foundry
Creates a new foundry project
Vue
Creates a Vue.js project
Vite
Creates (Vanilla TypeScript, Vue, React, Preact, Lit, Svelte) project using Vite
Starknet Foundry
Creates a starknet project
The install action installs development tools like Node.js, Homebrew, Choco, Scarb, e.t.c.
-
To install node, run:
resolver-cli install node -
To install homebrew, run:
resolver-cli install brew -
To install choco, run:
resolver-cli install choco -
To install scarb, run:
resolver-cli install scarb -
To install latest version of starknet foundry, run:
resolver-cli install snfoundry latest -
To install a specific version of starknet foundry, run:
resolver-cli install snfoundry $versionName
Run resolver-cli install --help to see all supported installation tools.