Skip to content

Commit f8c7cea

Browse files
committed
update 9
1 parent f61bf77 commit f8c7cea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: tutorial/09-travis-coveralls-heroku.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
本章代码存储在 [JS-Stack-Boilerplate repository](https://github.com/verekia/js-stack-boilerplate)`master` 分支上。
44

5-
在本章,我们的应用会使用第三方服务,你可以下选择付费或者免费服务。在教程中使用这样的服务是有争议的,因为教程应该依赖于社区驱动的、免费开放的工具。为此,我维护了两个分支 [JS-Stack-Boilerplate repository](https://github.com/verekia/js-stack-boilerplate), `master``master-no-services(没有服务的 master 分支)`
5+
在本章,我们的应用会使用第三方服务,你可以选择付费或者免费两种服务方式。在教程中使用这样的服务是有争议的,因为教程应该依赖于社区驱动、免费、开放的工具。为此,我维护了两个分支 [JS-Stack-Boilerplate repository](https://github.com/verekia/js-stack-boilerplate), `master``master-no-services(没有使用服务的 master 分支)`
66

77
## Travis
88

@@ -18,13 +18,13 @@ node_js: node
1818
script: yarn test && yarn prod:build
1919
```
2020
21-
Travis 会自动检测到你使用了 Yarn —— 因为你有一个 `yarn.lock` 文件。每次向 Github 仓库提交代码的时候,`yarn test && yarn prod:build` 命令都会被执行。绿色表示代码没有出错。
21+
Travis 会自动检测到你使用了 Yarn —— 因为你有一个 `yarn.lock` 文件。每次向 Github 仓库提交代码的时候,`yarn test && yarn prod:build` 命令都会执行。绿色表示代码没有出错。
2222

2323
## Coveralls
2424

2525
> 💡 **[Coveralls](https://coveralls.io)** 服务为你提供测试覆盖率的记录和统计数据。
2626

27-
如果你的项目在 Github 开源,并且兼容与Coveralls 提供的 Continuous Integration(持续集成) 服务,那你唯一要做的事情,就是把 Jest 生成的覆盖率文件导入到 `coveralls`。
27+
如果你的项目在 Github 开源,并且兼容与 Coveralls 提供的 Continuous Integration(持续集成) 服务,那你唯一要做的事情,就是把 Jest 生成的覆盖率文件导入到 `coveralls`。
2828

2929
- 运行 `yarn add --dev coveralls`
3030

@@ -40,7 +40,7 @@ script: yarn test && yarn prod:build && cat ./coverage/lcov.info | ./node_module
4040

4141
所有代码都通过 Travis 和 Coveralls 了么?很好,现在你可以炫耀一下“金闪闪”的徽章了。
4242

43-
你可以直接只用 Travis 或 Coveralls 提供的代码,或者使用 [shields.io](http://shields.io/) 来美化一下,当然你也可以尝试自定义。本教程选择使用 shields.io :
43+
你可以直接使用 Travis 或 Coveralls 提供的代码,或者使用 [shields.io](http://shields.io/) 来美化一下,当然你也可以尝试自定义。本教程选择使用 shields.io :
4444

4545
- 创建 `README.md` 文件:
4646

@@ -57,7 +57,7 @@ script: yarn test && yarn prod:build && cat ./coverage/lcov.info | ./node_module
5757

5858
先声明下,本教程没有接受过 Heroku 任何形式的赞助。Heroku 只是一个平台,我选择它,只是为了演示如何部署应用。是的,当你创造了一个伟大的产品,你就会得到别人的喜爱。
5959

60-
**注意**:在之后,我们能会添加 AWS 部分;不过,事情得一件一件来。
60+
**注意**:在之后,我可能会添加 AWS 部分;不过,事情得一件一件来。
6161

6262
### Web 设置
6363

@@ -120,7 +120,7 @@ web: node lib/server
120120

121121
每次在 Heroku 部署应用,`heroku-postbuild` 命令都会执行。
122122

123-
你可能需要向 Heroku 指明 Node 和 Yarn 的具体版本号。
123+
你需要向 Heroku 指明 Node 和 Yarn 的具体版本号。
124124

125125
- `package.json` 文件添加如下内容:
126126

0 commit comments

Comments
 (0)