Skip to content

Commit

Permalink
docs: fix typo (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
beilunyang authored and popomore committed Oct 19, 2017
1 parent 68c0e1a commit 7fb9bbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ egg 基于 [semver] 语义化版本号进行发布。

### 分支策略

`master` 分支为当前稳定发布的版本,`next` 分支为下一个开发中的大版本。
`master` 分支为当前稳定发布的版本,`next` 分支为下一个开发中的大版本。

- 只维护两个版本,除非有安全问题,否则修复只会 patch 到 `master``next` 分支,其他更新推动上层框架升级到稳定大版本的最新版本。
- 所有 API 的废弃都需要在当前的稳定版本上 `deprecate` 提示,并保证在当前的稳定版本上一直兼容到新版本的发布。
Expand Down Expand Up @@ -172,7 +172,7 @@ egg 基于 [semver] 语义化版本号进行发布。

#### 发布时:

- 将老的稳定版本(master)备份到以当前大版本为名字的分支上(例如 `1.x`),并设置 tag 为 `release-{v}.x`( v 为当前版本,例如 `release-1.x`)。
- 将老的稳定版本(master)备份到以当前大版本为名字的分支上(例如 `1.x`),并设置 tag 为 `release-{v}.x`( v 为当前版本,例如 `release-1.x`)。
-`next` 分支推送到 `master`,成为新的稳定版本分支,并去除 `next` tag,修改 README 中与分支相关的内容。
- 发布新的稳定版本到 [npm],并通知上层框架进行更新。
- `npm publish` 之前,请先阅读[『我是如何发布一个 npm 包的』]
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/core/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: 应用部署

## 构建

Javascript 语言本身不需要编译的,构建过程主要是下载依赖。但如果使用 TypeScript 或者 Babel 支持 ES6 以上的特性,那就必须要这一步了。
JavaScript 语言本身不需要编译的,构建过程主要是下载依赖。但如果使用 TypeScript 或者 Babel 支持 ES6 以上的特性,那就必须要这一步了。

一般安装依赖会指定 `NODE_ENV=production``npm install --production` 只安装 dependencies 的依赖。因为 devDependencies 中的模块过大而且在生产环境不会使用,安装后也可能遇到未知问题。

Expand Down

0 comments on commit 7fb9bbf

Please sign in to comment.