Skip to content

Commit

Permalink
tick version v1.5.26
Browse files Browse the repository at this point in the history
+ update ©️ 2014
+ minify with uglify-js (uglifyjs 2)
  • Loading branch information
desandro committed Jan 25, 2014
1 parent 8b7e681 commit 9a66278
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ View the [commit history](https://github.com/desandro/isotope/commits/master/jqu

* * *

Copyright (c) 2011-2012 David DeSandro / Metafizzy LLC
Copyright (c) 2011-2014 David DeSandro / Metafizzy LLC
4 changes: 2 additions & 2 deletions jquery.isotope.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Isotope v1.5.25
* Isotope v1.5.26
* An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co
*
Expand All @@ -8,7 +8,7 @@
*
* Non-commercial use is licensed under the MIT License
*
* Copyright 2013 Metafizzy
* Copyright 2014 Metafizzy
*/

/*jshint asi: true, browser: true, curly: true, eqeqeq: true, forin: false, immed: false, newcap: true, noempty: true, strict: true, undef: true */
Expand Down
6 changes: 3 additions & 3 deletions jquery.isotope.min.js

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions minify.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#!/bin/bash

# minifies jquery.isotope.js
# requires nodejs & uglifyjs
# requires nodejs & uglify-js

IN=jquery.isotope.js
OUT=jquery.isotope.min.js

# remove any lines that begin with /*jshint or /*global
# then, minify with Uglify JS
# then, add newline characters after `*/`, but not last newline character
awk '!/^\/\*[jshint|global]/' $IN \
| uglifyjs \
| awk '{ORS=""; gsub(/\*\//,"*/\n"); if (NR!=1) print "\n"; print;}' > $OUT
echo "Minified" $IN "as" $OUT
uglifyjs $IN --compress conditionals=true --mangle --comments --output $OUT

0 comments on commit 9a66278

Please sign in to comment.