forked from jquery-archive/jquery-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss.sh
More file actions
35 lines (34 loc) · 1.48 KB
/
css.sh
File metadata and controls
35 lines (34 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
source build/bin/config.sh
# Build the CSS file with the theme included
$RUN_JS \
external/r.js/dist/r.js \
-o cssIn=css/themes/default/jquery.mobile.css \
optimizeCss=standard.keepComments.keepLines \
out=$OUTPUT/$NAME.compiled.css
cat LICENSE-INFO.txt | ver > $OUTPUT/$NAME.css
cat $OUTPUT/$NAME.compiled.css >> $OUTPUT/$NAME.css
echo $VER_MIN > $OUTPUT/$NAME.min.css
java -XX:ReservedCodeCacheSize=64m -jar build/yuicompressor-2.4.6.jar --type css $OUTPUT/$NAME.compiled.css >> $OUTPUT/$NAME.min.css
rm $OUTPUT/$NAME.compiled.css
# Build the CSS Structure-only file
$RUN_JS external/r.js/dist/r.js \
-o cssIn=css/structure/jquery.mobile.structure.css \
out=$OUTPUT/$STRUCTURE.compiled.css
cat LICENSE-INFO.txt | ver > $OUTPUT/$STRUCTURE.css
cat $OUTPUT/$STRUCTURE.compiled.css >> $OUTPUT/$STRUCTURE.css
# ..... and then minify it
echo $VER_MIN > $OUTPUT/$STRUCTURE.min.css
java -XX:ReservedCodeCacheSize=64m \
-jar build/yuicompressor-2.4.6.jar \
--type css $OUTPUT/$STRUCTURE.compiled.css >> $OUTPUT/$STRUCTURE.min.css
rm $OUTPUT/$STRUCTURE.compiled.css
# Build the theme only file
cat LICENSE-INFO.txt | ver > $OUTPUT/$THEME_FILENAME.css
cat css/themes/default/jquery.mobile.theme.css >> $OUTPUT/$THEME_FILENAME.css
# ..... and then minify it
echo $VER_MIN > $OUTPUT/$THEME_FILENAME.min.css
java -XX:ReservedCodeCacheSize=64m \
-jar build/yuicompressor-2.4.6.jar \
--type css $OUTPUT/$THEME_FILENAME.css >> $OUTPUT/$THEME_FILENAME.min.css
# Copy in the images
cp -R css/themes/$THEME/images $OUTPUT/