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

@hfyidu/uni-helper-builder

v1.0.0

Published

node v:21.7.3 npm v:10.5.0

Readme

node v:21.7.3 npm v:10.5.0

Script

调试:npm run dev 打包:npm run build

目录结构

以单条命令为例

  • domain/
    • ast: 构建所生成的代码模板
    • builders: 构建代码目录结构
    • commands: 当前命令执行流程

调试

调试过程中将该项目克隆至对应项目的根目录下

以video-frontend-qa-c为例:

  1. 在快应用项目下src同级目录中执行 git clone xxx/frontend-core-kits
  2. 在package.json的script字段中添加"code": "brc"
  3. 运行dev,找到node_modules下的@shivip/build-code,替换dist目录
  4. 执行npm run code

打包

  1. 修改webpack.config.cjs文件中mode字段为production
  2. npm run build

发布

  1. 本地终端执行npm login跳转登录shivip的npm账户
  2. 删除dist目录执行build命令打包
  3. 修改package.json中的版本号
  4. 执行npm publish access public发布

注意项

  • 多项目迭代时需及时提交代码确保各项目下当前插件保持一致
  • 发布新版本后需要将webpack.config.cjs文件中mode字段修改为development,因production模式下编译耗时较长
  • 修改完dto中的内容后,需验证当前支持类型所生成代码的准确性
  • 若需要修改生成文件或代码的命名规范可在src/_constants/configuration中调整
  • babel ast参考
  • TS ast参考