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

elf-ui

v0.0.5

Published

Elf, a React based component library for developers; 基于React的桌面组件库

Downloads

37

Readme

elf-ui

Elf, a React based component library for developers; 基于React的桌面组件库

npm version build status install size languages type dependencies branch license node version

stars

特点介绍

  • 组件代码全部由 Typescript 编写, 支持类型检查
  • 测试覆盖率 100%
  • 支持 国际化, 支持自定义配置
  • 最小的体积 最好的性能

与其他 UI组件库的差异

Elf 是个 很小的工具组件库

当前的需求是 放置一些工作中沉淀下来的工具组件

然后对其优化, 抽离业务代码, 使其具有通用性

很多常见的 UI组件暂时不是开发的重点

Tips

本组件库可以配合 其他 UI组件库使用, 如: AntD等等

关于提交流程

# 添加更新内容
git add .

# 编写 commit 说明, 不要使用 `git commit -m "xxx"`
git cz

# 接下来根据 提示书写更新内容

不适用的场景

  • 本组件库只支持 React, 其他框架暂不支持
  • Typescript编写的项目 (虽然可以支持, 但是很多检查, 提示功能都将失去作用)

依赖安装 (请使用 yarn 安装依赖)

# node -v
v10.7.0

# yarn -v
1.10.1

# 环境依赖
yarn global add conventional-changelog
yarn global add umi

# 初次安装会比较长时间, 请耐心等候
yarn install

TODO

  • [x] 组件库架子 搭建
  • [x] 测试 组件压缩体积
  • [x] 测试 example 安装打包后的包
  • [x] Github 库创建
  • [x] npmjs 发包
  • [x] 打包文档, 发布到 github线上
  • [x] 文档页 优化
  • [x] 文档页 美化, 添加代码着色
  • [x] 文档页 优化
  • [x] 项目 README 介绍优化
    • [x] 特点介绍
    • [x] 与其他 UI组件库的差异
    • [x] 不适用的场景
  • [x] 流程规范化 - git hook配置
    • [x] husky 功能
    • [x] lint-staged 功能
    • [x] eslint 配置 (替换 tslint)
    • [x] 强制检查 lint
    • [x] prettier 格式化
    • [x] 规范化 commit - Commitizen
  • [ ] CI 配置 - travis
  • [ ] 添加组件

组件库 开发与维护 参考文档

docz 操作文档(英文)

umi-library 操作上手文档 - 渣渣灰手摸手带你开发一个组件库

umi-library - API 相关配置