Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b4858d

Browse files
committedDec 1, 2020
docs: add changelog, usage
1 parent e580c85 commit 6b4858d

File tree

5 files changed

+44
-3
lines changed

5 files changed

+44
-3
lines changed
 

‎CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CHANGE LOG
2+
3+
## v1.0.0 (2020-12-01)
4+
5+
- 新增 CODING 授权;
6+
- 新增 代码仓库列表;
7+
- 新增 创建仓库;
8+
- 新增 合并请求列表;
9+
- 新增 合并请求概览以及合并/允许合并/撤销允许合并/关闭合并请求等操作;

‎docs/USAGE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## 安装
2+
3+
[coding-hbuilderx 插件下载地址](https://ext.dcloud.net.cn/plugin?name=coding-hbuilderx)
4+
5+
## 使用方法
6+
1. 在插件市场,下载安装插件;
7+
2. 在 hbuilderx 编辑器,点击菜单【视图】-【插件扩展视图】,打开`CODING 代码仓库`视图;
8+
3. 首次使用插件时,需要先登录 DCloud 账号,然后授权 CODING,以获取用户邮箱等信息;
9+
4. 授权后即可使用插件(CODING 代码仓库相关功能)。
10+
11+
注意:首次打开`CODING 代码仓库`视图时,如果页面没有渲染内容,请关掉该视图,然后重新打开即可。
12+
13+
## 插件功能
14+
- 查看代码仓库列表;
15+
- 创建代码仓库;
16+
- 查看合并请求列表;
17+
- 查看合并请求概览;
18+
- 合并请求相关操作:合并/允许合并/撤销允许合并/关闭合并请求;
19+
20+
## 界面预览
21+
### 用户授权 CODING 代码仓库
22+
![用户授权 CODING 代码仓库](https://codingcorp.coding.net/p/mo-test/d/statics/git/raw/master/2.png)
23+
24+
### 配置 CODING 服务密码
25+
![配置 CODING 服务密码](https://codingcorp.coding.net/p/mo-test/d/statics/git/raw/master/3.png)
26+
27+
### 插件功能主界面
28+
![插件功能主界面](https://codingcorp.coding.net/p/mo-test/d/statics/git/raw/master/5.png)

‎package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coding-hbuilderx",
3-
"description": "",
3+
"description": "CODING 代码仓库插件,支持查看代码仓库列表、创建代码仓库、查看合并请求列表、合并请求概览以及允许/合并/关闭等操作",
44
"displayName": "CODING 代码仓库插件",
55
"version": "1.0.0",
66
"publisher": "coding",
@@ -94,7 +94,10 @@
9494
"scripts": {
9595
"watch": "npm-run-all -p watch:*",
9696
"watch:extension": "tsc --watch -p ./src",
97-
"watch:webviews": "webpack --watch --mode development"
97+
"watch:webviews": "webpack --watch",
98+
"build": "npm-run-all -p build:*",
99+
"build:extension": "tsc -p ./src",
100+
"build:webviews": "webpack"
98101
},
99102
"husky": {
100103
"hooks": {

‎src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"target": "es6",
5-
"lib": ["es6"],
5+
"lib": ["es6", "dom"],
66
"outDir": "../out",
77
"sourceMap": false,
88
"strict": true,

‎webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const path = require('path');
22

33
module.exports = {
4+
mode: 'development',
45
entry: {
56
main: './webviews/index.tsx'
67
},

0 commit comments

Comments
 (0)
Please sign in to comment.