
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@hyext/cli
Advanced tools
在项目内执行 npm install -D @hyext/cli
执行 npx hyext sub-command 进行使用
创建项目, 可以用过 -b 选项来指定项目用的 builder, 执行后会生成小程序demo代码. 项目根目录的
project.config.json 里包含了项目的元信息.
运行开发服务器, 运行后会生成小程序的入口模块/入口地址等信息, 保存在 project.config.json 指定的 outputPath 中. 将这些信息上传到开发者中心(ext.huya.com)后, 其他终端可以访问到小程序.
将项目打包, 保存在 project.config.json 指定的 releasePath 中.
登录开发者账号. 使用 -e 指定环境, 虎牙员工可以使用 -e test 登录测试环境, 其他开发者无需指定,
默认登录正式环境. 需要输入小程序开发者中心的登录授权码, 访问 ext.huya.com 选择tab "开发者信息"
即可复制登录授权码.
登出账号, 清除本地登录凭证.
关联小程序 id, 可以通过 --id 手动指定id, 没指定则会弹出列表以供选择.
关联小程序版本, 可以通过 --ext-ver 手动指定版本, 不指定则会弹出列表以供选择, 其他选项还有:
-d 或 --to-dev, 将选中的版本设置为开发版-i 或 --install, 安装选中的版本将项目打包, 上传到开发者中心并提交测试, 必须先关联小程序id以及版本号.
更新项目配置,将 APP RN 转为 H5.
-n 或 --no-dep, 不强制安装依赖。-f 或 --force, 强制安装依赖, npm v16 以上需要自动更新按需加载优化的依赖和配置.
-i 或 --install, 是否自动安装依赖。自动增加配置和依赖.
-i 或 --install, 是否自动安装依赖。dep的值可为:
FAQs
a scaffold for hyext.
We found that @hyext/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.