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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hyext/cli

v3.11.21

Published

a scaffold for hyext.

Downloads

1,239

Readme

虎牙小程序命令行工具

使用文档

快速开始

安装

在项目内执行 npm install -D @hyext/cli

使用

执行 npx hyext sub-command 进行使用

命令列表

init

创建项目, 可以用过 -b 选项来指定项目用的 builder, 执行后会生成小程序demo代码. 项目根目录的 project.config.json 里包含了项目的元信息.

start

运行开发服务器, 运行后会生成小程序的入口模块/入口地址等信息, 保存在 project.config.json 指定的 outputPath 中. 将这些信息上传到开发者中心(ext.huya.com)后, 其他终端可以访问到小程序.

release

将项目打包, 保存在 project.config.json 指定的 releasePath 中.

login

登录开发者账号. 使用 -e 指定环境, 虎牙员工可以使用 -e test 登录测试环境, 其他开发者无需指定, 默认登录正式环境. 需要输入小程序开发者中心的登录授权码, 访问 ext.huya.com 选择tab "开发者信息" 即可复制登录授权码.

logout

登出账号, 清除本地登录凭证.

link

关联小程序 id, 可以通过 --id 手动指定id, 没指定则会弹出列表以供选择.

checkout

关联小程序版本, 可以通过 --ext-ver 手动指定版本, 不指定则会弹出列表以供选择, 其他选项还有:

  • -d--to-dev, 将选中的版本设置为开发版
  • -i--install, 安装选中的版本

upload

将项目打包, 上传到开发者中心并提交测试, 必须先关联小程序id以及版本号.

r2w

更新项目配置,将 APP RN 转为 H5.

  • -n--no-dep, 不强制安装依赖。
  • -f--force, 强制安装依赖, npm v16 以上需要

shaking

自动更新按需加载优化的依赖和配置.

  • -i--install, 是否自动安装依赖。

add

自动增加配置和依赖.

  • -i--install, 是否自动安装依赖。

dep的值可为:

  • bundle-analyze - 增加 bundle 分析配置和依赖。