@@ -45,7 +45,7 @@ echo "------------------------"
45
45
echo
46
46
47
47
# NOTE: this will be different for minor and major releases
48
- version_new=` cat version.txt `
48
+ version_new=` node -e " console.log(require( \" ${repo_dir} /package \" ).version) " `
49
49
version_new=${version_new: 0: $((${# version_new} - 3))}
50
50
major_minor=${version_new% .* }
51
51
point=${version_new##* .}
@@ -154,21 +154,23 @@ echo "| UPDATING VERSION |"
154
154
echo " --------------------"
155
155
echo
156
156
157
- echo " Updating version.txt to $version_new ..."
158
- echo $version_new > version.txt
157
+ echo " Updating package.json to $version_new ..."
158
+ sed " s/\(version\" : \" \)\([^\" ]*\)/\1${version_new} /" < package.json > _package.json
159
+ mv _package.json package.json
159
160
160
161
git commit -a -m " Tagging the $version_new release."
161
162
version_new_time=` git log -1 --pretty=format:" %ad" `
162
- echo " Committed version.txt at $version_new_time ..."
163
+ echo " Committed package.json at $version_new_time ..."
163
164
164
165
echo " Tagging $version_new ..."
165
166
git tag $version_new
166
167
167
- echo " Updating version.txt to $version_next ..."
168
- echo $version_next > version.txt
168
+ echo " Updating package.json to $version_next ..."
169
+ sed " s/\(version\" : \" \)\([^\" ]*\)/\1${version_next} /" < package.json > _package.json
170
+ mv _package.json package.json
169
171
170
172
git commit -a -m " Updating the $git_branch version to $version_next "
171
- echo " Committed version.txt ..."
173
+ echo " Committed package.json ..."
172
174
173
175
echo
174
176
echo " Version update complete."
@@ -239,16 +241,14 @@ echo
239
241
# check out the tagged version
240
242
echo " Checking out $version_new ..."
241
243
git checkout $version_new
242
- cd build
243
244
244
- # Update the link to the docs (never contains the patch version)
245
- echo " Updating URL for API docs..."
246
- sed " s/UI\/API\/\$ {release\.version}/UI\/API\/$major_minor /" build.xml > build.xml.tmp
247
- mv build.xml.tmp build.xml
245
+ # install dependencies
246
+ echo " Installing dependencies..."
247
+ npm install
248
248
249
249
# Run the build
250
250
echo " Running build..."
251
- ant
251
+ grunt release
252
252
253
253
echo
254
254
echo " Build complete."
@@ -300,7 +300,7 @@ svn co --depth immediates https://jquery-ui.googlecode.com/svn/tags
300
300
cd tags
301
301
302
302
echo " Unzipping build into tags/$version_new ..."
303
- unzip $repo_dir /build/ dist/jquery-ui-$version_new .zip
303
+ unzip $repo_dir /dist/jquery-ui-$version_new .zip
304
304
mv jquery-ui-$version_new $version_new
305
305
306
306
echo " Adding files to SVN..."
328
328
329
329
#
330
330
# Generate themes
331
- #
331
+ #
332
332
333
333
334
334
0 commit comments