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

@mcfed/components

v0.7.57

Published

@mcfed for components

Downloads

22

Readme

components

pipeline status

useage

当前版本已发布 npm 仓库(私有仓库)

  • 添加.npmrc 文件 registry=http://192.168.200.178:4873/
  • 运行命令安装包 npm install mcf-components

develop 规范要求

  • 创建新功能分支来源 master 统一采用 feature/组件英文名称 上进行代码开发,开发完成后提交 merge_request ,合并成功后owner将删除当前分支

  • 修改BUG 分支来源 master 统一采用 hotfix/已有组件英文名称 上进行代码开发,开发完成后提交 merge_request 合并成功后owner将删除当前分支

  • masterdevelop 不允许直接提交,统一采用 branch 开发后,提交merge_requestdevelop 请求合并代码审核。

  • CI 单元测试能过后才能提交代码合并请求,未通过一概不允许合并

  • 合并请求时请 清楚描述 修改内容 add : 新增XXX组件

  • 合并请求描述规范格式要求:ADD:新增XXX组件MODIFY:XXX组件增加单元测试BUGFIXED:修改 XXX 组件 YYY bug

  • 合并 master 规范:master禁止提交代码,只允许来源develop内容

  • 合并 发布版本内容 在develop分支工作

    • 修改 changelogs.md 文件 将发布描述版本内容
    • 修改 version 号 配置,防止合并到 master 后发起发布失败(已发布版本号不允许二次发布)
    • 合并将要发布的版本内容合并
    • 提交 meger_requestmastermaster合并 CI 自动发版成功

组件规范

  • 新增组件源码位于src目录下,组件采用大驼峰(UpperCamel)命名,以组件名作为目录名,如./src/FormItem/
  • 组件目录下必须具有index入口文件,入口文件必须具有default导出
  • 组建目录下必须具有style文件夹 若有需要添加样式 则在style/index.js/ts 中引入
  • 当一个组件目录下存在多个待导出组件时,采用ComponentA.ComponentB的形式导出非默认组件
  • 组件样式可使用下面的样式分包使用或直接引入dist/style.css 或 dist/style.less 中的全部样式(同antd样式用法)

使用说明

请移步至这里

样式分包使用

  • 使用 babel-plugin-import
  • 配置
 loader:'babel-loader',
 options:{
   plugins:[
          "import",{
            libraryName:'@mcf/components',
            libraryDirectory:"lib",
            camel2DashComponentName:false,
            style:true
          },"@mcf/components"
        ]
 }

test