Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
f805a608
Commit
f805a608
authored
Apr 23, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.3-wip' of github.com:twitter/bootstrap into 2.0.3-wip
parents
419e50e3
b8b1ffde
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
21 deletions
+18
-21
Makefile
Makefile
+5
-4
js/tests/phantom.js
js/tests/phantom.js
+3
-3
js/tests/server.js
js/tests/server.js
+6
-10
package.json
package.json
+4
-4
No files found.
Makefile
View file @
f805a608
...
...
@@ -4,6 +4,7 @@ BOOTSTRAP_RESPONSIVE = ./docs/assets/css/bootstrap-responsive.css
BOOTSTRAP_RESPONSIVE_LESS
=
./less/responsive.less
DATE
=
$(
shell
date
+%I:%M%p
)
CHECK
=
\0
33[32m✔
\0
33[39m
HR
=
\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#
#
...
...
@@ -11,9 +12,9 @@ CHECK=\033[32m✔\033[39m
#
build
:
@
echo
"
\n
##################################################
"
@
echo
"
\n
${HR}
"
@
echo
"Building Bootstrap..."
@
echo
"
##################################################
\n
"
@
echo
"
${HR}
\n
"
@
jshint js/
*
.js
--config
js/.jshintrc
@
jshint js/tests/unit/
*
.js
--config
js/.jshintrc
@
echo
"Running JSHint on javascript...
${CHECK}
Done"
...
...
@@ -31,9 +32,9 @@ build:
@
cat
docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
>
docs/assets/js/bootstrap.min.js
@
rm
docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
@
echo
"Compiling and minifying javascript...
${CHECK}
Done"
@
echo
"
\n
##################################################
"
@
echo
"
\n
${HR}
"
@
echo
"Bootstrap successfully built at
${DATE}
."
@
echo
"
##################################################
\n
"
@
echo
"
${HR}
\n
"
@
echo
"Thanks for using Bootstrap,"
@
echo
"<3 @mdo and @fat
\n
"
...
...
js/tests/phantom.js
View file @
f805a608
...
...
@@ -2,15 +2,15 @@
// Adapted from Modernizr
function
waitFor
(
testFx
,
onReady
,
timeOutMillis
)
{
var
maxtimeOutMillis
=
timeOutMillis
?
timeOutMillis
:
3001
//< Default Max Timout is 3
s
var
maxtimeOutMillis
=
timeOutMillis
?
timeOutMillis
:
5001
//< Default Max Timout is 5
s
,
start
=
new
Date
().
getTime
()
,
condition
=
false
,
interval
=
setInterval
(
function
()
{
,
interval
=
setInterval
(
function
()
{
if
((
new
Date
().
getTime
()
-
start
<
maxtimeOutMillis
)
&&
!
condition
)
{
// If not time-out yet and condition not yet fulfilled
condition
=
(
typeof
(
testFx
)
===
"
string
"
?
eval
(
testFx
)
:
testFx
())
//< defensive code
}
else
{
if
(
!
condition
)
{
if
(
!
condition
)
{
// If condition still not fulfilled (timeout but condition is 'false')
console
.
log
(
"
'waitFor()' timeout
"
)
phantom
.
exit
(
1
)
...
...
js/tests/server.js
View file @
f805a608
...
...
@@ -4,15 +4,11 @@
*/
var
connect
=
require
(
'
connect
'
)
,
args
=
process
.
argv
.
slice
(
2
)
,
fs
=
require
(
'
fs
'
)
,
folder
=
'
/../../
'
,
port
=
'
3000
'
,
http
=
require
(
'
http
'
)
,
fs
=
require
(
'
fs
'
)
,
app
=
connect
()
.
use
(
connect
.
static
(
__dirname
+
'
/../../
'
));
var
server
=
connect
.
createServer
(
connect
.
static
(
__dirname
+
folder
)
).
listen
(
port
)
http
.
createServer
(
app
).
listen
(
3000
);
fs
.
writeFileSync
(
__dirname
+
'
/pid.txt
'
,
process
.
pid
,
'
utf-8
'
)
console
.
log
(
"
Server started on port %s in %s
"
,
port
,
folder
)
\ No newline at end of file
fs
.
writeFileSync
(
__dirname
+
'
/pid.txt
'
,
process
.
pid
,
'
utf-8
'
)
\ No newline at end of file
package.json
View file @
f805a608
...
...
@@ -17,9 +17,9 @@
}
]
,
"devDependencies"
:
{
"
uglify-js
"
:
"
*
"
,
"
jshint
"
:
"
*
"
,
"
recess
"
:
"
*
"
,
"
connect
"
:
"
*
"
"
uglify-js
"
:
"
1.2.6
"
,
"
jshint
"
:
"
0.6.1
"
,
"
recess
"
:
"
1.0.3
"
,
"
connect
"
:
"
2.1.3
"
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment