Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 62 lines (51 sloc) 2.124 kB
ed64276 @fat move doc building into base make method + build bootstrap to doc assets
fat authored
1 BOOTSTRAP = ./docs/assets/css/bootstrap.css
dc2deb9 @fat moving structure around + more work on builder...
fat authored
2 BOOTSTRAP_LESS = ./less/bootstrap.less
ed64276 @fat move doc building into base make method + build bootstrap to doc assets
fat authored
3 BOOTSTRAP_RESPONSIVE = ./docs/assets/css/bootstrap-responsive.css
dc2deb9 @fat moving structure around + more work on builder...
fat authored
4 BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
54f04d3 @mchung Fixed typo in Makefile
mchung authored
5 LESS_COMPRESSOR ?= `which lessc`
088bfcc @fat add formal checks to makefile to make sure people have neccessary sof…
fat authored
6 WATCHR ?= `which watchr`
471563e @fat + add a make file which auto builds the bootstrap dist files
fat authored
7
f764aee @fat add templates for doc generation
fat authored
8 #
49d565a @fat move building zip file into docs/makefile
fat authored
9 # BUILD DOCS
f764aee @fat add templates for doc generation
fat authored
10 #
11
298e637 @fat remove dist dir
fat authored
12 docs: bootstrap
e1deb4e @fat fix makefile to reset zips
fat authored
13 rm docs/assets/bootstrap.zip
49d565a @fat move building zip file into docs/makefile
fat authored
14 zip -r docs/assets/bootstrap.zip bootstrap
15 rm -r bootstrap
16 lessc ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
17 lessc ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE}
18 node docs/build
19 cp img/* docs/assets/img/
390a9af @fat move js stuff into assets
fat authored
20 cp js/*.js docs/assets/js/
21 cp js/tests/vendor/jquery.js docs/assets/js/
471563e @fat + add a make file which auto builds the bootstrap dist files
fat authored
22
f764aee @fat add templates for doc generation
fat authored
23 #
298e637 @fat remove dist dir
fat authored
24 # BUILD SIMPLE BOOTSTRAP DIRECTORY
49d565a @fat move building zip file into docs/makefile
fat authored
25 # lessc & uglifyjs are required
26 #
27
298e637 @fat remove dist dir
fat authored
28 bootstrap:
29 mkdir -p bootstrap/img
30 mkdir -p bootstrap/css
31 mkdir -p bootstrap/js
32 cp img/* bootstrap/img/
33 lessc ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css
34 lessc --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css
54bfdf1 @mdo fix the makefile
mdo authored
35 lessc ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.css
36 lessc --compress ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.min.css
298e637 @fat remove dist dir
fat authored
37 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 > bootstrap/js/bootstrap.js
bcef12d @fat add version to min js
fat authored
38 uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js
39 echo "/**\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js
40 cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js
41 rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js
49d565a @fat move building zip file into docs/makefile
fat authored
42
43 #
59016d2 @fat only add the anyalytics to production
fat authored
44 # MAKE FOR GH-PAGES 4 FAT & MDO ONLY (O_O )
f764aee @fat add templates for doc generation
fat authored
45 #
36a7eb3 @fat add build script for minified files and allow elements to be returned…
fat authored
46
59016d2 @fat only add the anyalytics to production
fat authored
47 gh-pages: docs
e1deb4e @fat fix makefile to reset zips
fat authored
48 rm -f ../bootstrap-gh-pages/assets/bootstrap.zip
59016d2 @fat only add the anyalytics to production
fat authored
49 node docs/build production
80a752f @fat add makefile to make it easier to publish to gh-pages...
fat authored
50 cp -r docs/* ../bootstrap-gh-pages
51
59016d2 @fat only add the anyalytics to production
fat authored
52 #
53 # WATCH LESS FILES
54 #
55
52dfbe6 @fat add "make watch" to auto watch less files - change patterns.less to u…
fat authored
56 watch:
49d565a @fat move building zip file into docs/makefile
fat authored
57 echo "Watching less files..."; \
58 watchr -e "watch('less/.*\.less') { system 'make' }"
59
60
95cb6f0 @mdo Merge branch 'zerkms-master' into 2.0.2-wip
mdo authored
61 .PHONY: docs watch gh-pages
Something went wrong with that request. Please try again.