Skip to content
Newer
Older
100644 229 lines (191 sloc) 8.51 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
e2606bc @gseguin Re-introduced structure CSS files
gseguin authored
96 @@node js/r.js -o cssIn=css/themes/default/jquery.mobile.theme.css out=${OUTPUT}/${NAME}.compiled.css
8c6498f @eddiemonge Fix license version and zip folder
eddiemonge authored
97 @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.css
e2606bc @gseguin Re-introduced structure CSS files
gseguin authored
98 @@cat ${OUTPUT}/${NAME}.compiled.css >> ${OUTPUT}/${NAME}.css
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
99 @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css
e2606bc @gseguin Re-introduced structure CSS files
gseguin authored
100 @@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${NAME}.compiled.css >> ${OUTPUT}/${NAME}.min.css
101 @@rm ${OUTPUT}/${NAME}.compiled.css
102 # Build the CSS Structure-only file
103 @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${STRUCTURE}.css
104 @@cat ${CSSFILES} >> ${OUTPUT}/${STRUCTURE}.css
105 # ..... and then minify it
106 @@echo ${VER_MIN} > ${OUTPUT}/${STRUCTURE}.min.css
107 @@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${STRUCTURE}.css >> ${OUTPUT}/${STRUCTURE}.min.css
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
108 # ..... and then copy in the images
109 @@cp -R css/themes/${THEME}/images ${OUTPUT}/
110 # Css portion is complete.
111 # -------------------------------------------------
112
113
114 docs: init css js
115 # Create the Demos/Docs/Tests/Tools
116 @@mkdir -p tmp/${NAME}
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
117 @@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
118 @@cp ${OUTPUT}/${NAME}.min.css ${OUTPUT}/${NAME}.min.js tmp/${NAME}/
119 # ... Update the JavaScript and CSS paths
120 @@find tmp/${NAME} -type f \
121 \( -name '*.html' -o -name '*.php' \) \
366d33e @eddiemonge Update Makefile to actually work on the server
eddiemonge authored
122 -exec perl -pi -e \
123 's|js/"|${NAME}.min.js"|g;s|css/themes/default/|${NAME}.min.css|g;s|js/jquery.js"|jquery.js"|g' {} \;
124 # ... Move and zip up the the whole folder
8c6498f @eddiemonge Fix license version and zip folder
eddiemonge authored
125 @@cd tmp; zip -rq ../${OUTPUT}/${NAME}.docs.zip ${NAME}
b7cd212 @eddiemonge Why three lines when 2 will suffice?
eddiemonge authored
126 @@mv tmp/${NAME} ${OUTPUT}/demos
366d33e @eddiemonge Update Makefile to actually work on the server
eddiemonge authored
127 # Finish by removing the temporary files
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
128 @@rm -rf tmp
129 # -------------------------------------------------
130
5f487bb @eddiemonge add images to path, remove nightly folder before moving to there so i…
eddiemonge authored
131
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
132 # Create the output directory. This is in a separate step so its not dependant on other targets
133 init:
134 # -------------------------------------------------
135 # Building jQuery Mobile in the "${OUTPUT}" folder
a65ac5f @eddiemonge change makefile to point to CDN
eddiemonge authored
136 @@rm -rf ${OUTPUT}
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
137 @@rm -rf tmp
138 @@mkdir -p ${OUTPUT}
139 # -------------------------------------------------
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
140
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
141
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
142 # Build and minify the JS files
143 js: init
144 # Build the JavaScript file
08b8955 @gseguin Use original r.js, externalized stripping of define/require to amd-st…
gseguin authored
145 @@node js/r.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
146 @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.js
08b8955 @gseguin Use original r.js, externalized stripping of define/require to amd-st…
gseguin authored
147 @@node js/amd-stripper.js ${OUTPUT}/${NAME}.tmp.js ${OUTPUT}/${NAME}.js
a922b8f @eddiemonge Dont output errors to js file, increase cache size
eddiemonge authored
148 @@rm ${OUTPUT}/${NAME}.tmp.js
08b8955 @gseguin Use original r.js, externalized stripping of define/require to amd-st…
gseguin authored
149 # ..... and then minify it
ca6fe9b @gseguin Changed js and css targets to use r.js and r-jqm.js
gseguin authored
150 @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
08b8955 @gseguin Use original r.js, externalized stripping of define/require to amd-st…
gseguin authored
151 @@java -XX:ReservedCodeCacheSize=64m \
152 -jar build/google-compiler-20111003.jar \
153 --js ${OUTPUT}/${NAME}.js \
154 --js_output_file ${OUTPUT}/${NAME}.tmp.js
155 @@cat ${OUTPUT}/${NAME}.tmp.js >> ${OUTPUT}/${NAME}.min.js
156 @@rm ${OUTPUT}/${NAME}.tmp.js
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
157 # -------------------------------------------------
158
159
160 # Output a message saying the process is complete
161 notify: init
162 @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
163 # -------------------------------------------------
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
164
165
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
166 # Zip up the jQm files without docs
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
167 zip: init css js
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
168 # Packaging up the files into a zip archive
0d283cb @eddiemonge combine the css structure min and license files
eddiemonge authored
169 @@mkdir tmp
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
170 @@cp -R ${OUTPUT} tmp/${NAME}
171 # ... And remove the Zipped docs so they aren't included twice (for deploy scripts)
172 @@rm -rf tmp/${NAME}/${NAME}.docs.zip
8c6498f @eddiemonge Fix license version and zip folder
eddiemonge authored
173 @@cd tmp; zip -rq ../${OUTPUT}/${NAME}.zip ${NAME}
0d283cb @eddiemonge combine the css structure min and license files
eddiemonge authored
174 @@rm -rf tmp
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
175 # -------------------------------------------------
176
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
177
178
19c952a @eddiemonge For all versions of make except for deploy, the outputted scripts wil…
eddiemonge authored
179
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
180 # -------------------------------------------------
181 # -------------------------------------------------
182 # -------------------------------------------------
183 #
184 # For jQuery Team Use Only
185 #
186 # -------------------------------------------------
187
188 # 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
189 latest: init css js zip
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
190 # Time to put these on the CDN
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
191 @@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
192 # Do some cleanup to wrap it up
193 @@rm -rf ${OUTPUT}
194 # -------------------------------------------------
195
196 # 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
197 nightlies: init css js docs zip
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
198 # Time to put these on the CDN
199 @@mkdir -p tmp/nightlies
200 @@mv ${OUTPUT} tmp/nightlies/$$(date "+%Y%m%d")
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
201 @@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
202 # Do some cleanup to wrap it up
203 @@rm -rf tmp
204 # -------------------------------------------------
205
206
207 # Deploy a finished release. This is manually done.
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
208 deploy: init css js docs zip
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-f…
eddiemonge authored
209 # Deploying all the files to the CDN
210 @@mkdir tmp
5acc18a @eddiemonge Add images to the docs, fix cp syntax, rearrange build dependencies t…
eddiemonge authored
211 @@cp -R ${OUTPUT} tmp/${VER_OFFICIAL}
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
212 @@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
213 @@rm -rf tmp/${VER_OFFICIAL}
214 @@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
215 # Create the Demos/Docs/Tests/Tools for jQueryMobile.com
ecf0b97 @eddiemonge Update the deployed files to use the CDN for the resources
eddiemonge authored
216 # ... By first replacing the paths
217 @@find tmp/${VER_OFFICIAL} -type f \
218 \( -name '*.html' -o -name '*.php' \) \
219 -exec perl -pi -e \
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
220 '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
221 # ... So they can be copied to jquerymobile.com
4a1f4f8 @eddiemonge Add quiet option to scp
eddiemonge authored
222 @@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
223 # Do some cleanup to wrap it up
224 @@rm -rf tmp
225 @@rm -rf ${OUTPUT}
226 # -------------------------------------------------
227
0d283cb @eddiemonge combine the css structure min and license files
eddiemonge authored
228
Something went wrong with that request. Please try again.