Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit 063ffdf

Browse files
author
Charles Jolley
committed
Modifications to build and deploy jquery mobile.
1 parent 1a82859 commit 063ffdf

File tree

3 files changed

+53
-3
lines changed

3 files changed

+53
-3
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ combine/
99
compiled/
1010
gitstatus.log
1111
refreshCDN
12+
css_final
13+
js_final
14+
images
15+
*.bpkg

Makefile

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ nightly: DIR = jquery.mobile
1717

1818
# The output folder for the finished files
1919
OUTPUT = compiled
20+
OUTPUT_FINAL_CSS = css_final
21+
OUTPUT_FINAL_JS = js_final
22+
OUTPUT_FINAL_IMAGES = images
2023

2124
# Command to remove the latest directory from the CDN before uploading, only if using latest target
2225
RMLATEST = echo ""
@@ -87,7 +90,7 @@ CSSFILES = themes/default/jquery.mobile.theme.css \
8790

8891
# By default, this is what get runs when make is called without any arguments.
8992
# Min and un-min CSS and JS files are the only things built
90-
all: init js min css cssmin notify
93+
all: init js min css cssmin images notify
9194

9295
# Build the normal CSS file.
9396
css: init
@@ -98,7 +101,7 @@ css: init
98101
# Build the minified CSS file
99102
cssmin: init css
100103
# Build the minified CSS file
101-
@@java -jar build/yuicompressor-2.4.4.jar --type css ${OUTPUT}/${CSS} >> ${OUTPUT}/${CSSMIN}
104+
@@java -jar build/yuicompressor-2.4.4.jar --type css ${OUTPUT}/${CSS} >> ${OUTPUT_FINAL_CSS}/${CSSMIN}
102105

103106
# Build the normal JS file
104107
js: init
@@ -112,12 +115,20 @@ init:
112115
@@rm -rf ${OUTPUT}
113116
@@mkdir ${OUTPUT}
114117

118+
@@rm -rf ${OUTPUT_FINAL_CSS}
119+
@@mkdir ${OUTPUT_FINAL_CSS}
120+
121+
@@rm -rf ${OUTPUT_FINAL_JS}
122+
@@mkdir ${OUTPUT_FINAL_JS}
123+
124+
@@rm -rf images
125+
115126
# Build the minified JS file
116127
min: init js
117128
# Build the minified JavaScript file
118129
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${MIN}
119130
@@java -jar build/google-compiler-20110405.jar --js ${OUTPUT}/${JS} --warning_level QUIET --js_output_file ${MIN}.tmp
120-
@@cat ${MIN}.tmp >> ${OUTPUT}/${MIN}
131+
@@cat ${MIN}.tmp >> ${OUTPUT_FINAL_JS}/${MIN}
121132
@@rm -f ${MIN}.tmp
122133

123134
# Let the user know the files were built and where they are
@@ -128,6 +139,10 @@ notify:
128139
pull:
129140
@@git pull --quiet
130141

142+
# Images
143+
images: init
144+
@@cp -r themes/default/images .
145+
131146
# Zip the 4 files and the theme images into one convenient package
132147
zip: init js min css cssmin
133148
@@mkdir -p ${DIR}

package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "jquery-mobile",
3+
"version": "1.0.b2.2",
4+
"summary": "Progressively enhanced mobile for jquery applications",
5+
"description": "Progressive enhancement for mobile",
6+
"author": "John Resig",
7+
"homepage": "http://jquerymobile.org",
8+
"directories": {
9+
"lib": ["js_final"],
10+
"css": ["css_final"]
11+
},
12+
13+
"dependencies": {
14+
"jquery": "~> 1.6"
15+
},
16+
17+
"bpm:build": {
18+
19+
"jquery-mobile/bpm_styles.css": {
20+
"directories": ["css"]
21+
},
22+
23+
"bpm_styles.css": {
24+
"directories": []
25+
},
26+
27+
"jquery-mobile": {
28+
"assets": ["images"]
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)