Skip to content

Commit 5d63e8e

Browse files
committed
fMerge branch '2.1.0-wip'
Conflicts: docs/index.html
2 parents 5df1e2c + aa2cec6 commit 5d63e8e

File tree

176 files changed

+18805
-33895
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+18805
-33895
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ nbproject
3434
.CVS
3535
.idea
3636
node_modules
37+
dist

.issue-guidelines.js

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/* ==========================================================
2+
* issue-guidelines.js
3+
* http://twitter.github.com/bootstrap/javascript.html#alerts
4+
* ==========================================================
5+
* Copyright 2012 Twitter, Inc.
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* ========================================================== */
19+
20+
var assert = require('assert')
21+
22+
module.exports = {
23+
24+
'pull-requests': {
25+
26+
'should always be made against -wip branches': function (pull) {
27+
assert.ok(/\-wip$/.test(pull.base.ref))
28+
},
29+
30+
'should always be made from feature branches': function (pull) {
31+
assert.notEqual(pull.head.ref, 'master')
32+
},
33+
34+
'should always include a unit test if changing js files': function (pull) {
35+
var hasJS = false
36+
var hasTests = false
37+
38+
pull.files.forEach(function (file) {
39+
if (/^js\/[^./]+.js/.test(file.filename)) hasJS = true
40+
if (/^js\/tests\/unit\/[^.]+.js/.test(file.filename)) hasTests = true
41+
})
42+
43+
assert.ok(!hasJS || hasJS && hasTests)
44+
},
45+
46+
'after': function (pull) {
47+
if (pull.reporter.stats.failures) {
48+
pull.reportFailures(pull.close.bind(pull))
49+
}
50+
}
51+
52+
},
53+
54+
'issues': {
55+
56+
'before': function (issue) {
57+
var plus = {}
58+
var labels = issue.labels.map(function (label) { return label.name });
59+
60+
if (~labels.indexOf('popular')) return
61+
62+
issue.comments.forEach(function (comment) {
63+
if (/\+1/.test(comment.body)) plus[comment.user.login] = true
64+
})
65+
66+
if (Object.keys(plus).length > 5) {
67+
issue.tag('popular')
68+
issue.comment('Tagging this issue as popular, please stop commenting on this issue with +1. thanks!')
69+
}
70+
},
71+
72+
'should include a jsfiddle/jsbin illustrating the problem if tagged with js but not a feature': function (issue) {
73+
var labels = issue.labels.map(function (label) { return label.name });
74+
if (~labels.indexOf('js') && !~labels.indexOf('feature')) assert.ok(/(jsfiddle|jsbin)/.test(issue.body))
75+
},
76+
77+
'after': function (issue) {
78+
if (issue.reporter.stats.failures) {
79+
issue.reportFailures(issue.close.bind(issue))
80+
}
81+
}
82+
83+
}
84+
85+
}

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ build:
2626
@cp js/*.js docs/assets/js/
2727
@cp js/tests/vendor/jquery.js docs/assets/js/
2828
@echo "Compiling documentation... ${CHECK} Done"
29-
@cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js > docs/assets/js/bootstrap.js
29+
@cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js
3030
@uglifyjs -nc docs/assets/js/bootstrap.js > docs/assets/js/bootstrap.min.tmp.js
3131
@echo "/**\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js
3232
@cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js
@@ -90,5 +90,12 @@ watch:
9090
echo "Watching less files..."; \
9191
watchr -e "watch('less/.*\.less') { system 'make' }"
9292

93+
#
94+
# HAUNT GITHUB ISSUES 4 FAT & MDO ONLY (O_O )
95+
#
96+
97+
haunt:
98+
@haunt .issue-guidelines.js https://github.com/twitter/bootstrap
99+
93100

94101
.PHONY: docs watch gh-pages

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Twitter Bootstrap](http://twitter.github.com/bootstrap) [![Build Status](https://secure.travis-ci.org/twitter/bootstrap.png)](http://travis-ci.org/twitter/bootstrap)
22
=================
33

4-
Bootstrap provides simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions. In other words, it's a front-end toolkit for faster, more beautiful web development. It's created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat) at Twitter.
4+
Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat) at Twitter.
55

6-
To get started, checkout http://twitter.github.com/bootstrap!
6+
To get started, checkout http://getbootstrap.com!
77

88

99

@@ -19,7 +19,7 @@ Versioning
1919

2020
For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.
2121

22-
Releases will be numbered with the follow format:
22+
Releases will be numbered with the following format:
2323

2424
`<major>.<minor>.<patch>`
2525

@@ -36,7 +36,7 @@ For more information on SemVer, please visit http://semver.org/.
3636
Bug tracker
3737
-----------
3838

39-
Have a bug? Please create an issue here on GitHub! Also, when filing please make sure you're familiar with [necolas's guidelines](https://github.com/necolas/issue-guidelines). thanks! <3
39+
Have a bug? Please create an issue here on GitHub that conforms with [necolas's guidelines](https://github.com/necolas/issue-guidelines).
4040

4141
https://github.com/twitter/bootstrap/issues
4242

@@ -82,26 +82,28 @@ Developers
8282
We have included a makefile with convenience methods for working with the Bootstrap library.
8383

8484
+ **dependencies**
85-
Our makefile depends on you having recess, uglify.js, and jshint installed. To install, just run the following command in npm:
85+
Our makefile depends on you having recess, connect, uglify.js, and jshint installed. To install, just run the following command in npm:
8686

8787
```
88-
$ npm install recess uglify-js jshint -g
88+
$ npm install recess connect uglify-js jshint -g
8989
```
9090

9191
+ **build** - `make`
9292
Runs the recess compiler to rebuild the `/less` files and compiles the docs pages. Requires recess and uglify-js. <a href="http://twitter.github.com/bootstrap/less.html#compiling">Read more in our docs &raquo;</a>
9393

9494
+ **test** - `make test`
95-
Runs jshint and qunit tests headlessly in phantom js (used for ci). Depends on having phatomjs installed.
95+
Runs jshint and qunit tests headlessly in [phatomjs] (http://code.google.com/p/phantomjs/) (used for ci). Depends on having phantomjs installed.
9696

9797
+ **watch** - `make watch`
9898
This is a convenience method for watching just Less files and automatically building them whenever you save. Requires the Watchr gem.
9999

100100

101+
101102
Contributing
102103
------------
103104

104-
Please make all pull requests against wip-* branches. Also, if your unit test contains javascript patches or features - you must include relevant unit tests. Thanks!
105+
Please submit all pull requests against *-wip branches. If your unit test contains javascript patches or features, you must include relevant unit tests. Thanks!
106+
105107

106108

107109
Authors

0 commit comments

Comments
 (0)