-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Tight dependency to bootstrap-modal.js * Simpler JS * We are single images only ATTENTION!! There are issues with hitting the max callstack size, this is a Work In Progress!
- Loading branch information
Jason Butz
committed
Apr 24, 2013
1 parent
c19d452
commit fd5df13
Showing
24 changed files
with
2,578 additions
and
919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
language: node_js | ||
node_js: | ||
- 0.8 | ||
- 0.6 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
BOOTSTRAP = ./docs/assets/css/bootstrap-lightbox.css | ||
BOOTSTRAP_LESS = ./less/bootstrap-lightbox.less | ||
DATE=$(shell date +%I:%M%p) | ||
CHECK=\033[32m✔\033[39m | ||
HR=\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# | ||
|
||
|
||
# | ||
# BUILD DOCS | ||
# | ||
|
||
build: | ||
@echo "\n${HR}" | ||
@echo "Building Bootstrap Lightbox..." | ||
@echo "${HR}\n" | ||
@./node_modules/.bin/jshint js/*.js --config js/.jshintrc | ||
@./node_modules/.bin/jshint js/tests/unit/*.js --config js/.jshintrc | ||
@echo "Running JSHint on javascript... ${CHECK} Done" | ||
@./node_modules/.bin/recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP} | ||
@echo "Compiling LESS with Recess... ${CHECK} Done" | ||
@node docs/build | ||
@cp js/*.js docs/assets/js/ | ||
@cp js/tests/vendor/jquery.js docs/assets/js/ | ||
@echo "Compiling documentation... ${CHECK} Done" | ||
@./node_modules/.bin/uglifyjs -nc docs/assets/js/bootstrap-lightbox.js > docs/assets/js/bootstrap-lightbox.min.tmp.js | ||
@echo "/**\n* Bootstrap-lightbox.js v0.6.0 \n* Copyright 2013 Jason Butz\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-lightbox.min.tmp.js > docs/assets/js/bootstrap-lightbox.min.js | ||
@rm docs/assets/js/copyright.js docs/assets/js/bootstrap-lightbox.min.tmp.js | ||
@echo "Compiling and minifying javascript... ${CHECK} Done" | ||
@echo "\n${HR}" | ||
@echo "Bootstrap Lightbox successfully built at ${DATE}." | ||
@echo "${HR}\n" | ||
|
||
# | ||
# RUN JSHINT & QUNIT TESTS IN PHANTOMJS | ||
# | ||
|
||
test: | ||
./node_modules/.bin/jshint js/*.js --config js/.jshintrc | ||
./node_modules/.bin/jshint js/tests/unit/*.js --config js/.jshintrc | ||
node js/tests/server.js & | ||
phantomjs js/tests/phantom.js "http://localhost:3000/js/tests" | ||
kill -9 `cat js/tests/pid.txt` | ||
rm js/tests/pid.txt | ||
|
||
# | ||
# CLEANS THE ROOT DIRECTORY OF PRIOR BUILDS | ||
# | ||
|
||
clean: | ||
rm -r bootstrap | ||
|
||
# | ||
# MAKE FOR GH-PAGES 4 FAT & MDO ONLY (O_O ) | ||
# | ||
|
||
gh-pages: bootstrap docs | ||
rm -f docs/assets/bootstrap.zip | ||
zip -r docs/assets/bootstrap.zip bootstrap | ||
rm -r bootstrap | ||
rm -f ../bootstrap-gh-pages/assets/bootstrap.zip | ||
node docs/build production | ||
cp -r docs/* ../bootstrap-gh-pages |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.