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

@xiaoyu-design/rn-cli

v2.0.1

Published

React Native CLI module for @xiaoyu-design

Readme

@xiaoyu-design/rn-cli

React Native CLI 工具 - 用于打包 RN CLI 和 Expo 的 bundle 包

安装

npm install -g @xiaoyu-design/rn-cli
# 或
yarn global add @xiaoyu-design/rn-cli

使用方法

打包 React Native 应用

# 基本用法 - 打包 Android 应用
xy-rn-cli rncli --platform android

# 打包 iOS 应用
xy-rn-cli rncli --platform ios

# 打包为开发模式
xy-rn-cli rncli --platform android --output ./build --dev true

# 打包并禁用压缩
xy-rn-cli rncli --platform android --output ./build --minify false

# 指定入口文件
xy-rn-cli rncli --platform android --output ./build --entry-file app/index.js

# 详细输出
xy-rn-cli rncli --platform android --output ./build --verbose

打包 Expo 应用

# 打包 Expo Web 应用
xy-rn-cli rncli --platform web --enable-exp --output ./web-build

# 打包 Expo 原生应用
xy-rn-cli rncli --platform android --enable-exp --output ./expo-build
xy-rn-cli rncli --platform ios --enable-exp --output ./expo-build

选项

  • --platform, -pl: 目标平台 (android, ios, web) [默认: "android"]
  • --output, -o: 输出目录 [默认: "./dist"]
  • --entry-file, -e: 入口文件 [默认: "index.js"]
  • --dev: 开发模式 [默认: false]
  • --minify: 是否压缩 [默认: true]
  • --bundle-output: bundle 输出路径
  • --assets-dest: 资源文件输出路径
  • --config-file: 配置文件路径
  • --verbose: 详细输出 [默认: false]
  • --enable-exp: 启用 Expo 模式 [默认: false]

功能

  • 支持 React Native 应用打包 (Android/iOS)
  • 支持 Expo 应用打包 (Web/Android/iOS)
  • 支持开发模式和生产模式
  • 支持自定义输出目录和入口文件
  • 支持详细的构建日志输出
  • 支持 Metro 配置文件指定
  • 自动创建输出目录
  • 文件大小统计
  • 错误处理和用户友好的提示信息

打包目录结构

./rn-update-build/
├── android/
│   ├── history/
│   │   └── v{YYYYMMDDHHMM}/
│   │       ├── index.bundlejs
│   │       └── assets/
│   │           └── ...
│   └── hot.zip                 <- 从history目录下的时间戳ZIP文件复制而来
└── ios/
    ├── history/
    │   └── v{YYYYMMDDHHMM}/
    │       ├── index.bundlejs
    │       └── assets/
    │           └── ...
    └── hot.zip                 <- 从history目录下的时间戳ZIP文件复制而来