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-erp-yhsp

v1.3.3

Published

A scaffolding tool for creating Vue3 + Vite + Vant4 mobile projects

Readme

create-erp-yhsp

一个用于快速创建 Vue3 + Vite + Vant4 移动端项目的脚手架工具。

特性

  • 🚀 Vue 3 - 采用最新的Vue3 Composition API
  • Vite - 极速的构建工具,开发体验更佳
  • 📱 Vant 4 - 轻量、可靠的移动端组件库
  • 🗂 Vue Router - 官方路由管理器
  • 🍍 Pinia - 新一代状态管理库
  • 🎨 Sass - CSS预处理器,支持变量和混合
  • 📏 ESLint + Prettier - 代码规范和格式化
  • 📦 Axios - HTTP客户端,支持请求/响应拦截
  • 🔧 pnpm - 快速、节省磁盘空间的包管理器

使用方法

全局安装

npm install -g create-erp-yhsp

创建项目

# 创建新项目
create-erp-yhsp my-project

# 或者不指定项目名,工具会提示你输入
create-erp-yhsp

进入项目并启动

cd my-project
pnpm install
pnpm run dev

项目结构

生成的项目包含以下结构:

my-project/
├── public/
│   └── vite.svg
├── src/
│   ├── api/                 # API接口管理
│   ├── assets/             # 静态资源
│   ├── components/         # 通用组件
│   ├── router/             # 路由配置
│   ├── stores/             # 状态管理
│   ├── styles/             # 样式文件
│   ├── utils/              # 工具函数
│   ├── views/              # 页面组件
│   ├── App.vue             # 根组件
│   └── main.js             # 入口文件
├── .env                    # 环境变量
├── .env.development        # 开发环境变量
├── .env.production         # 生产环境变量
├── .gitignore              # Git忽略文件
├── .prettierrc             # Prettier配置
├── eslint.config.js        # ESLint配置
├── index.html              # HTML模板
├── package.json            # 项目配置
└── vite.config.js          # Vite配置

可用脚本

在项目目录中,你可以运行:

  • pnpm run dev - 启动开发服务器
  • pnpm run build - 构建生产版本
  • pnpm run preview - 预览生产构建
  • pnpm run lint - 运行ESLint检查并自动修复
  • pnpm run format - 格式化代码
  • pnpm run lint:check - 仅检查代码规范
  • pnpm run format:check - 仅检查代码格式

开发指南

环境变量

项目支持多环境配置:

  • .env - 所有环境的默认配置
  • .env.development - 开发环境配置
  • .env.production - 生产环境配置

路径别名

项目已配置路径别名,可以使用:

  • @ - src目录
  • @components - src/components目录
  • @views - src/views目录
  • @utils - src/utils目录
  • @stores - src/stores目录
  • @styles - src/styles目录
  • @assets - src/assets目录