Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steamerjs/steamer-plugin-jb
alloyteam捷豹项目的一些基本配置
https://github.com/steamerjs/steamer-plugin-jb
Last synced: 2 months ago
JSON representation
alloyteam捷豹项目的一些基本配置
- Host: GitHub
- URL: https://github.com/steamerjs/steamer-plugin-jb
- Owner: steamerjs
- Created: 2017-02-14T09:35:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-02T16:34:55.000Z (over 6 years ago)
- Last Synced: 2024-08-08T20:15:48.423Z (5 months ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# steamer-plugin-jb
捷豹系统快速配置
[![NPM Version](https://img.shields.io/npm/v/steamer-plugin-jb.svg?style=flat)](https://www.npmjs.com/package/steamer-plugin-jb)
[![Travis](https://img.shields.io/travis/steamerjs/steamer-plugin-jb.svg)](https://travis-ci.org/steamerjs/steamer-plugin-jb)
[![Deps](https://img.shields.io/david/steamerjs/steamer-plugin-jb.svg)](https://david-dm.org/steamerjs/steamer-plugin-jb)
[![Coverage](https://img.shields.io/coveralls/steamerjs/steamer-plugin-jb.svg)](https://coveralls.io/github/steamerjs/steamer-plugin-jb)## 安装
以下命令全局安装 `steamerjs` 或 `steamer-plugin-jb`,使用时如遇到问题,可先参见文档[[常见问题]](https://steamerjs.github.io/docs/introduction/Steamer-QA.html),可能是没设置好 `NODE_PATH````javascript
// 必须
npm i -g steamerjsnpm i -g steamer-plugin-jb
```* 注意:本插件依赖于 `git`,因此请在全局安装 [git](https://git-scm.com/downloads)
## 使用
### 初始化配置```javascript
steamer jb
```* type
- online, jb 服务器构建
- offline, jb 本地构建### 添加 JB 部署单 ID(仅支持GIT)
```javascript
// 给当前分支添加部署id
steamer jb --add [id]// 给特定分支添加部署id
steamer jb --add [branch]=[id]// 可用 -a 简写
```示例配置,位置在项目的 `.steamer/steamer-plugin-jb.js`
```javascript
module.exports = {
"plugin": "steamer-plugin-jb",
"config": {
"git": {
"master": "R009082",
"develop": "R008348"
}
}
};
```### 根据 JB 分支和部署单 ID 进行捷豹部署(仅支持GIT)
* 注意,请务必在配置中存有该分支的部署单ID,部署单一般都以 `R` 开头,如 `R009082`,否则会报错```javascript
// 给当前分支部署
steamer jb --run// 给特定分支部署
steamer jb --run [branch]// 可用 -r 简写
```