npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gate-evm-hardhat-foundry

v2.0.8

Published

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

Readme

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

脚手架使用指南

  1. 拉取 bitbucket 项目仓库到本地(可选)
  2. 在本地全局安装(根目录下)(可选)
npm install
npm link 或者 npm i -g ./
  1. 后续创建新项目时使用指定框架
# 使用 npx (推荐)
npx gate-evm-hardhat-foundry test-hardhat-foundry-app

# 使用 npm
npm gate-evm-hardhat-foundry test-hardhat-foundry-app

# 使用 yarn
yarn gate-evm-hardhat-foundry test-hardhat-foundry-app

本地创建

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

升级现有项目

当模板有新功能更新时,可以使用 upgrade 命令将现有项目升级到最新版本:

# 在项目目录下运行
cd your-project
npx gate-evm-hardhat-foundry upgrade

# 或使用本地开发版本
node /path/to/evm-hardhat-cli/bin/cli.js upgrade

upgrade 命令选项

| 选项 | 简写 | 说明 | |------|------|------| | --force | -f | 跳过确认直接升级 | | --skip-install | | 跳过依赖安装 | | --package-manager <pm> | -p | 指定包管理器 (npm/yarn/pnpm) |

升级内容

upgrade 命令会自动更新以下内容:

  • patches/ - 补丁文件(包含 CREATE2、Multicall 等新功能)
  • README.md - 项目文档

升级流程

  1. 检测当前目录是否是有效的 Hardhat 项目
  2. 对比项目文件与最新模板的差异
  3. 显示新增/更新的文件列表
  4. 确认后复制新文件
  5. 可选更新 package.json 中的依赖版本
  6. 可选重新安装依赖并应用补丁

示例

# 交互式升级(推荐)
npx gate-evm-hardhat-foundry upgrade

# 跳过确认直接升级
npx gate-evm-hardhat-foundry upgrade --force

# 升级但不重新安装依赖
npx gate-evm-hardhat-foundry upgrade --skip-install