Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added nuget-release task to build process.

  • Loading branch information...
commit 6124173bca857d363be95f9c8fa3165d69092f6c 1 parent ad43c76
Johan Sörlin authored
18  build.xml
@@ -308,6 +308,7 @@
308 308
 	</target>
309 309
 
310 310
 	<target name="prepare-release" depends="prepare-release-files, prepare-versions, prepare-examples, prepare-version-queries" />
  311
+
311 312
 	<!--TODO consider if the community release name is the right one for this. -->
312 313
 	<target name="community-release" depends="prepare-release" description="Builds release packages">
313 314
 		<!-- Compress development package -->
@@ -365,7 +366,6 @@
365 366
 
366 367
 	<!-- TODO does this belong here? how does this fit in with Ephox? -->
367 368
 	<target name="commercial-release" depends="prepare-release">
368  
-
369 369
 		<!-- Remove copyright headers for commercial version -->
370 370
 		<replaceregexp match="^/\*(.*?)\*\/\s*" replace="" flags="gs" byline="false">
371 371
 			<fileset dir="${temp_dir}/tinymce">
@@ -394,6 +394,22 @@ If you have any questions regarding your license, contact Moxiecode Systems AB (
394 394
 		</zip>
395 395
 	</target>
396 396
 
  397
+	<target name="nuget-release" depends="prepare-release">
  398
+		<!-- Main package -->
  399
+		<copy tofile="${temp_dir}\TinyMCE.nuspec" file="tools\nuget\TinyMCE.nuspec" overwrite="true" />
  400
+		<replaceregexp file="${temp_dir}\TinyMCE.nuspec" match="@@version@@" replace="${version}" flags="g" />
  401
+		<exec executable="NuGet.exe">
  402
+			<arg line="pack ${temp_dir}\TinyMCE.nuspec -OutputDirectory tmp"/>
  403
+		</exec>
  404
+
  405
+		<!-- jQuery package with dep to main -->
  406
+		<copy tofile="${temp_dir}\TinyMCE.jQuery.nuspec" file="tools\nuget\TinyMCE.jQuery.nuspec" overwrite="true" />
  407
+		<replaceregexp file="${temp_dir}\TinyMCE.jQuery.nuspec" match="@@version@@" replace="${version}" flags="g" />
  408
+		<exec executable="NuGet.exe">
  409
+			<arg line="pack ${temp_dir}\TinyMCE.jQuery.nuspec -OutputDirectory tmp"/>
  410
+		</exec>
  411
+	</target>
  412
+
397 413
 	<target name="release" depends="community-release, production-release, jquery-release, commercial-release" />
398 414
 
399 415
 	<target name="addsuffixes" description="Adds version suffixes to all requests">
24  tools/nuget/TinyMCE.jQuery.nuspec
... ...
@@ -0,0 +1,24 @@
  1
+<?xml version="1.0"?>
  2
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
  3
+  <metadata>
  4
+    <id>TinyMCE.jQuery</id>
  5
+    <version>@@version@@</version>
  6
+    <authors>Moxiecode Systems AB</authors>
  7
+    <owners>Moxiecode Systems AB, Tugberk Ugurlu</owners>
  8
+    <licenseUrl>http://www.tinymce.com/license</licenseUrl>
  9
+    <projectUrl>http://tinymce.moxiecode.com/</projectUrl>
  10
+    <iconUrl>http://tinymce.moxiecode.com/favicon.ico</iconUrl>
  11
+    <requireLicenseAcceptance>true</requireLicenseAcceptance>
  12
+    <description>TinyMCE.jQuery is special jQuery build of TinyMCE and a jQuery integration plugin. TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB. TinyMCE has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems.</description>
  13
+    <summary>TinyMCE.jQuery is special jQuery build of TinyMCE and a jQuery integration plugin.</summary>
  14
+    <tags>Editor TinyMCE HTML HTMLEditor JQuery</tags>
  15
+    <dependencies>
  16
+      <dependency id="TinyMCE" version="@@version@@" />
  17
+      <dependency id="JQuery" version="(1.4.3, )" />
  18
+    </dependencies>
  19
+  </metadata>
  20
+  <files>
  21
+    <file src="tinymce\jscripts\tiny_mce\jquery.tinymce.js" target="content\scripts\tinymce\jquery.tinymce.js" />
  22
+    <file src="tinymce\jscripts\tiny_mce\tiny_mce_jquery.js" target="content\scripts\tinymce\tiny_mce_jquery.js" />
  23
+  </files>
  24
+</package>
26  tools/nuget/TinyMCE.nuspec
... ...
@@ -0,0 +1,26 @@
  1
+<?xml version="1.0"?>
  2
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
  3
+  <metadata>
  4
+    <id>TinyMCE</id>
  5
+    <version>@@version@@</version>
  6
+    <authors>Moxiecode Systems AB</authors>
  7
+    <owners>Moxiecode Systems AB, Tugberk Ugurlu</owners>
  8
+    <licenseUrl>http://www.tinymce.com/license</licenseUrl>
  9
+    <projectUrl>http://tinymce.moxiecode.com/</projectUrl>
  10
+    <iconUrl>http://tinymce.moxiecode.com/favicon.ico</iconUrl>
  11
+    <requireLicenseAcceptance>true</requireLicenseAcceptance>
  12
+    <description>The best WYSIWYG editor! TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB. TinyMCE has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems.</description>
  13
+    <summary>TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB.</summary>
  14
+    <tags>Editor TinyMCE HTML HTMLEditor</tags>
  15
+  </metadata>
  16
+  <files>
  17
+    <file src="tinymce\jscripts\tiny_mce\langs\**\*.*" target="content\scripts\tinymce\langs" />
  18
+	<file src="tinymce\jscripts\tiny_mce\plugins\**\*.*" target="content\scripts\tinymce\plugins" />
  19
+	<file src="tinymce\jscripts\tiny_mce\themes\**\*.*" target="content\scripts\tinymce\themes" />
  20
+	<file src="tinymce\jscripts\tiny_mce\utils\**\*.*" target="content\scripts\tinymce\utils" />
  21
+	<file src="tinymce\jscripts\tiny_mce\tiny_mce.js" target="content\scripts\tinymce\tiny_mce.js" />
  22
+	<file src="tinymce\jscripts\tiny_mce\tiny_mce_src.js" target="content\scripts\tinymce\tiny_mce_src.js" />
  23
+	<file src="tinymce\jscripts\tiny_mce\tiny_mce_popup.js" target="content\scripts\tinymce\tiny_mce_popup.js" />
  24
+	<file src="tinymce\jscripts\tiny_mce\license.txt" target="content\scripts\tinymce\license.txt" />
  25
+  </files>
  26
+</package>

0 notes on commit 6124173

Please sign in to comment.
Something went wrong with that request. Please try again.