new minification
This commit is contained in:
parent
dd17435a20
commit
3be9e00e2a
|
@ -20,12 +20,13 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# minifies the JavaScript files
|
# minifies the JavaScript files
|
||||||
|
set -x
|
||||||
function minify {
|
function minify {
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
echo "Minify JS files in $dir"
|
echo "Minify JS files in $dir"
|
||||||
local files=`ls $dir/*.js`
|
local files=`ls $dir/*.js`
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
closure-compiler --charset UTF-8 --js file --js_output_file ${file}-MIN
|
closure-compiler --charset UTF-8 --js $file --js_output_file ${file}-MIN
|
||||||
rm $file
|
rm $file
|
||||||
mv ${file}-MIN $file
|
mv ${file}-MIN $file
|
||||||
# add final new line to supress Debian warnings
|
# add final new line to supress Debian warnings
|
||||||
|
@ -39,7 +40,7 @@ function minifyCSS {
|
||||||
echo "Minify CSS files in $dir"
|
echo "Minify CSS files in $dir"
|
||||||
local files=`ls $dir/*.css`
|
local files=`ls $dir/*.css`
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
cleancss -o ${file}-MIN $file file
|
cleancss -o ${file}-MIN $file
|
||||||
rm $file
|
rm $file
|
||||||
mv ${file}-MIN $file
|
mv ${file}-MIN $file
|
||||||
# add final new line to supress Debian warnings
|
# add final new line to supress Debian warnings
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
files=`ls templates/lib/*.js`
|
files=`ls templates/lib/*.js`
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
closure-compiler --charset UTF-8 --js file --js_output_file ${file}-MIN
|
closure-compiler --charset UTF-8 --js $file --js_output_file ${file}-MIN
|
||||||
rm $file
|
rm $file
|
||||||
mv ${file}-MIN $file
|
mv ${file}-MIN $file
|
||||||
# add final new line to supress Debian warnings
|
# add final new line to supress Debian warnings
|
||||||
|
@ -13,7 +13,7 @@ done
|
||||||
|
|
||||||
files=`ls style/*.css`
|
files=`ls style/*.css`
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
cleancss -o ${file}-MIN $file file
|
cleancss -o ${file}-MIN $file
|
||||||
rm $file
|
rm $file
|
||||||
mv ${file}-MIN $file
|
mv ${file}-MIN $file
|
||||||
# add final new line to supress Debian warnings
|
# add final new line to supress Debian warnings
|
||||||
|
|
|
@ -59,12 +59,12 @@
|
||||||
// top-level LI's and top level A's and SPANs
|
// top-level LI's and top level A's and SPANs
|
||||||
$topl
|
$topl
|
||||||
.css({
|
.css({
|
||||||
float : 'right'
|
'float' : 'right'
|
||||||
})
|
})
|
||||||
.find('> a, > span')
|
.find('> a, > span')
|
||||||
.addClass('toplevel')
|
.addClass('toplevel')
|
||||||
.css({
|
.css({
|
||||||
float : 'right'
|
'float' : 'right'
|
||||||
});
|
});
|
||||||
|
|
||||||
// all sub-ULs
|
// all sub-ULs
|
||||||
|
|
Loading…
Reference in New Issue