Socket
Book a DemoInstallSign in
Socket

@meemo/biu

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meemo/biu

Biu is a script tool library for quick instructions.

0.8.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

biu

Biu 是一个快速指令的脚本工具库,该工具集合了一些常用的构建指令,让你可以体验到“Biu 的一下就搞定了”的快感。

yarn global add @meemo/biu
# Or
npm i -g @meemo/biu

获取指令帮助信息

你可以通过 biu -h 获取 biu 工具目前支持的所有脚本命令。
你可以通过 biu help [command] 获取对应指令的帮助信息。

提交指令

你可以使用 biu commit|cm <message> [options] 指令提交符合规范的 git message 信息。具体用法如下:

biu commit '新增 Commit 指令' --feat 'commit'
# Or
biu cm '修复 bug' -x

注意:该指令不会将你的代码同步推送到远端仓库,本地修改内容的推送需要手动操作。

提交类型

提交类型别名描述
featf添加新功能
fixx错误修复
styles样式修改、格式化等
refactorr代码重构相关
perfp性能优化相关
testt测试相关
docsd文档相关
mergemg分支合并
revertrv分支还原
buildb项目构建相关
chorec与构建配置相关
othero其他修改

懒人模式

懒人模式可以让你以交互模式进行信息提交,具体用法如下:

biu cm

gitflow 工作流指令

你可以使用 biu gitflow|gf <init|start|finish> [options] 指令来创建标准的 gitflow 工作流。具体用法如下:

biu gitflow start --feature demo
# Or
biu gf start -f demo

工作流类型

类型别名描述
featuref新功能开发
releaser版本开发
hotfixx错误修复

gitflow 工作流

gitflow 工作流

参考文档:git-flow 的工作流程

实现原理

1、新功能开发

开始新功能开发 biu gf start -f demo,等同于以下操作流程:

git checkout develop
git checkout -b feature/demo

完成新功能开发 biu gf finish -f demo,等同于以下操作流程:

git checkout develop
git merge feature/demo
git push origin develop
git branch -d feature/demo

2、版本发布

创建新版本 biu gf start -r 1.2.0,等同于以下操作流程:

git checkout develop
git checkout -b release/1.2.0

完成新版本发布 biu gf finish -r 1.2.0,等同于以下操作流程:

git checkout develop
git merge release/1.2.0
git push origin develop
git checkout master
git merge release/1.2.0
git push origin master
git tag v1.2.0 -m 'release 1.2.0'
git push origin v1.2.0
git branch -d release/1.2.0

3、错误修复

开始新的错误修复 biu gf start -x fix-style,等同于以下操作流程:

git checkout master
git checkout -b hotfix/fix-style

完成错误修复 biu gf finish -x demo,等同于以下操作流程:

git checkout master
git merge hotfix/fix-style
git push origin master
git checkout develop
git merge hotfix/fix-style
git push origin develop
git tag fix-style -m 'hotfix fix-style'
git push origin fix-style
git branch -d hotfix/fix-style

懒人模式

懒人模式可以让你以交互模式进行 gitflow 工作流操作,具体用法如下:

biu gf
# Or
biu gf start

FAQs

Package last updated on 09 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.