Permalink
Browse files

add nuget building + version update in build

  • Loading branch information...
1 parent ac292a8 commit a846396cffbf84929d7a8eb3f544f485e43c439c @RobinHerbots committed Mar 1, 2013
View
@@ -1,2 +1 @@
-dist
InputMask
View
@@ -1,8 +1,14 @@
# Path for the Google Compiler jar file. By default in the same directory as this properties file.
GoogleCompiler = tools/compiler.jar
+NugetExe = NuGet.exe
srcdir = js
distdir = dist
+build.major = 1
+build.minor = 3
+build.revision = 4
+
target = jquery.inputmask.js
-target.min = jquery.inputmask.min.js
+target.min = jquery.inputmask.min.js
+nuspec = jquery.inputmask.nuspec
View
@@ -8,12 +8,20 @@
<mkdir dir="${distdir}" />
</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}">
- <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>
</target>
@@ -51,7 +59,16 @@
</apply>
</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">
<delete dir="${distdir}" />
Binary file not shown.
@@ -3,7 +3,7 @@
* http://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) 2010 - 2012 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 1.3.4
+* Version: 1.3.43
*/
(function ($) {
@@ -1085,7 +1085,7 @@ Input Mask plugin extensions
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2013 Robin Herbots
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
*/
@@ -1182,7 +1182,7 @@ Input Mask plugin extensions
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2012 Robin Herbots
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
*/
@@ -1660,7 +1660,7 @@ Input Mask plugin extensions
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2012 Robin Herbots
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
*/
@@ -3,7 +3,7 @@
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2012 Robin Herbots
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
- Version: 1.3.4
+ Version: 1.3.43
*/
(function(f){void 0==f.fn.inputmask&&(f.inputmask={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},escapeChar:"\\",mask:null,oncomplete:f.noop,onincomplete:f.noop,oncleared:f.noop,repeat:0,greedy:!0,autoUnmask:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},onKeyUp:f.noop,onKeyDown:f.noop,showMaskOnHover:!0,onKeyValidation:f.noop,numericInput:!1,radixPoint:".",definitions:{9:{validator:"[0-9]",cardinality:1},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451]",cardinality:1},
"*":{validator:"[A-Za-z\u0410-\u044f\u0401\u04510-9]",cardinality:1}},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},ignorables:[9,13,19,27,33,34,35,36,37,38,39,40,45,46,
@@ -3,7 +3,7 @@
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2012 Robin Herbots
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
- Version: 1.3.4
+ Version: 1.3.43
*/
(function(e){void 0==e.fn.inputmask&&(e.inputmask={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},escapeChar:"\\",mask:null,oncomplete:e.noop,onincomplete:e.noop,oncleared:e.noop,repeat:0,greedy:!0,autoUnmask:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},onKeyUp:e.noop,onKeyDown:e.noop,showMaskOnHover:!0,onKeyValidation:e.noop,numericInput:!1,radixPoint:".",definitions:{9:{validator:"[0-9]",cardinality:1},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451]",cardinality:1},
"*":{validator:"[A-Za-z\u0410-\u044f\u0401\u04510-9]",cardinality:1}},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},ignorables:[9,13,19,27,33,34,35,36,37,38,39,40,45,46,
@@ -3,7 +3,7 @@ Input Mask plugin extensions
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2012 Robin Herbots
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
*/
@@ -3,7 +3,7 @@ Input Mask plugin extensions
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2013 Robin Herbots
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
*/
@@ -3,7 +3,7 @@
* http://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) 2010 - 2012 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 1.3.4
+* Version: 1.3.43
*/
(function ($) {
@@ -3,7 +3,7 @@ Input Mask plugin extensions
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2012 Robin Herbots
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
*/
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>jQuery.InputMask</id>
- <version>1.3.4</version>
+ <version>1.3.43</version>
<title>jQuery Input Mask</title>
<authors>Robin Herbots</authors>
<owners>Robin Herbots</owners>

0 comments on commit a846396

Please sign in to comment.