Browse Source

add nuget building + version update in build

Robin Herbots 12 years ago
parent
commit
a846396cff

+ 0 - 1
.gitignore

@@ -1,2 +1 @@
-dist
 InputMask
 InputMask

+ 7 - 1
build.properties

@@ -1,8 +1,14 @@
 # Path for the Google Compiler jar file. By default in the same directory as this properties file.
 # Path for the Google Compiler jar file. By default in the same directory as this properties file.
 GoogleCompiler = tools/compiler.jar
 GoogleCompiler = tools/compiler.jar
+NugetExe = NuGet.exe
 
 
 srcdir = js
 srcdir = js
 distdir = dist
 distdir = dist
 
 
+build.major = 1
+build.minor = 3
+build.revision = 4
+
 target = jquery.inputmask.js
 target = jquery.inputmask.js
-target.min = jquery.inputmask.min.js
+target.min = jquery.inputmask.min.js
+nuspec = jquery.inputmask.nuspec

+ 23 - 6
build.xml

@@ -8,12 +8,20 @@
         <mkdir dir="${distdir}" />
         <mkdir dir="${distdir}" />
     </target>
     </target>
 
 
-    <target name="jquery.inputmask" depends="init">
+	<target name="updateVersions">
+       <replaceregexp file="nuget/jquery.inputmask.nuspec" match="&lt;version&gt;.*&lt;/version&gt;" replace="&lt;version&gt;${build.major}.${build.minor}.${build.revision}&lt;/version&gt;" />
+	   <replaceregexp file="${srcdir}/jquery.inputmask.js" match="Version:.*" replace="Version: ${build.major}.${build.minor}.${build.revision}"  byline="true"/>
+	   <replaceregexp file="${srcdir}/jquery.inputmask.extensions.js" match="Version:.*" replace="Version: ${build.major}.${build.minor}.${build.revision}"  byline="true"/>
+	   <replaceregexp file="${srcdir}/jquery.inputmask.date.extensions.js" match="Version:.*" replace="Version: ${build.major}.${build.minor}.${build.revision}"  byline="true"/>
+	   <replaceregexp file="${srcdir}/jquery.inputmask.numeric.extensions.js" match="Version:.*" replace="Version: ${build.major}.${build.minor}.${build.revision}"  byline="true"/>
+    </target>
+	
+    <target name="jquery.inputmask" depends="init, updateVersions">
         <concat destfile="${distdir}/${target}">
         <concat destfile="${distdir}/${target}">
-			<fileset file="js/jquery.inputmask.js"/>
-			<fileset file="js/jquery.inputmask.extensions.js"/>
-			<fileset file="js/jquery.inputmask.date.extensions.js"/>
-			<fileset file="js/jquery.inputmask.numeric.extensions.js"/>
+			<fileset file="${srcdir}/jquery.inputmask.js"/>
+			<fileset file="${srcdir}/jquery.inputmask.extensions.js"/>
+			<fileset file="${srcdir}/jquery.inputmask.date.extensions.js"/>
+			<fileset file="${srcdir}/jquery.inputmask.numeric.extensions.js"/>
         </concat>
         </concat>
     </target>
     </target>
 
 
@@ -51,7 +59,16 @@
         </apply>
         </apply>
     </target>
     </target>
 
 
-    <target name="build" depends="jquery.inputmask, jquery.inputmask.min, minfiles"/>
+	 <target name="jquery.inputmask.nuget" depends="jquery.inputmask, jquery.inputmask.min, minfiles">
+        <exec executable="${NugetExe}" failonerror="true" dir="tools" vmlauncher="false" osfamily="windows" >
+			 <arg value="pack"/>
+			 <arg value="..\nuget\${nuspec}" />
+			 <arg value="-OutputDirectory" />
+			 <arg value="..\${distdir}" />
+        </exec>
+    </target>
+	
+    <target name="build" depends="jquery.inputmask, jquery.inputmask.min, minfiles, jquery.inputmask.nuget"/>
 
 
     <target name="clean">
     <target name="clean">
         <delete dir="${distdir}" />
         <delete dir="${distdir}" />

BIN
dist/jQuery.InputMask.1.3.43.nupkg


+ 4 - 4
dist/jquery.inputmask.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2012 Robin Herbots
 * Copyright (c) 2010 - 2012 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 1.3.4
+* Version: 1.3.43
 */
 */
 
 
 (function ($) {
 (function ($) {
@@ -1085,7 +1085,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 1.3.4
+Version: 1.3.43
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */
@@ -1182,7 +1182,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2012 Robin Herbots
 Copyright (c) 2010 - 2012 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 1.3.4
+Version: 1.3.43
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */
@@ -1660,7 +1660,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2012 Robin Herbots
 Copyright (c) 2010 - 2012 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 1.3.4
+Version: 1.3.43
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */

File diff suppressed because it is too large
+ 1 - 1
dist/jquery.inputmask.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/min/jquery.inputmask.js


+ 1 - 1
js/jquery.inputmask.date.extensions.js

@@ -3,7 +3,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2012 Robin Herbots
 Copyright (c) 2010 - 2012 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 1.3.4
+Version: 1.3.43
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */

+ 1 - 1
js/jquery.inputmask.extensions.js

@@ -3,7 +3,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 1.3.4
+Version: 1.3.43
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */

+ 1 - 1
js/jquery.inputmask.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2012 Robin Herbots
 * Copyright (c) 2010 - 2012 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 1.3.4
+* Version: 1.3.43
 */
 */
 
 
 (function ($) {
 (function ($) {

+ 1 - 1
js/jquery.inputmask.numeric.extensions.js

@@ -3,7 +3,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2012 Robin Herbots
 Copyright (c) 2010 - 2012 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 1.3.4
+Version: 1.3.43
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */

+ 1 - 1
nuget/jquery.inputmask.nuspec

@@ -2,7 +2,7 @@
 <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
 <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
     <metadata>
     <metadata>
         <id>jQuery.InputMask</id>
         <id>jQuery.InputMask</id>
-        <version>1.3.4</version>
+        <version>1.3.43</version>
         <title>jQuery Input Mask</title>
         <title>jQuery Input Mask</title>
         <authors>Robin Herbots</authors>
         <authors>Robin Herbots</authors>
         <owners>Robin Herbots</owners>
         <owners>Robin Herbots</owners>