Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added nuget-release task to build process.

  • Loading branch information...
commit 6124173bca857d363be95f9c8fa3165d69092f6c 1 parent ad43c76
@spocke spocke authored
View
18 build.xml
@@ -308,6 +308,7 @@
</target>
<target name="prepare-release" depends="prepare-release-files, prepare-versions, prepare-examples, prepare-version-queries" />
+
<!--TODO consider if the community release name is the right one for this. -->
<target name="community-release" depends="prepare-release" description="Builds release packages">
<!-- Compress development package -->
@@ -365,7 +366,6 @@
<!-- TODO does this belong here? how does this fit in with Ephox? -->
<target name="commercial-release" depends="prepare-release">
-
<!-- Remove copyright headers for commercial version -->
<replaceregexp match="^/\*(.*?)\*\/\s*" replace="" flags="gs" byline="false">
<fileset dir="${temp_dir}/tinymce">
@@ -394,6 +394,22 @@ If you have any questions regarding your license, contact Moxiecode Systems AB (
</zip>
</target>
+ <target name="nuget-release" depends="prepare-release">
+ <!-- Main package -->
+ <copy tofile="${temp_dir}\TinyMCE.nuspec" file="tools\nuget\TinyMCE.nuspec" overwrite="true" />
+ <replaceregexp file="${temp_dir}\TinyMCE.nuspec" match="@@version@@" replace="${version}" flags="g" />
+ <exec executable="NuGet.exe">
+ <arg line="pack ${temp_dir}\TinyMCE.nuspec -OutputDirectory tmp"/>
+ </exec>
+
+ <!-- jQuery package with dep to main -->
+ <copy tofile="${temp_dir}\TinyMCE.jQuery.nuspec" file="tools\nuget\TinyMCE.jQuery.nuspec" overwrite="true" />
+ <replaceregexp file="${temp_dir}\TinyMCE.jQuery.nuspec" match="@@version@@" replace="${version}" flags="g" />
+ <exec executable="NuGet.exe">
+ <arg line="pack ${temp_dir}\TinyMCE.jQuery.nuspec -OutputDirectory tmp"/>
+ </exec>
+ </target>
+
<target name="release" depends="community-release, production-release, jquery-release, commercial-release" />
<target name="addsuffixes" description="Adds version suffixes to all requests">
View
24 tools/nuget/TinyMCE.jQuery.nuspec
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata>
+ <id>TinyMCE.jQuery</id>
+ <version>@@version@@</version>
+ <authors>Moxiecode Systems AB</authors>
+ <owners>Moxiecode Systems AB, Tugberk Ugurlu</owners>
+ <licenseUrl>http://www.tinymce.com/license</licenseUrl>
+ <projectUrl>http://tinymce.moxiecode.com/</projectUrl>
+ <iconUrl>http://tinymce.moxiecode.com/favicon.ico</iconUrl>
+ <requireLicenseAcceptance>true</requireLicenseAcceptance>
+ <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>
+ <summary>TinyMCE.jQuery is special jQuery build of TinyMCE and a jQuery integration plugin.</summary>
+ <tags>Editor TinyMCE HTML HTMLEditor JQuery</tags>
+ <dependencies>
+ <dependency id="TinyMCE" version="@@version@@" />
+ <dependency id="JQuery" version="(1.4.3, )" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="tinymce\jscripts\tiny_mce\jquery.tinymce.js" target="content\scripts\tinymce\jquery.tinymce.js" />
+ <file src="tinymce\jscripts\tiny_mce\tiny_mce_jquery.js" target="content\scripts\tinymce\tiny_mce_jquery.js" />
+ </files>
+</package>
View
26 tools/nuget/TinyMCE.nuspec
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata>
+ <id>TinyMCE</id>
+ <version>@@version@@</version>
+ <authors>Moxiecode Systems AB</authors>
+ <owners>Moxiecode Systems AB, Tugberk Ugurlu</owners>
+ <licenseUrl>http://www.tinymce.com/license</licenseUrl>
+ <projectUrl>http://tinymce.moxiecode.com/</projectUrl>
+ <iconUrl>http://tinymce.moxiecode.com/favicon.ico</iconUrl>
+ <requireLicenseAcceptance>true</requireLicenseAcceptance>
+ <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>
+ <summary>TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB.</summary>
+ <tags>Editor TinyMCE HTML HTMLEditor</tags>
+ </metadata>
+ <files>
+ <file src="tinymce\jscripts\tiny_mce\langs\**\*.*" target="content\scripts\tinymce\langs" />
+ <file src="tinymce\jscripts\tiny_mce\plugins\**\*.*" target="content\scripts\tinymce\plugins" />
+ <file src="tinymce\jscripts\tiny_mce\themes\**\*.*" target="content\scripts\tinymce\themes" />
+ <file src="tinymce\jscripts\tiny_mce\utils\**\*.*" target="content\scripts\tinymce\utils" />
+ <file src="tinymce\jscripts\tiny_mce\tiny_mce.js" target="content\scripts\tinymce\tiny_mce.js" />
+ <file src="tinymce\jscripts\tiny_mce\tiny_mce_src.js" target="content\scripts\tinymce\tiny_mce_src.js" />
+ <file src="tinymce\jscripts\tiny_mce\tiny_mce_popup.js" target="content\scripts\tinymce\tiny_mce_popup.js" />
+ <file src="tinymce\jscripts\tiny_mce\license.txt" target="content\scripts\tinymce\license.txt" />
+ </files>
+</package>
Please sign in to comment.
Something went wrong with that request. Please try again.