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
391661f1
Commit
391661f1
authored
Jan 29, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
parents
278858e7
910e78d2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
23 deletions
+34
-23
Makefile
Makefile
+32
-21
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/index.html
docs/index.html
+1
-1
docs/templates/pages/index.mustache
docs/templates/pages/index.mustache
+1
-1
No files found.
Makefile
View file @
391661f1
...
...
@@ -6,31 +6,42 @@ LESS_COMPRESSOR ?= `which lessc`
WATCHR
?=
`
which watchr
`
#
# B
uild less files + docs
# B
UILD DOCS
#
build
:
@
if
test
!
-z
${LESS_COMPRESSOR}
;
then
\
lessc
${BOOTSTRAP_LESS}
>
${BOOTSTRAP}
;
\
lessc
${BOOTSTRAP_RESPONSIVE_LESS}
>
${BOOTSTRAP_RESPONSIVE}
;
\
node docs/build
;
\
cp
img/
*
docs/assets/img/
;
\
else
\
echo
"You must have the LESS compiler installed in order to build Bootstrap."
;
\
echo
"You can install it by running: npm install less -g"
;
\
fi
docs
:
dist
cp
-r
dist bootstrap
zip
-r
docs/assets/bootstrap.zip bootstrap
rm
-r
bootstrap
lessc
${BOOTSTRAP_LESS}
>
${BOOTSTRAP}
lessc
${BOOTSTRAP_RESPONSIVE_LESS}
>
${BOOTSTRAP_RESPONSIVE}
node docs/build
cp
img/
*
docs/assets/img/
#
# Watch less files
# BUILD SIMPLE DIST DIRECTORY
# lessc & uglifyjs are required
#
dist
:
mkdir
-p
dist/img
mkdir
-p
dist/css
mkdir
-p
dist/js
cp
img/
*
dist/img/
lessc
${BOOTSTRAP_LESS}
>
dist/css/bootstrap.css
lessc
--compress
${BOOTSTRAP_LESS}
>
dist/css/bootstrap.min.css
lessc
${BOOTSTRAP_RESPONSIVE_LESS}
>
dist/css/bootstrap.responsive
lessc
--compress
${BOOTSTRAP_RESPONSIVE_LESS}
>
dist/css/bootstrap.min.responsive
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
>
dist/js/bootstrap.js
uglifyjs
-nc
dist/js/bootstrap.js
>
dist/js/bootstrap.min.js
#
# WATCH LESS FILES
#
watch
:
@
if
test
!
-z
${WATCHR}
;
then
\
echo
"Watching less files..."
;
\
watchr
-e
"watch('less/.*
\.
less') { system 'make' }"
;
\
else
\
echo
"You must have the watchr installed in order to watch Bootstrap Less files."
;
\
echo
"You can install it by running: gem install watchr"
;
\
fi
watchr
-e
"watch('less/.*
\.
less') { system 'make' }"
.PHONY
:
build watch
\ No newline at end of file
.PHONY
:
dist docs watch
\ No newline at end of file
docs/assets/bootstrap.zip
0 → 100644
View file @
391661f1
File added
docs/index.html
View file @
391661f1
...
...
@@ -80,7 +80,7 @@
<p>
Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.
</p>
<p
class=
"download-info"
>
<a
href=
"https://github.com/twitter/bootstrap/"
class=
"btn primary btn-large"
>
View project on GitHub
</a>
<a
href=
"
http://bootstrap.herokuapp.com
/bootstrap.zip"
class=
"btn btn-large"
>
Download Bootstrap
</a>
<a
href=
"
assets
/bootstrap.zip"
class=
"btn btn-large"
>
Download Bootstrap
</a>
</p>
</div>
...
...
docs/templates/pages/index.mustache
View file @
391661f1
...
...
@@ -8,7 +8,7 @@
<p>
Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.
</p>
<p
class=
"download-info"
>
<a
href=
"https://github.com/twitter/bootstrap/"
class=
"btn primary btn-large"
>
{{
_i
}}
View project on GitHub
{{/
i
}}
</a>
<a
href=
"
http://bootstrap.herokuapp.com
/bootstrap.zip"
class=
"btn btn-large"
>
{{
_i
}}
Download Bootstrap
{{/
i
}}
</a>
<a
href=
"
assets
/bootstrap.zip"
class=
"btn btn-large"
>
{{
_i
}}
Download Bootstrap
{{/
i
}}
</a>
</p>
</div>
...
...
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