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

rcm-mobile

v2.0.1

Published

第二版 React 移动端组件库

Downloads

53

Readme

rcm-mobile

轻松构建属于自己内部团队的组件库,配套文档和案例生成器。

使用文档

查看文档说明

命令说明

|npm run <script>|说明| |------------------|---| |dev|开发服务,匹配 example/index.tsx 进行开发&测试组件| |start|文档服务| |build:es|打包模块组件| |build:lib|打包整个组件| |build:demo|构建example的案例内容至demo文件夹| |build:mobile|构建手机演示案例内容至site文件夹| |build:doc|构建最终的文档至site文件夹| |deploy|最终生产构建,打包es与build| |bundle|依赖分析工具|

开发指南

创建组件

创建新页面:

# 首字母大写命名的组件名
# 如 `digo create Button` & `digo create ListItem`
digo create <ComponentName>

会在 components/ 下新增一个组件模版

开发的一般流程

  1. 生成一个组件模版:digo create <ComponentName>
  2. 通过example/index.jsx引用测试开发该组件的 Example.jsx
  3. npm run dev 开启开发服务,进行开发测试。
  4. npm start 开启文档服务,编写扩展 components/<ComponentName>/Readme.md 文档说明。
  5. 所有测试通过后,验收发布。

文档开发指南

md引用资源

所有Readme.md文件内的代码段如需引用外部资源,可通过/xx来访问styleguide文件夹下的文件

编写文档

注意事项

样式篇

  • 编写样式时,切忌修改全局性的 dom 样式,避免他人引用组件而影响他自身的样式。
  • 尽量都通过class赋值的形式修改样式。
  • 所有组件的class都以x-<class>命名
  • 所有基础样式的值,请通过 scss 变量赋值,添加可配置性。(文件所在 components/style/common/variables.scss