GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add doc for how-to-edit-doc, and some minor doc fix · khoh12/lowcode-engine@f49c629

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs
    • docs/participate
      • config.md
      • doc.md
      • flow.md
      • index.md
      • prepare.md
    • package.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/docs/participate/config.md‎

Copy file name to clipboardExpand all lines: docs/docs/participate/config.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 引擎的工程化配置
2+
title: 工程化配置
33
sidebar_position: 3
44
---
55
目前引擎体系共包含 3 个 js 文件,即:
Collapse file

‎docs/docs/participate/doc.md‎

Copy file name to clipboard
+17Lines changed: 17 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: 官网文档协作流程
3+
sidebar_position: 3
4+
---
5+
6+
## 基本原则
7+
8+
### 维护方式
9+
10+
- 官方文档通过 github 管理文档源, 官网文档与[主仓库 develop 分支](https://github.com/alibaba/lowcode-engine/tree/develop/docs)保持同步。
11+
- 点击每篇文档下发的 `编辑此页` 可直接定位到 github 中位置。
12+
- 欢迎 PR, 文档 PR 也会作为贡献者贡献,会用于贡献度统计。
13+
- 文档同步到官方网站由官方人员进行操作,如有需要可以通过 issue 或 贡献者群与相关人员沟通。
14+
15+
### PR 方式
16+
17+
- 操作与代码贡献一致,指向 develop 分支。
Collapse file

‎docs/docs/participate/flow.md‎

Copy file name to clipboard
+107-50Lines changed: 107 additions & 50 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
title: 关于引擎的研发协作流程
2+
title: 研发协作流程
33
sidebar_position: 2
44
---
55
## 代码风格
66
引擎项目配置了 eslint 和 stylelint,在每次 git commit 前都会检查代码风格,假如有报错,请修改后再提交。(**严禁 -n 提交,-n 也逃脱不了 github workflow 的 lint 检查,放弃吧,骚年~**)
77

88
## 测试机制
99
每次提交代码前,务必本地跑一次单元测试,通过后再提交 MR。
10-
假如涉及新的功能,需要**补充相应的单元测试,**目前引擎核心模块的单测覆盖率都在 80%+,假如降低了覆盖率,将会不予以通过。
10+
11+
假如涉及新的功能,需要**补充相应的单元测试**,目前引擎核心模块的单测覆盖率都在 80%+,假如降低了覆盖率,将会不予以通过。
1112

1213
跑单测流程:
1314

@@ -19,78 +20,134 @@ sidebar_position: 2
1920

2021
1. commit message 格式遵循 [ConvensionalCommits](https://www.conventionalcommits.org/en/v1.0.0/#summary)
2122
![image.png](https://cdn.nlark.com/yuque/0/2022/png/110793/1645066644352-4de1c64c-bff6-4482-90d1-1fb610aa91f2.png#averageHue=%23eceef0&clientId=u6dcee4f0-35df-4&crop=0&crop=0&crop=1&crop=1&height=297&id=CfpQy&margin=%5Bobject%20Object%5D&name=image.png&originHeight=594&originWidth=2070&originalType=binary&ratio=1&rotation=0&showTitle=false&size=341605&status=done&style=none&taskId=u4499b752-5e24-42f6-9186-280fd5a51aa&title=&width=1035)
22-
2. 请按照一个 bugfix / feature 对应一个 commit,假如不是,请 rebase 后再提交 MR,不要一堆无用的、试验性的 commit
23+
2. 请按照一个 bugfix / feature 对应一个 commit,假如不是,请 rebase 后再提交 MR,不要一堆无用的、试验性的 commit。
2324

24-
好处:从引擎的整体 commit 历史来看,会很清晰,**每个 commit 完成一件确定的事,changelog 也能自动生成。**另外,假如因为某个 commit 导致了 bug,也很容易通过 rebase drop 等方式快速修复。
25-
## 引擎发布机制
26-
日常迭代先从 develop 拉分支,然后自测、单测通过后,提交 MR 到 develop 分支,由发布负责人基于 develop 拉 release/1.0.z 分支~
25+
好处:从引擎的整体 commit 历史来看,会很清晰,**每个 commit 完成一件确定的事,changelog 也能自动生成**。另外,假如因为某个 commit 导致了 bug,也很容易通过 rebase drop 等方式快速修复。
2726

28-
### 分支用途
27+
## 分支用途
2928

3029
- main 分支,最稳定的分支,跟 npm latest 包的内容保持一致
3130
- develop 分支,开发分支,拥有最新的、已经验证过的 feature / bugfix,Pull Request 的**目标合入分支**
3231
- release 分支
3332
- 正式发布分支,命名规则为 release/x.y.z,一般从 develop 拉出来进行发布,x.y.z 为待发布的版本号
3433
- beta 发布分支,命名规则为 release/x.y.z-beta(\.\d+)?,可以快速验证修改,发布 npm beta 版本。
34+
3535
验证通过后,因为 beta 发布分支上会存在无用的 commit(比如 lerna 修改 package.json 这种),所以不直接 PR 到 develop,而是从 develop 拉分支,从 beta 发布分支 cherry pick 有用的 commit 到新分支,然后 PR 到 develop。
3636

37+
## 引擎发布机制
38+
39+
日常迭代先从 develop 拉分支,然后自测、单测通过后,提交 PR 到 develop 分支,由发布负责人基于 develop 拉 release/1.0.z 分支~
40+
41+
### 版本规划
42+
43+
> 此处是理想节奏,实际情况可能会有调整
44+
45+
- 日常迭代 2 周,一般月中或月底
46+
- 特殊情况紧急迭代随时发
47+
- 大Feature迭代,每年 2 - 4 次
48+
49+
3750
### 发布步骤
38-
> **发布需要权限,如果提 PR 之后着急发布可以**[**加入贡献者交流群**](https://www.yuque.com/lce/doc/pctr1f#d5WKy)**。**
51+
> **发布需要权限,如果提 PR 之后着急发布可以**[**加入贡献者交流群**](../participate/#核心贡献者交流)**。**
3952
40-
如果是发布正式版本,步骤如下(以发布 1.0.0 版本为例):
53+
#### 发正式版
54+
步骤如下(以发布 1.0.0 版本为例):
4155

4256
1. git checkout develop
43-
2. git checkout -b release/1.0.0
44-
3. npm run build
45-
4. npm run pub
46-
5. tnpm run sync(此步骤将发布在 npm 源的包同步到阿里内网源,因为 alifd cdn 将依赖内网 npm 源)
57+
```bash
58+
git checkout develop
59+
```
60+
2. 创建release分支
61+
```bash
62+
git checkout -b release/1.0.0
63+
```
64+
3. build
65+
```bash
66+
npm run build
67+
```
68+
4. 发布到npm
69+
```bash
70+
npm run pub
71+
```
72+
5. 同步到 tnpm 源 & alifd CDN(此步骤将发布在 npm 源的包同步到阿里内网源,因为 alifd cdn 将依赖内网 npm 源)
73+
```bash
74+
tnpm run sync
75+
```
4776
6. 更新[发布日志](https://github.com/alibaba/lowcode-engine/releases)
4877
7. 合并 release/x.x.x 到 main 分支
4978
8. 合并 main 分支到 develop 分支
5079

5180
如果是发布beta 版本,步骤如下(以发布 1.0.1 版本为例):
5281

53-
1. git checkout develop
54-
2. git checkout -b release/1.0.1-beta
55-
3. npm run build
56-
4. npm run pub:prepatch(将 lerna 版本号从 1.0.0 改到 1.0.1-beta.0,若是从 1.0.1-beta.0 改到 1.0.1-beta.1,则用 npm run pub:prerelease)
57-
5. tnpm run sync
58-
59-
注:在 release/1.0.1-beta 上可以直接提交,以便快速测试和验证,不过如何合入 develop,参考 [分支用途](#uem7W) 一节说明。
60-
61-
### 发布周期
62-
**发布周期暂时不固定,按需发布~**
82+
#### 发某版本首个 beta ,如 1.0.1-beta.0
83+
1. 拉 develop 分支
84+
```bash
85+
git checkout develop
86+
```
87+
更新到最新(如需)
88+
```bash
89+
git pull
90+
```
91+
2. 拉 release 分支,此处以 1.0.1 版本做示例
92+
```bash
93+
git checkout -b release/1.0.1-beta
94+
```
95+
3. build
96+
```bash
97+
npm run build
98+
```
99+
4. 发布,此处需有 @alilc scope 发包权限
100+
```bash
101+
npm run pub:prepatch
102+
```
103+
5. 同步到 tnpm 源 & alifd CDN
104+
```bash
105+
tnpm run sync
106+
```
107+
108+
#### 发某版本非首个 beta ,如 1.0.1-beta.0 -> 1.0.1-beta.1
109+
1. 切换到 release 分支
110+
```bash
111+
git checkout release/1.0.1-beta
112+
```
113+
2. 更新到 develop 分支最新代码
114+
```bash
115+
git rebase origin/develop
116+
```
117+
3. build
118+
```bash
119+
npm run build
120+
```
121+
4. 发布,此处需有 @alilc scope 发包权限 ***此处命令与发首个 beta 时有变化***
122+
```bash
123+
npm run pub:prerelease
124+
```
125+
5. 同步到 tnpm 源 & alifd CDN
126+
```bash
127+
tnpm run sync
128+
```
63129

64-
## 物料发布机制
65130

66131

67132
## DEMO 发布机制
68-
**修改版本号**
69-
手动修改 package.json 的版本号
70-
71-
**build**
72-
```typescript
73-
npm run build
74-
```
75-
76-
**publish**
77-
```typescript
78-
npm run pub
79-
```
80-
需要权限
81-
82-
*发布 beta 版本
83-
```typescript
84-
npm publish --tag beta
85-
```
86-
87-
**同步**
88-
```typescript
89-
tnpm run sync
90-
```
91-
缺少这一步相关的 cdn 地址可能 404
92-
93-
133+
1. **修改版本号**
134+
手动修改 package.json 的版本号
135+
2. **build**
136+
```bash
137+
npm run build
138+
```
139+
3. publish (此步骤需要 npm 发包权限)
140+
```bash
141+
npm run pub
142+
```
143+
如发 beta 版
144+
```bash
145+
npm publish --tag beta
146+
```
147+
4. 同步到 tnpm 源 & alifd CDN
148+
```bash
149+
tnpm run sync
150+
```
94151

95152
**官网生效**
96153
需要在通过阿里内部系统更新 demo 版本
Collapse file

‎docs/docs/participate/index.md‎

Copy file name to clipboardExpand all lines: docs/docs/participate/index.md
+7-3Lines changed: 7 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
---
2-
title: 低代码引擎贡献者指南
2+
title: 贡献者指南
33
sidebar_position: 0
44
---
55
### 首个 Pull Request
66
在写第一个 Pull Request?你可以从这一系列视频中学习怎么做:
77
[How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)
8+
89
为了使你能够快速上手和熟悉贡献流程,我们这里有个列表 [good first issues](https://github.com/alibaba/lowcode-engine/issues?q=is:open+is:issue+label:%22good+first+issue%22),里面有相对没那么笼统的漏洞,从这开始是个不错的选择。
10+
911
如果你想解决一个 issue,请确定检查了该 issue 下的评论以防有人正在处理它。如果目前没人在处理该 issue,那么请留下评论去表明你想处理该 issue 以便其他人不会意外重复你的工作。
12+
1013
如果有人留言表明要处理该 issue 但是超过两周没有跟进,你可以接手工作,不过也应该留言说明。
1114

1215
### 提交 Pull Request
@@ -22,5 +25,6 @@ sidebar_position: 0
2225

2326
### 核心贡献者交流
2427
如果你想长期参与到项目维护中,我们提供了一个核心贡献者交流群。
25-
1.可以通过[填写问卷](https://survey.taobao.com/apps/zhiliao/4YEtu9gHF)的方式,参与到其中。
26-
2.填写问卷后加微信号 wxidvlalalalal,说明一下
28+
29+
1. 可以通过[填写问卷](https://survey.taobao.com/apps/zhiliao/4YEtu9gHF)的方式,参与到其中。
30+
2. 填写问卷后加微信号 `wxidvlalalalal` 说明一下
Collapse file

‎docs/docs/participate/prepare.md‎

Copy file name to clipboardExpand all lines: docs/docs/participate/prepare.md
+6-3Lines changed: 6 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
2-
title: 如何配置引擎调试环境
2+
title: 调试环境配置
33
sidebar_position: 1
44
---
55
低代码引擎的核心仓库是不包含任何物料、插件、setter 的,它本身用于生成低代码引擎的主包。
6+
67
如果您需要对低代码的主包进行开发和调试,需要用到本文里介绍的知识。
7-
如果您需要对低代码编辑器进行定制,您可能只需要 clone [lowcode-demo 项目](https://github.com/alibaba/lowcode-demo)并进行修改,参考“[配置低代码扩展点](https://www.yuque.com/lce/doc/srdo3s#oPhoE)”章节。
8+
9+
如果您需要对低代码编辑器进行定制,您可能只需要 clone [lowcode-demo 项目](https://github.com/alibaba/lowcode-demo)并进行修改,参考“[配置低代码扩展点](/site/docs/guide/expand/editor/summary)”章节。
810

911
> 前置条件:
1012
> node >= 14
@@ -58,4 +60,5 @@ npm install && npm start
5860
```
5961

6062
### 3. 本地调试物料/插件/设置器
61-
[详见](https://www.yuque.com/lce/doc/ulvlkz#Ioc87)
63+
64+
详见[低代码生态脚手架 & 调试机制](/site/docs/guide/expand/editor/cli)
Collapse file

‎docs/package.json‎

Copy file name to clipboardExpand all lines: docs/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alilc/lowcode-engine-docs",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "低代码引擎版本化文档",
55
"license": "MIT",
66
"files": [

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.