Skip to content

seven3s/gotag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotag 指定文件夹打tag至git仓库

GitHub issues GitHub forks GitHub stars GitHub license

安装使用


1. 全局安装

$ npm install gotag -g

2. 局部安装

$ npm install gotag -S

配置


1. package.json 中配置
"disTag": {
    "type": "git",
    "repo": "https://github.com/huarxia/blog.git",
    "dir": "static",
    "user": "huarxia", // 选填
    "email": "huaxia@huar.love"  // 选填
}

2. fix 瓦力构建系统更新不到tag

必须新建一个分支,分支名起为 disTag 中配置的 dirvalue

3. 参数

  • type 非必填 只是标明是git类型

  • repo 必填 远程git仓库

  • dir 非必填 需要打tag的目录 建议填写,因为该工具就是解决特殊打tag问题,不填写会默认将当前所有文件进行tag

命令操作方法


1. 全局安装使用命令

gotag -t xxx -m xxx

其中:

  • -t xxxxxx 代表 tag 名称
  • -m xxxxxx 代表 tag 注释

-t -m 是必须参数

2. 局部安装使用命令

// package.json
"scripts": {
    "tag": "gotag"
}

当前项目根路径中

$ npm run tag -- -t xxx -m xxx

About

将dist build目录通过打tag的方式上线😂

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published