Skip to content

Commit e136ae7

Browse files
committed
Adjust build github projecT
1 parent 43e8803 commit e136ae7

12 files changed

+180
-206
lines changed

chapters/01-introduction.md

Whitespace-only changes.

chapters/00-prelude.md renamed to chapters/01-prelude.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474

7575
因而,在Github寻找合适的候选人,已经是一种趋势。
7676

77-
###扩大人脉
77+
###扩大交际
7878

7979
如果我们想创造出更好、强大地框架时,那么认识更多的人可能会带来更多的帮助。有时候会同上面那一点一样的效果
8080

81-
<hr>
81+
---

chapters/02-github-fundamentals.md

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,5 @@
11
#Git基本知识与Github使用
22

3-
##Github
4-
5-
Wiki百科上是这么说的
6-
7-
> GitHub 是一个共享虚拟主机服务,用于存放使用Git版本控制的软件代码和内容项目。它由GitHub公司(曾称Logical Awesome)的开发者Chris Wanstrath、PJ Hyett和Tom Preston-Werner
8-
使用Ruby on Rails编写而成。
9-
10-
当然让我们看看官方的介绍:
11-
12-
> GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over eight million people use GitHub to build amazing things together.
13-
14-
15-
它还是什么?
16-
17-
- 网站
18-
- 免费博客
19-
- 管理配置文件
20-
- 收集资料
21-
- 简历
22-
- 管理代码片段
23-
- 托管编程环境
24-
- 写作
25-
26-
等等。看上去像是大餐,但是你还需要了解点什么?
27-
28-
###版本管理与软件部署
29-
30-
jQuery[^jQuery]在发布版本``2.1.3``,一共有152个commit。我们可以看到如下的提交信息:
31-
32-
- Ajax: Always use script injection in globalEval … bbdfbb4
33-
- Effects: Reintroduce use of requestAnimationFrame … 72119e0
34-
- Effects: Improve raf logic … 708764f
35-
- Build: Move test to appropriate module fbdbb6f
36-
- Build: Update commitplease dev dependency
37-
- ...
38-
39-
###Github与Git
40-
41-
> Git是一个分布式的版本控制系统,最初由Linus Torvalds编写,用作Linux内核代码的管理。在推出后,Git在其它项目中也取得了很大成功,尤其是在Ruby社区中。目前,包括Rubinius、Merb和Bitcoin在内的很多知名项目都使用了Git。Git同样可以被诸如Capistrano和Vlad the Deployer这样的部署工具所使用。
42-
43-
> GitHub可以托管各种git库,并提供一个web界面,但与其它像 SourceForge或Google Code这样的服务不同,GitHub的独特卖点在于从另外一个项目进行分支的简易性。为一个项目贡献代码非常简单:首先点击项目站点的“fork”的按钮,然后将代码检出并将修改加入到刚才分出的代码库中,最后通过内建的“pull request”机制向项目负责人申请代码合并。已经有人将GitHub称为代码玩家的MySpace。
44-
45-
[^jQuery]: jQuery是一套跨浏览器的JavaScript库,简化HTML与JavaScript之间的操作。
46-
473
##Git
484

