Skip to content

Commit

Permalink
WIP 0.6.0
Browse files Browse the repository at this point in the history
* 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
Show file tree
Hide file tree
Showing 24 changed files with 2,578 additions and 919 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: node_js
node_js:
- 0.8
- 0.6
152 changes: 0 additions & 152 deletions Gruntfile.js

This file was deleted.

63 changes: 63 additions & 0 deletions Makefile
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
80 changes: 0 additions & 80 deletions build/bootstrap-lightbox.css

This file was deleted.

Loading

0 comments on commit fd5df13

Please sign in to comment.