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

climb-ui-component

v0.1.2

Published

攀登计划前端 React 组件库

Downloads

6

Readme


name: README route: /readme

查看版本:https://mirrors.tencent.com/#/private/npm/detail?repo_id=537&project_name=%40tencent%2Fsr-ui-component

安装

在工程目录添加 .npmrc

registry=https://mirrors.tencent.com/npm/

或者

npm config set registry https://mirrors.tencent.com/npm/

开始使用

npm i --save @tencent/tea-component @tencent/sr-ui-component @tencent/tea-sr

引用皮肤

文档:http://tea-sr.pages.oa.com/

组件库 0.2.x 版本之后,tea-sr 必须升级到 1.1.x

// 皮肤样式
@import '~@tencent/@tencent/tea-sr/css/tea-sr.css';

贡献代码

环境

  1. 确保内网环境可访问:http://tnpm.oa.com/
  2. 项目根目录 npm i;
  3. 执行:npm run dev,访问 http://localhost:3000
  4. 使用 VS code,并安装 ESLint 和 Prettier 扩展

目录规范

  1. 统一放在 src/componets 目录下
  2. 示例替换用 @loadable/component 异步加载,参考各个组件的 entry.tsx 文件。(tea-component 目前还不支持 SSR 渲染,docz 示例需要用到 SSR 渲染)
  3. 图片目录 src/assets/ 目录下

新增图标

  1. SVG 文件放在 src/assets/icon 目录下;
  2. 执行:npm run build:svg
  3. src/components/Icon/Icon.tsx 新增图标文件;

本地联调

  1. 执行 npm run build 或者 npm run watch;
  2. 执行 npm link;
  3. 在使用组件的工程里,执行 npm link @tencent/climb-ui-component;

发布组件文档到站点

  1. 创建开发分支,例如:feature/menu;
  2. 开发完,提交 MR 合入到 master 分支, https://git.code.oa.com/tencent_retail/sr-ui-component/merge_requests/new
  3. 几分钟后自动部署到 http://sr-component.pages.oa.com/

发布组件到 http://tnpm.oa.com/

  1. 执行流水线:http://devops.oa.com/console/pipeline/umafe/p-1c82c79480954ecaa68fec655b02d74d/history

注意:如果 ESLint不工作,请尝试:

  1. 删除 node_modules 目录
  2. 卸载全局的 eslintprettiernpm uninstall eslint prettier -g
  3. 单独使用 npm i 安装一次

参考:

  1. https://www.npmjs.com/package/@umijs/fabric