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.
23 lines
604 B
23 lines
604 B
14 years ago
|
JS_ENGINE ?= `which node nodejs`
|
||
|
ISO = jquery.isotope.js
|
||
|
ISO_MIN = jquery.isotope.min.js
|
||
|
|
||
|
# minifies jquery.isotope.js
|
||
|
# requires NodeJS and global uglify-js
|
||
|
min: ${ISO}
|
||
|
@@if test ! -z ${JS_ENGINE}; then \
|
||
|
echo "Minifying" ${ISO}; \
|
||
|
uglifyjs ${ISO} > ${ISO_MIN}.tmp; \
|
||
|
echo ';' >> ${ISO_MIN}.tmp; \
|
||
|
sed 's/\*\//&§/; y/§/\n/;' ${ISO_MIN}.tmp > ${ISO_MIN}; \
|
||
|
rm ${ISO_MIN}.tmp; \
|
||
|
else \
|
||
|
echo "NodeJS required for minification."; \
|
||
|
fi
|
||
|
|
||
|
# creates zip file of site
|
||
|
zip: _site
|
||
|
mkdir isotope-site
|
||
|
cp -r _site/ isotope-site
|
||
|
zip -r ~/Desktop/isotope-site.zip isotope-site/
|
||
|
rm -rf isotope-site
|