495
从一般开发者的角度来看,git有以下功能:
@@ -108,6 +64,49 @@ $git status
10864
10965
可以看到状态的变化是从黄色到绿色,即unstage到add。
11066
67+
68+
##Github
69+
70+
Wiki百科上是这么说的
71+
72+
> GitHub 是一个共享虚拟主机服务,用于存放使用Git版本控制的软件代码和内容项目。它由GitHub公司(曾称Logical Awesome)的开发者Chris Wanstrath、PJ Hyett和Tom Preston-Werner
73+
使用Ruby on Rails编写而成。
74+
75+
当然让我们看看官方的介绍:
76+
77+
> GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over eight million people use GitHub to build amazing things together.
78+
79+
80+
它还是什么?
81+
82+
- 网站
83+
- 免费博客
84+
- 管理配置文件
85+
- 收集资料
86+
- 简历
87+
- 管理代码片段
88+
- 托管编程环境
89+
- 写作
90+
91+
等等。看上去像是大餐,但是你还需要了解点什么?
92+
93+
###版本管理与软件部署
94+
95+
jQuery[^jQuery]在发布版本``2.1.3``,一共有152个commit。我们可以看到如下的提交信息:
96+
97+
- Ajax: Always use script injection in globalEval … bbdfbb4
98+
- Effects: Reintroduce use of requestAnimationFrame … 72119e0
99+
- Effects: Improve raf logic … 708764f
100+
- Build: Move test to appropriate module fbdbb6f
101+
- Build: Update commitplease dev dependency
102+
- ...
103+
104+
###Github与Git
105+
106+
> Git是一个分布式的版本控制系统,最初由Linus Torvalds编写,用作Linux内核代码的管理。在推出后,Git在其它项目中也取得了很大成功,尤其是在Ruby社区中。目前,包括Rubinius、Merb和Bitcoin在内的很多知名项目都使用了Git。Git同样可以被诸如Capistrano和Vlad the Deployer这样的部署工具所使用。
107+
108+
> GitHub可以托管各种git库,并提供一个web界面,但与其它像 SourceForge或Google Code这样的服务不同,GitHub的独特卖点在于从另外一个项目进行分支的简易性。为一个项目贡献代码非常简单:首先点击项目站点的“fork”的按钮,然后将代码检出并将修改加入到刚才分出的代码库中,最后通过内建的“pull request”机制向项目负责人申请代码合并。已经有人将GitHub称为代码玩家的MySpace。
109+
111110
###在Github创建项目
112111
113112
接着,我们试试在上面创建一个项目:
@@ -178,7 +177,7 @@ C | 2
178177
- 资料收集: 如``free programming books``,``You-Dont-Know-JS``,``Font-Awesome``
179178
- 其他:简历如``Resume``
180179
181-
##创建Pull Request
180+
##Pull Request
182181
183182
除了创建项目之外,我们也可以创建Pull Request来做贡献。
184183

chapters/03-build-github-project.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#构建Github项目
22

3-
##用好Github
3+
##如何用好Github
44

55
如何用好Github,并实践一些敏捷软件开发是一个很有意思的事情.我们可以在上面做很多事情,从测试到CI,再到自动部署.
66

@@ -155,13 +155,7 @@ Lettuce.send = function (url, method, callback, data) {
155155

156156
这就意味着我们可以对上面的代码进行重构,他们是重复的代码。
157157

158-
###重构
159-
160-
不想在这里说太多关于``重构``的东西,可以参考Martin Flower的《重构》一书去多了解一些重构的细节。
161-
162-
这时想说的是,只有代码被测试覆盖住了,那么才能保证重构的过程没有出错。
163-
164-
##从模块分离到测试
158+
##模块分离与测试
165159

166160
在之前说到
167161

@@ -184,7 +178,7 @@ Lettuce.send = function (url, method, callback, data) {
184178

185179
等等。
186180

187-
###Skillock模块化
181+
###代码模块化
188182

189183
在SkillTree的源码里,大致分为三部分:
190184

@@ -342,7 +336,7 @@ branches:
342336
Link Test
343337
✓ should return link label & url
344338

345-
###测试用例
339+
###测试示例
346340

347341
简单地看一下Book的测试:
348342

@@ -404,7 +398,7 @@ it('should return book label & url', function () {
404398

405399
最后的断言,也算是测试的核心,保证测试是有用的。
406400

407-
##Code Climate来clean code与重构
401+
##代码质量与重构
408402

409403
- 当你写了一大堆代码,你没有意识到里面有一大堆重复。
410404
- 当你写了一大堆测试,却不知道覆盖率有多少。
@@ -546,4 +540,4 @@ SQLiteHelper.prototype.getData = function (url, callback) {
546540
547541
重构完后的代码比原来还长,这似乎是个问题~~
548542
549-
<hr>
543+
---

chapters/04-create-project-documents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ React.render(
6969

7070
而不是需要繁琐的步骤才能进行下一步。
7171

72-
<hr>
72+
---

chapters/05-tdd-with-autotest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,4 @@ req.end();
234234
});
235235
});
236236

237-
<hr>
237+
---

chapters/06-refactor-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,4 +408,4 @@ public class replaceTemp {
408408
}
409409
```
410410

411-
<hr>
411+
---

chapters/07-streak-your-github.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,4 @@
321321
3. 设计
322322
4. 。。。
323323

324-
<hr>
324+
---

chapters/08-find-github-project.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,4 @@ Lettuce.send = function (url, method, callback, data) {
169169
};
170170
```
171171

172-
173-
<hr>
172+
---
File renamed without changes.

0 commit comments

Comments
 (0)