-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* style: refactor by new eslint * fix: selection sync error * docs: modify dev docs * docs: modify publish docs * Create gentle-goats-hang.md * Update packages/core/src/text-area/event-handlers/composition.ts 254 在windows上搭建webview2或者electron客户端使用wangeditor和搜狗输入法执行特定步骤会出现异常 Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * perf: variable naming correction & delete redundant judgment conditions --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
c2abdb2
commit c0cfd9c
Showing
6 changed files
with
88 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
'@wangeditor-next/upload-image-module': patch | ||
'@wangeditor-next/code-highlight': patch | ||
'@wangeditor-next/basic-modules': patch | ||
'@wangeditor-next/yjs-for-react': patch | ||
'@wangeditor-next/table-module': patch | ||
'@wangeditor-next/video-module': patch | ||
'@wangeditor-next/list-module': patch | ||
'@wangeditor-next/editor': patch | ||
'@wangeditor-next/core': patch | ||
'@wangeditor-next/yjs': patch | ||
--- | ||
|
||
254 在windows上搭建webview2或者electron客户端使用wangeditor和搜狗输入法执行特定步骤会出现异常 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
- 了解 slate.js | ||
- 了解 vdom 和 snabbdom.js | ||
- 了解 lerna | ||
- 了解 turbo 和 changeset | ||
- 已安装 yarn | ||
|
||
## 本地启动 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,14 @@ | ||
# 发布到 NPM | ||
|
||
因为我们的项目是使用 `independent` 的方式组织 `muti-packgae`,所以每个包都有单独的版本号,默认使用 `lerna publish` 发布包,我们需要根据包的修改内容选择合适的版本号。**对于没有变动的 `package`,lerna 发布的时候不会算在本次发布的内容里面**。 | ||
## 发布一个正式版本 | ||
|
||
发布的流程分两步: | ||
1. 添加 `changeset`:`npx changeset` | ||
2. 提交代码合并 master,线上会自动发版到 `npm`。 | ||
|
||
第一步:将所有要发版的代码合并到 `master` 分支后,先在本地执行 `yarn release:version` 生成各个本次变动的 `package` 的版本后,自动生成 `changelog`,接着 lerna 会生成 `git tag` 并 `push` 到远程。 | ||
|
||
第二步:上面步骤完成后, `lerna` push `git tag` 到远程的时候会触发我们配置的 `git action`,走完正常的发版 `action`,具体看 [`action` 配置]('./../.github/workflows/release.yml') 。 | ||
|
||
因为目前我们还在开发当中,所以为了更加方便发版到 `npm` 进行测试,目前,项目中集成了以下 `release` 的 `script command`: | ||
|
||
## 正常发布一个版本 | ||
|
||
```bash | ||
yarn release:publish | ||
``` | ||
|
||
## 发布指定的 dist-tag 版本 | ||
|
||
发布一个 `experimental` [dist-tag](https://docs.npmjs.com/cli/v7/commands/npm-dist-tag) 的版本: | ||
|
||
```bash | ||
yarn release:publish:experimental | ||
``` | ||
|
||
发布一个 `next` [dist-tag](https://docs.npmjs.com/cli/v7/commands/npm-dist-tag) 的版本: | ||
|
||
```bash | ||
yarn release:next | ||
``` | ||
|
||
## 发布 canary 版本 | ||
|
||
发布一个 `canary` 版本: | ||
```bash | ||
# 1.0.0 => 1.0.1-alpha.0+${SHA} of packages changed since the previous commit | ||
lerna publish --canary | ||
``` | ||
## 发布一个测试版本 | ||
|
||
1. 进入预发布模式:`npx changeset pre enter beta` | ||
2. 添加 `changeset`:`npx changeset` | ||
3. 更新版本号:`npx changeset version` | ||
4. 发布测试包:`npx changeset publish` | ||
5. 退出预发布模式(可选):`npx changeset pre exit` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters