Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
f89394b8
Commit
f89394b8
authored
12 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
make build prettier - hopefully this works, maybe some makefile bro's can improve
parent
edb52a82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+29
-14
Makefile
with
29 additions
and
14 deletions
+29
-14
Makefile
+
29
-
14
View file @
f89394b8
...
@@ -2,25 +2,40 @@ BOOTSTRAP = ./docs/assets/css/bootstrap.css
...
@@ -2,25 +2,40 @@ BOOTSTRAP = ./docs/assets/css/bootstrap.css
BOOTSTRAP_LESS
=
./less/bootstrap.less
BOOTSTRAP_LESS
=
./less/bootstrap.less
BOOTSTRAP_RESPONSIVE
=
./docs/assets/css/bootstrap-responsive.css
BOOTSTRAP_RESPONSIVE
=
./docs/assets/css/bootstrap-responsive.css
BOOTSTRAP_RESPONSIVE_LESS
=
./less/responsive.less
BOOTSTRAP_RESPONSIVE_LESS
=
./less/responsive.less
DATE
=
$(
shell
date
+%I:%M%p
)
CHECK
=
\0
33[32m✔
\0
33[39m
#
#
# BUILD DOCS
# BUILD DOCS
#
#
docs
:
build
:
jshint js/
*
.js
--config
js/.jshintrc
@
echo
"
\n
##################################################"
jshint js/tests/unit/
*
.js
--config
js/.jshintrc
@
echo
"Building Bootstrap..."
recess
--compile
${BOOTSTRAP_LESS}
>
${BOOTSTRAP}
@
echo
"##################################################
\n
"
recess
--compile
${BOOTSTRAP_RESPONSIVE_LESS}
>
${BOOTSTRAP_RESPONSIVE}
@
jshint js/
*
.js
--config
js/.jshintrc
node docs/build
@
jshint js/tests/unit/
*
.js
--config
js/.jshintrc
cp
img/
*
docs/assets/img/
@
echo
"Running JSHint on javascript...
${CHECK}
Done"
cp
js/
*
.js docs/assets/js/
@
recess
--compile
${BOOTSTRAP_LESS}
>
${BOOTSTRAP}
cp
js/tests/vendor/jquery.js docs/assets/js/
@
recess
--compile
${BOOTSTRAP_RESPONSIVE_LESS}
>
${BOOTSTRAP_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
>
docs/assets/js/bootstrap.js
@
echo
"Compiling LESS with Recess...
${CHECK}
Done"
uglifyjs
-nc
docs/assets/js/bootstrap.js
>
docs/assets/js/bootstrap.min.tmp.js
@
node docs/build
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
@
cp
img/
*
docs/assets/img/
cat
docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
>
docs/assets/js/bootstrap.min.js
@
cp
js/
*
.js docs/assets/js/
rm
docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
@
cp
js/tests/vendor/jquery.js docs/assets/js/
@
echo
"Compiling documentation...
${CHECK}
Done"
@
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
@
uglifyjs
-nc
docs/assets/js/bootstrap.js
>
docs/assets/js/bootstrap.min.tmp.js
@
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
@
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
"Bootstrap successfully built at
${DATE}
."
@
echo
"##################################################
\n
"
@
echo
"Thanks for using Bootstrap,"
@
echo
"<3 @mdo and @fat
\n
"
#
#
# BUILD SIMPLE BOOTSTRAP DIRECTORY
# BUILD SIMPLE BOOTSTRAP DIRECTORY
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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