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

lcx-ui

v1.1.0

Published

一款用于自用的学习性 UI 框架

Downloads

46

Readme

前端 UI 库

基于 element-ui 二次封装的 UI 组件库~

使用

项目采用 monorepo 的代码管理方式。基于 lerna 查看使用进行模块管理,可以进行单个或多个模块进行导出使用。

推荐使用 yarn 安装而不是 npm 来安装。

# 安装 yarn 
npm install -g yarn
# OR 下载安装
https://classic.yarnpkg.com/zh-Hans/

# 安装 
npm run bootstrap

# 启动示例项目
npm run serve

# 启动文档项目
npm run docs:dev

# 使用构建,打包会生成 lib 文件,将生成的 js 文件直接用 script 引入即可
npm run release

# 使用构建打包主模块
npm run build:lib

# 使用构建打包子模块,用于按需引入,需配合 babel-plugin-component 插件使用
npm run build:esm

# 使用构建打包主题
npm run build:theme

# 发布新版本
lerna publish

提交规范

示例代码

git commit -m "feat: 添加 git hooks 检测"

# OR

git commit -m "refactor(axios): 重构 axios 配置"

按照一定的规范写 commit messages,可以在git push 代码之前(工具/脚本自动)检测 commit messages。规范提交信息。

commit message 包含三个部分,header, body和footer,其中header必须有,body和footer可以按情况省略。

示例 type 字段 => 具体可以查看目录 scripts/verifyCommit.js 的正则部分

feat:新功能(feature)
fix:修补bug
docs:文档(documentation)
style: 格式(不影响代码运行的变动)
refactor:重构(即不是新增功能,也不是修改bug的代码变动)
test:增加测试
chore:构建过程或辅助工具的变动

如果你遇到提交问题无法解决,可以使用 -n OR --no-verify 跳过检测(严重不推荐)

git commit -n -m "跳过 git hooks 检测"

目录结构

docs            # 项目文档,组件维护说明文档。
packages        # 组件存放目录,基于 monorepo 的目录管理结构
 |--...         # 其他通用组件
 |--shared      # 共享文件
 |--theme-chalk # 样式文件
 |--index.ts    # 导出文件 - 后期组件拆分独立仓库时可以删除
src             # 前端开发阶段目录,用于编写组件例子
lib             # 编译输出目录
scripts         # 脚本文件

TODO

  • [x] 搭建基础框架
  • [x] 引入基础插件、ui 组件库
  • [x] 实现组件库的按需加载
  • [ ] 引入请求库,封装请求拦截器
  • [x] 模块化导出实现 - rollup
  • [ ] 导出完整 sdk 包
  • [x] 分离 css 模块,单独打包