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 🙏

© 2025 – Pkg Stats / Ryan Hefner

lotus-scaffold-micro-antd

v0.1.2

Published

### 我们用fetch + rebase的方式同步代码

Downloads

3

Readme

代码提交流程

我们用fetch + rebase的方式同步代码

步骤

  1. 将项目fork到自己的名下

  2. 添加项目的源仓库, 并查看是否添加成功

git remote add origin http://git.jc/你的用户名/项目名称.git
git remote add upstream http://git.jc/项目组/项目名称.git
git remote -v
  1. 设置个人信息,
git config --global user.name "你的名字"
git config --global user.email "你的邮箱"
  1. 新建特性分支
 git checkout -b feature-版本号-特性分支名字/自己的名字
 便于后续快速查找对应的分支
 举例
 // git checkout -b feature-v0.1-init
  1. 本地开发完成第一个功能(或创建了需要的文件) 把本地分支推送到自己远程的特性分支(后续开发需要 fetch/rebase)
举例
git push origin feature-v0.1-init
  1. 进入到 gitlab 项目仓库,点击 Merge Request , 然后点击 New Merge Request , 从 Source branch 选择自己名下正在开发的分支, 从 Target branch 选择想要合并的分支(通常为 develop),点击 Compare branches and continue, 确认无误后点击提交
  2. 后续开发要经常从 develop 分支获取最新代码, 合并到本地
git fetch upstream develop
git rebase upstream/develop
  1. 合并过程中如果遇到冲突,先解决冲突,然后
git add . (git add .,不要commit)
git rebase --continue

重复步骤5,直到解决全部冲突

  1. 将没有冲突的代码 push 到自己远程特性分支
举例
git push origin feature-v0.1-init

引用常用资源

现在在webpack配置了alias方便引用资源,举个例子当你在某个视图组件中需要引用公共组件;不管你与那个组件的相对路径是怎样的,可以直接import AddButton from 'Components/AddButton' 目前可以这样引用的有:

  • Src: 对应src目录
  • Util: 对应'src/utils/'
  • Components: 对应'src/components/',
  • Assets: 对应'src/assets/',
  • Constant: 对应'src/constant/'