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

mofancmds

v1.1.11

Published

``` yarn add mofancmds -g mofancmds -v ```

Downloads

5

Readme

mofan-cmds

install

yarn add mofancmds -g
mofancmds -v

or

npm install mofancmds -g
mofancmds -v

batchmerge

介绍

批量合并(merge)source 分支到目标分支,当你的项目没有 devops 时的轻量方案,可以缩短你 deploy 的操作路径。

示例

mofancmds batchmerge -s source

mofancmds batchmerge -s source -t [...args]

建议

  • 只需一个命令,即可将特性分支 merge 同时 push 至环境分支(dev/test/uat), 执行成功后即可直接发布,
    mofancmds batchmerge -s feature/xxxxxx
  • 尽量不要处理生产分支(prod/master/main/prodduction 等),建议把 prod 保护好,任何人都不可以直接 push。
  • 定期清理本地分支,本地分支过多时建议直接传入目标分支参数。
  • 当 merge 存在冲突时执行会失败,且存在冲突的分支会处于 merge 中的状态,此时需要手动去处理冲突,请特别注意,避免将冲突代码合并了。

内部命令集

git checkout source
git pull
git checkout target
git pull
git merge source
git push

acommit

按照 Angular commit message 规范交互式提交 commit,并交互式询问是否批量合并至指定分支

示例

mofancmds acommit

建议

内部命令集

git add .
git commit -m "type: desc"
git checkout target
git pull
mofancmds batchmerge -s source
git push

batchcommand

介绍

批量对当前目录下的所有内部具有 package.json 文件的文件夹执行指令,只显示子目录,不显示孙目录

示例

mofancmds batchcommand -m command

注意

  • 执行删除、撤销(rm/git checkout )等危险操作时,最好先使用 git status 等命令确认一下目标文件夹的状态
  • 操作完以后,一定要去对应的文件夹确认一下。

todo

batchcommand 增加二次确认

评估频繁执行 shell 命令切换子进程是否会引起性能问题

acommit 增加交互式触发 jekins 部署

载入内部配置