mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
remove haunt, remove bootstrap dir, add bower support
This commit is contained in:
parent
c33169a6ba
commit
92e7f166e7
7 changed files with 10 additions and 5932 deletions
|
@ -1,85 +0,0 @@
|
|||
/* ==========================================================
|
||||
* issue-guidelines.js
|
||||
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
||||
* ==========================================================
|
||||
* Copyright 2012 Twitter, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* ========================================================== */
|
||||
|
||||
var assert = require('assert')
|
||||
|
||||
module.exports = {
|
||||
|
||||
'pull-requests': {
|
||||
|
||||
'should always be made against -wip branches': function (pull) {
|
||||
assert.ok(/\-wip$/.test(pull.base.ref))
|
||||
},
|
||||
|
||||
'should always be made from feature branches': function (pull) {
|
||||
assert.notEqual(pull.head.ref, 'master')
|
||||
},
|
||||
|
||||
'should always include a unit test if changing js files': function (pull) {
|
||||
var hasJS = false
|
||||
var hasTests = false
|
||||
|
||||
pull.files.forEach(function (file) {
|
||||
if (/^js\/[^./]+.js/.test(file.filename)) hasJS = true
|
||||
if (/^js\/tests\/unit\/[^.]+.js/.test(file.filename)) hasTests = true
|
||||
})
|
||||
|
||||
assert.ok(!hasJS || hasJS && hasTests)
|
||||
},
|
||||
|
||||
'after': function (pull) {
|
||||
if (pull.reporter.stats.failures) {
|
||||
pull.reportFailures(pull.close.bind(pull))
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'issues': {
|
||||
|
||||
'before': function (issue) {
|
||||
var plus = {}
|
||||
var labels = issue.labels.map(function (label) { return label.name });
|
||||
|
||||
if (~labels.indexOf('popular')) return
|
||||
|
||||
issue.comments.forEach(function (comment) {
|
||||
if (/\+1/.test(comment.body)) plus[comment.user.login] = true
|
||||
})
|
||||
|
||||
if (Object.keys(plus).length > 5) {
|
||||
issue.tag('popular')
|
||||
issue.comment('Tagging this issue as popular, please stop commenting on this issue with +1. thanks!')
|
||||
}
|
||||
},
|
||||
|
||||
'should include a jsfiddle/jsbin illustrating the problem if tagged with js but not a feature': function (issue) {
|
||||
var labels = issue.labels.map(function (label) { return label.name });
|
||||
if (~labels.indexOf('js') && !~labels.indexOf('feature')) assert.ok(/(jsfiddle|jsbin)/.test(issue.body))
|
||||
},
|
||||
|
||||
'after': function (issue) {
|
||||
if (issue.reporter.stats.failures) {
|
||||
issue.reportFailures(issue.close.bind(issue))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
7
Makefile
7
Makefile
|
@ -97,12 +97,5 @@ watch:
|
|||
echo "Watching less files..."; \
|
||||
watchr -e "watch('less/.*\.less') { system 'make' }"
|
||||
|
||||
#
|
||||
# HAUNT GITHUB ISSUES 4 FAT & MDO ONLY (O_O )
|
||||
#
|
||||
|
||||
haunt:
|
||||
@haunt .issue-guidelines.js https://github.com/twitter/bootstrap
|
||||
|
||||
|
||||
.PHONY: docs watch gh-pages
|
|
@ -10,7 +10,7 @@ To get started, checkout http://getbootstrap.com!
|
|||
Quick start
|
||||
-----------
|
||||
|
||||
Clone the repo, `git clone git://github.com/twitter/bootstrap.git`, or [download the latest release](https://github.com/twitter/bootstrap/zipball/master).
|
||||
Clone the repo, `git clone git://github.com/twitter/bootstrap.git`, [download the latest release](https://github.com/twitter/bootstrap/zipball/master), or install with twitter's [Bower](//twitter.github.com/bower): `bower install bootstrap`.
|
||||
|
||||
|
||||
|
||||
|
|
5829
bootstrap/css/bootstrap.css
vendored
5829
bootstrap/css/bootstrap.css
vendored
File diff suppressed because it is too large
Load diff
9
bootstrap/css/bootstrap.min.css
vendored
9
bootstrap/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
8
component.json
Normal file
8
component.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "bootstrap",
|
||||
"version": "2.2.0",
|
||||
"main": ["./docs/assets/js/bootstrap.js", "./docs/assets/css/bootstrap.css"],
|
||||
"dependencies": {
|
||||
"jquery": "~1.8.0"
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "bootstrap"
|
||||
, "description": "Sleek, intuitive, and powerful front-end framework for faster and easier web development."
|
||||
, "version": "2.1.2"
|
||||
, "version": "2.2.0"
|
||||
, "keywords": ["bootstrap", "css"]
|
||||
, "homepage": "http://twitter.github.com/bootstrap/"
|
||||
, "author": "Twitter Inc."
|
||||
|
|
Loading…
Reference in a new issue