mirror of https://github.com/metafizzy/isotope
Filter & sort magical layouts
http://isotope.metafizzy.co
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
481 B
17 lines
481 B
#!/bin/bash |
|
|
|
# minifies jquery.isotope.js |
|
# requires nodejs & uglifyjs |
|
|
|
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 |
|
# add trailing semicolon |
|
echo ';' >> $OUT |
|
echo "Minified" $IN "as" $OUT
|
|
|