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

create-nx-template

v1.2.78

Published

一个快速创建现代前端项目的模板生成工具,支持从多种流行框架和库的模板中选择(包括React、Vite、Electron、Nx工作区等),提供简单的交互式界面和命令行参数支持,帮助开发者快速初始化新项目或管理项目版本。

Readme

create-nx-template

一个现代化的前端项目模板生成工具,旨在简化项目初始化流程,提供丰富的模板选择和灵活的配置选项。

✨ 特性

  • 🚀 极速创建:通过简洁命令快速生成各类前端项目
  • 📋 模板丰富:内置多种流行框架模板,包括React、Vite、Electron和Nx工作区等
  • 💻 双重交互:支持命令行参数直接配置或交互式问答配置
  • 🔄 版本管理:内置版本发布功能,便于项目维护
  • 📦 智能依赖管理:自动处理项目依赖,确保构建环境正确配置
  • 🔧 灵活配置:支持自定义输出目录和入口文件

📦 安装与使用

作为创建工具,您无需全局安装,直接通过包管理器的create命令使用:

# 使用pnpm(推荐)
pnpm create nx-template

# 使用npm
npm create nx-template

# 使用yarn
yarn create nx-template

🔨 使用方法

创建新项目

直接指定项目名称

# 创建名为my-app的项目
pnpm create nx-template my-app

交互式创建

不提供项目名称时,工具将进入交互式模式:

pnpm create nx-template
# 系统将引导您完成项目名称和模板选择

高级命令

发布新版本

项目维护者可使用以下命令发布新版本:

# 完整命令
pnpm create nx-template -- --release

# 简写命令
pnpm create nx-template -- -r

📋 支持的模板

  • React 官方仓库:React官方推荐的项目结构
  • Jest Mock Extended:增强Jest测试能力的模板
  • Vite 仓库:基于Vite的现代化构建工具模板
  • Electron 快速启动模板:桌面应用开发模板
  • Nx 工作区模板:企业级Monorepo工作区模板

⚙️ 系统要求

  • Node.js >= 18
  • 任一支持的包管理器:pnpm、npm或yarn

🧩 核心依赖

  • degit:从Git仓库高效克隆模板
  • prompts:提供友好的交互式命令行界面
  • tsup:零配置TypeScript构建工具
  • esbuild:极速JavaScript/TypeScript打包工具

🚀 开发指南

如果您想参与项目开发:

# 克隆仓库
git clone https://github.com/see7788/create-nx-template.git
cd create-nx-template

# 安装依赖
pnpm install

# 构建项目
pnpm run build

# 本地测试
pnpm start

📄 许可证

本项目采用MIT许可证 - 详见 LICENSE 文件

🐛 问题反馈

如有任何问题或建议,请在 GitHub Issues 提交反馈。我们将尽快回复并解决您的问题。

🤝 贡献

欢迎提交Pull Request来改进本项目。请确保在提交前进行适当的测试。

如有任何问题或建议,请在 GitHub Issues 中提交。