Socket
Book a DemoInstallSign in
Socket

create-hardhat-foundry-app

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

create-hardhat-foundry-app

快速创建 Hardhat集成foundry 项目的 CLI 脚手架工具

npmnpm
Version
1.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Create Hardhat2集成foundry App

构建npm包

# 1. 登录 npm(首次)
npm login

# 2. 检查配置
npm whoami  # 确认登录的账户
npm config list

# 3. 构建项目
npm run build

版本管理

# 更新版本号(自动更新 package.json)
npm version patch  # 1.0.0 -> 1.0.1 (bug 修复)
npm version minor  # 1.0.0 -> 1.1.0 (新功能)
npm version major  # 1.0.0 -> 2.0.0 (破坏性更改)

# 或手动编辑 package.json 中的 version

发布

# 发布到 npm
npm publish

创建新项目

# 使用 npx (推荐)
npx create-hardhat-foundry-app test-hardhat-foundry-app

# 使用 npm
npm create hardhat-foundry-app test-hardhat-foundry-app

# 使用 yarn
yarn create hardhat-foundry-app test-hardhat-foundry-app

本地创建

node evm-hardhat-cli/bin/cli.js test-hardhat-foundry-app --package-manager npm

项目创建后

cd test-hardhat-foundry-app
npm run compile  # 编译合约
npm test         # 运行测试
npm run deploy   # 部署合约

Keywords

hardhat

FAQs

Package last updated on 24 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts