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

@pure-org/water-template-fawkes-mobile

v1.0.0-alpha.0

Published

### 介绍

Readme

mobile-template

介绍

基于 fawkes-mobile-lib 组件库搭建的移动端业务框架。

安装

由于组件库目前只发布在公司 nexus 私服上,安装前全局设置仓库地址。

yarn/npm config set registry http://nexus.simulate.com:8081/repository/npm-group/

然后执行安装。

pnpm install

注意事项:本项目使用 npm 作为默认的依赖包管理工具,若偏向于使用 yarn,可自行选择,记得删除 package-lock.json,最好不要混用,以免产生未知的依赖冲突问题。

开发

本地开发、调试时请执行以下命令。

yarn dev
# or
npm run dev

构建

编译工程请使用以下命令。

yarn build
# or
npm run build

代码规范

本项目使用 eslint 检查代码语法和查找错误,prittier 统一代码编写风格,如是否在语句末尾添加分号,缩进空格个数等。

git 规范

为规范 git 提交代码时的说明信息,本工程使用 commitizen + cz-conventional-changelog 辅助插件,开发人员在 commit 代码时可使用以下命令:

yarn commit
# or
npm run commit

按照提示一步一步填写信息即可,提交信息时可参考下表关于类型说明。

| 类型 | 描述 | | -------- | ------------------------------------------------------ | | build | 编译相关的修改,例如发布版本、对项目构建或者依赖的改动 | | chore | 其他修改, 比如改变构建流程、或者增加依赖库、工具等 | | ci | 持续集成修改 | | docs | 文档修改 | | feat | 新特性、新功能 | | fix | 修改 bug | | perf | 优化相关,比如提升性能、体验 | | refactor | 代码重构 | | revert | 回滚到上一个版本 | | style | 代码格式修改, 注意不是 css 修改 | | test | 测试用例修改 |

git 提供了许多 hook 函数,让我们可以在不同的阶段,对代码进行不同的操作,控制提交到仓库的代码的规范性和准确性,本项目安装了 husky 工具实现操作钩子函数的功能。

提交的代码规范

需要安装本地暂存代码检查工具 lint-staged

  • pre-commit
  • 描述: 通过钩子函数,判断提交的代码是否符合规范
  • 命令:npx lint-staged

提交的信息规范

需要信息校验工具 commitlint

  • commit-msg
  • 描述: 通过钩子函数,判断 commit 信息是否符合规范
  • 命令:npx --no-install commitlint --edit $1