Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 222 lines (184 sloc) 8.529 kB
96c1647 @eddiemonge Changes so make can be run with just make nightly for the nightly builds
eddiemonge authored
1 # The files to include when compiling the JS files
2 JSFILES = js/jquery.ui.widget.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
3 js/jquery.mobile.widget.js \
4 js/jquery.mobile.media.js \
5 js/jquery.mobile.support.js \
6 js/jquery.mobile.vmouse.js \
7 js/jquery.mobile.event.js \
8 js/jquery.mobile.hashchange.js \
9 js/jquery.mobile.page.js \
10 js/jquery.mobile.core.js \
11 js/jquery.mobile.navigation.js \
e564eb1 first pass at implementing pushstate support from an external file.
scottjehl authored
12 js/jquery.mobile.navigation.pushstate.js \
19c0695 @jblas Changes to allow 3rd party transitions. Developers can now register a…
jblas authored
13 js/jquery.mobile.transition.js \
79d3aa6 brought back degradeInputs page option, this time as a decoupled page…
scottjehl authored
14 js/jquery.mobile.degradeInputs.js \
2a6c7fc This commit decouples all widgets from the page plugin so that they c…
scottjehl authored
15 js/jquery.mobile.dialog.js \
16 js/jquery.mobile.page.sections.js \
17 js/jquery.mobile.collapsible.js \
28b68f4 @jblas js/jquery.mobile.collapsibleSet.js was missing from the build.
jblas authored
18 js/jquery.mobile.collapsibleSet.js \
2a6c7fc This commit decouples all widgets from the page plugin so that they c…
scottjehl authored
19 js/jquery.mobile.fieldContain.js \
20 js/jquery.mobile.grid.js \
21 js/jquery.mobile.navbar.js \
22 js/jquery.mobile.listview.js \
23 js/jquery.mobile.listview.filter.js \
24 js/jquery.mobile.nojs.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
25 js/jquery.mobile.forms.checkboxradio.js \
2a6c7fc This commit decouples all widgets from the page plugin so that they c…
scottjehl authored
26 js/jquery.mobile.forms.button.js \
27 js/jquery.mobile.forms.slider.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
28 js/jquery.mobile.forms.textinput.js \
2b31533 @johnbender fixed build files to include custom select
johnbender authored
29 js/jquery.mobile.forms.select.custom.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
30 js/jquery.mobile.forms.select.js \
31 js/jquery.mobile.buttonMarkup.js \
32 js/jquery.mobile.controlGroup.js \
2a6c7fc This commit decouples all widgets from the page plugin so that they c…
scottjehl authored
33 js/jquery.mobile.links.js \
34 js/jquery.mobile.fixHeaderFooter.js \
b645781 implemented native overflow scrolling based on support for -[prefix]-…
scottjehl authored
35 js/jquery.mobile.fixHeaderFooter.native.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
36 js/jquery.mobile.init.js
37
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
38 # The files to include when compiling the CSS files
39 CSSFILES = css/structure/jquery.mobile.core.css \
bcbaa38 @eddiemonge 2700: Step 7 Silly me kept putting instead of . Fixed that typo
eddiemonge authored
40 css/structure/jquery.mobile.transitions.css \
41 css/structure/jquery.mobile.grids.css \
42 css/structure/jquery.mobile.headerfooter.css \
43 css/structure/jquery.mobile.navbar.css \
44 css/structure/jquery.mobile.button.css \
45 css/structure/jquery.mobile.collapsible.css \
46 css/structure/jquery.mobile.controlgroup.css \
47 css/structure/jquery.mobile.dialog.css \
48 css/structure/jquery.mobile.forms.checkboxradio.css \
49 css/structure/jquery.mobile.forms.fieldcontain.css \
50 css/structure/jquery.mobile.forms.select.css \
51 css/structure/jquery.mobile.forms.textinput.css \
52 css/structure/jquery.mobile.listview.css \
53 css/structure/jquery.mobile.forms.slider.css
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
54 CSSTHEMEFILES = css/themes/${THEME}/jquery.mobile.theme.css
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
55
c134acc @johnbender create separate structure and structure.min css
johnbender authored
56
57
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
58
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
59 # Helper Variables
60 # The command to replace the @VERSION in the files with the actual version
61 VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
5f2c402 @eddiemonge Add the current git version to the build process when its not a stabl…
eddiemonge authored
62 VER_MIN = "/*! jQuery Mobile v$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd") jquerymobile.com | jquery.org/license */"
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
63 VER_OFFICIAL = $(shell cat version.txt)
8c6498f @eddiemonge Fix license version and zip folder
eddiemonge authored
64 deploy: VER = sed "s/v@VERSION/${VER_OFFICIAL}/"
5f2c402 @eddiemonge Add the current git version to the build process when its not a stabl…
eddiemonge authored
65 deploy: VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */"
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
66
67 # The output folder for the finished files
68 OUTPUT = compiled
96c1647 @eddiemonge Changes so make can be run with just make nightly for the nightly builds
eddiemonge authored
69
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
70 # The name of the files
71 NAME = jquery.mobile
72 STRUCTURE = jquery.mobile.structure
73 deploy: NAME = jquery.mobile-${VER_OFFICIAL}
74 deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
75
ca6fe9b @gseguin Changed js and css targets to use r.js and r-jqm.js
gseguin authored
76 #Wrapper
77 WRAP_START = "(function( $$, undefined ) {"
78 WRAP_END = "}( jQuery ));"
79
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
80 # The CSS theme being used
81 THEME = default
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
82
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
83
84
85
86
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
87 # Build Targets
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
88
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
89 # When no build target is specified, all gets ran
90 all: init css js zip notify
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
91
92
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
93 # Build and minify the CSS files
94 css: init
95 # Build the CSS file with the theme included
ca6fe9b @gseguin Changed js and css targets to use r.js and r-jqm.js
gseguin authored
96 @@node js/r.js -o cssIn=css/themes/default/jquery.mobile.theme.css out=${OUTPUT}/${NAME}.tmp.css
8c6498f @eddiemonge Fix license version and zip folder
eddiemonge authored
97 @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.css
ca6fe9b @gseguin Changed js and css targets to use r.js and r-jqm.js
gseguin authored
98 @@cat ${OUTPUT}/${NAME}.tmp.css >> ${OUTPUT}/${NAME}.css
99 @@rm ${OUTPUT}/${NAME}.tmp.css
100 @@node js/r.js -o cssIn=css/themes/default/jquery.mobile.theme.css optimizeCss=standard out=${OUTPUT}/${NAME}.tmp.min.css
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
101 @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css
ca6fe9b @gseguin Changed js and css targets to use r.js and r-jqm.js
gseguin authored
102 @@cat ${OUTPUT}/${NAME}.tmp.min.css >> ${OUTPUT}/${NAME}.min.css
103 @@rm ${OUTPUT}/${NAME}.tmp.min.css
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
104 # ..... and then copy in the images
105 @@cp -R css/themes/${THEME}/images ${OUTPUT}/
106 # Css portion is complete.
107 # -------------------------------------------------
108
109
110 docs: init css js
111 # Create the Demos/Docs/Tests/Tools
112 @@mkdir -p tmp/${NAME}
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
113 @@cp -R index.html docs experiments external js/jquery.js tests css/themes/${THEME}/images tmp/${NAME}/
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
114 @@cp ${OUTPUT}/${NAME}.min.css ${OUTPUT}/${NAME}.min.js tmp/${NAME}/
115 # ... Update the JavaScript and CSS paths
116 @@find tmp/${NAME} -type f \
117 \( -name '*.html' -o -name '*.php' \) \
366d33e @eddiemonge Update Makefile to actually work on the server
eddiemonge authored
118 -exec perl -pi -e \
119 's|js/"|${NAME}.min.js"|g;s|css/themes/default/|${NAME}.min.css|g;s|js/jquery.js"|jquery.js"|g' {} \;
120 # ... Move and zip up the the whole folder
8c6498f @eddiemonge Fix license version and zip folder
eddiemonge authored
121 @@cd tmp; zip -rq ../${OUTPUT}/${NAME}.docs.zip ${NAME}
b7cd212 @eddiemonge Why three lines when 2 will suffice?
eddiemonge authored
122 @@mv tmp/${NAME} ${OUTPUT}/demos
366d33e @eddiemonge Update Makefile to actually work on the server
eddiemonge authored
123 # Finish by removing the temporary files
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
124 @@rm -rf tmp
125 # -------------------------------------------------
126
5f487bb @eddiemonge add images to path, remove nightly folder before moving to there so i…
eddiemonge authored
127
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
128 # Create the output directory. This is in a separate step so its not dependant on other targets
129 init:
130 # -------------------------------------------------
131 # Building jQuery Mobile in the "${OUTPUT}" folder
a65ac5f @eddiemonge change makefile to point to CDN
eddiemonge authored
132 @@rm -rf ${OUTPUT}
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
133 @@rm -rf tmp
134 @@mkdir -p ${OUTPUT}
135 # -------------------------------------------------
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
136
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
137
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
138 # Build and minify the JS files
139 js: init
140 # Build the JavaScript file
ca6fe9b @gseguin Changed js and css targets to use r.js and r-jqm.js
gseguin authored
141 @@node js/r-jqm.js -o baseUrl="js" include=jquery.mobile exclude=jquery,order out=${OUTPUT}/${NAME}.tmp.js wrap.start=${WRAP_START} wrap.end=${WRAP_END} optimize=none
8c6498f @eddiemonge Fix license version and zip folder
eddiemonge authored
142 @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.js
ca6fe9b @gseguin Changed js and css targets to use r.js and r-jqm.js
gseguin authored
143 @@cat ${OUTPUT}/${NAME}.tmp.js | sed "s/'order!/'/g" >> ${OUTPUT}/${NAME}.js
a922b8f @eddiemonge Dont output errors to js file, increase cache size
eddiemonge authored
144 @@rm ${OUTPUT}/${NAME}.tmp.js
ca6fe9b @gseguin Changed js and css targets to use r.js and r-jqm.js
gseguin authored
145 # Build the minified JavaScript file
146 @@node js/r-jqm.js -o baseUrl="js" include=jquery.mobile exclude=jquery,order out=${OUTPUT}/${NAME}.tmp.min.js wrap.start=${WRAP_START} wrap.end=${WRAP_END} optimize=uglify
147 @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
148 @@cat ${OUTPUT}/${NAME}.tmp.min.js | sed "s/'order!/'/g" >> ${OUTPUT}/${NAME}.min.js
149 @@rm ${OUTPUT}/${NAME}.tmp.min.js
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
150 # -------------------------------------------------
151
152
153 # Output a message saying the process is complete
154 notify: init
155 @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
156 # -------------------------------------------------
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
157
158
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
159 # Zip up the jQm files without docs
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
160 zip: init css js
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
161 # Packaging up the files into a zip archive
0d283cb @eddiemonge combine the css structure min and license files
eddiemonge authored
162 @@mkdir tmp
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
163 @@cp -R ${OUTPUT} tmp/${NAME}
164 # ... And remove the Zipped docs so they aren't included twice (for deploy scripts)
165 @@rm -rf tmp/${NAME}/${NAME}.docs.zip
8c6498f @eddiemonge Fix license version and zip folder
eddiemonge authored
166 @@cd tmp; zip -rq ../${OUTPUT}/${NAME}.zip ${NAME}
0d283cb @eddiemonge combine the css structure min and license files
eddiemonge authored
167 @@rm -rf tmp
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
168 # -------------------------------------------------
169
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
170
171
19c952a @eddiemonge For all versions of make except for deploy, the outputted scripts wil…
eddiemonge authored
172
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
173 # -------------------------------------------------
174 # -------------------------------------------------
175 # -------------------------------------------------
176 #
177 # For jQuery Team Use Only
178 #
179 # -------------------------------------------------
180
181 # Push the latest git version to the CDN. This is done on a post commit hook
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
182 latest: init css js zip
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
183 # Time to put these on the CDN
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
184 @@scp -qr ${OUTPUT}/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/latest/
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
185 # Do some cleanup to wrap it up
186 @@rm -rf ${OUTPUT}
187 # -------------------------------------------------
188
189 # Build the nightly backups. This is done on a server cronjob
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
190 nightlies: init css js docs zip
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
191 # Time to put these on the CDN
192 @@mkdir -p tmp/nightlies
193 @@mv ${OUTPUT} tmp/nightlies/$$(date "+%Y%m%d")
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
194 @@scp -qr tmp/nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
195 # Do some cleanup to wrap it up
196 @@rm -rf tmp
197 # -------------------------------------------------
198
199
200 # Deploy a finished release. This is manually done.
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
201 deploy: init css js docs zip
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
202 # Deploying all the files to the CDN
203 @@mkdir tmp
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
204 @@cp -R ${OUTPUT} tmp/${VER_OFFICIAL}
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
205 @@scp -qr tmp/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
206 @@rm -rf tmp/${VER_OFFICIAL}
207 @@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
208 # Create the Demos/Docs/Tests/Tools for jQueryMobile.com
ecf0b97 @eddiemonge Update the deployed files to use the CDN for the resources
eddiemonge authored
209 # ... By first replacing the paths
210 @@find tmp/${VER_OFFICIAL} -type f \
211 \( -name '*.html' -o -name '*.php' \) \
212 -exec perl -pi -e \
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
213 's|src="(.*)${NAME}.min.js"|src="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.js"|g;s|href="(.*)${NAME}.min.css"|href="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.css"|g;s|src="(.*)jquery.js"|src="//code.jquery.com/jquery-1.6.4.js"|g' {} \;
ecf0b97 @eddiemonge Update the deployed files to use the CDN for the resources
eddiemonge authored
214 # ... So they can be copied to jquerymobile.com
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
215 @@scp -qr tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
216 # Do some cleanup to wrap it up
217 @@rm -rf tmp
218 @@rm -rf ${OUTPUT}
219 # -------------------------------------------------
220
0d283cb @eddiemonge combine the css structure min and license files
eddiemonge authored
221
Something went wrong with that request. Please try again.