Permalink
Browse files

impl reactiveui-events nuget package creation

  • Loading branch information...
1 parent 82f5c7c commit 6b7b9ae489b996550b074c4f99cf0409e8b743a3 @ghuntley ghuntley committed Mar 27, 2016
Showing with 171 additions and 125 deletions.
  1. +5 −3 .gitignore
  2. +0 −50 COPYING
  3. +55 −0 LICENSE
  4. +0 −25 NuGet/ReactiveUI-Events/ReactiveUI-Events.nuspec
  5. 0 NuGet/ReactiveUI-Events/lib/wp8/ReactiveUI.Events.dll
  6. 0 NuGet/ReactiveUI-Events/lib/wp8/ReactiveUI.Events.pdb
  7. +0 −9 ReactiveUI.Events/packages.ReactiveUI.Events_XamForms.config
  8. +20 −6 build.cake
  9. +4 −4 { → src}/CommonAssemblyInfo.cs
  10. +43 −0 src/ReactiveUI-Events.nuspec
  11. 0 { → src}/ReactiveUI.Events/EventBuilder.cs
  12. 0 { → src}/ReactiveUI.Events/EventBuilder.csproj
  13. 0 { → src}/ReactiveUI.Events/Events.mustache
  14. 0 { → src}/ReactiveUI.Events/Properties/ReactiveUI.Events.rd.xml
  15. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_Android.csproj
  16. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_Android.sln
  17. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_Mac.csproj
  18. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_Net45.csproj
  19. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_Net45.sln
  20. +2 −2 { → src}/ReactiveUI.Events/ReactiveUI.Events_UWP.csproj
  21. +4 −3 { → src}/ReactiveUI.Events/ReactiveUI.Events_UWP.project.json
  22. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_UWP.sln
  23. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_WP81.csproj
  24. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_WP81.sln
  25. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_WPA81.csproj
  26. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_WPA81.sln
  27. +28 −23 { → src}/ReactiveUI.Events/ReactiveUI.Events_XamForms.csproj
  28. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_XamForms.sln
  29. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_iOS.csproj
  30. 0 { → src}/ReactiveUI.Events/ReactiveUI.Events_iOS.sln
  31. 0 { → src}/ReactiveUI.Events/Resources/Resource.Designer.cs
  32. 0 { → src}/ReactiveUI.Events/SingleAwaitSubject.cs
  33. BIN { → src}/ReactiveUI.Events/WinMetadata.UWP/Windows.winmd
  34. BIN { → src}/ReactiveUI.Events/WinMetadata.WPA81/Windows.winmd
  35. BIN { → src}/ReactiveUI.Events/WinMetadata.Win81/Windows.winmd
  36. 0 { → src}/ReactiveUI.Events/generate_events.rb
  37. 0 { → src}/ReactiveUI.Events/packages.EventBuilder.config
  38. 0 { → src}/ReactiveUI.Events/packages.ReactiveUI.Events.config
  39. 0 { → src}/ReactiveUI.Events/packages.ReactiveUI.Events_Android.config
  40. 0 { → src}/ReactiveUI.Events/packages.ReactiveUI.Events_Mac.config
  41. 0 { → src}/ReactiveUI.Events/packages.ReactiveUI.Events_Net45.config
  42. 0 { → src}/ReactiveUI.Events/packages.ReactiveUI.Events_WP81.config
  43. 0 { → src}/ReactiveUI.Events/packages.ReactiveUI.Events_WPA81.config
  44. +10 −0 src/ReactiveUI.Events/packages.ReactiveUI.Events_XamForms.config
  45. 0 { → src}/ReactiveUI.Events/packages.ReactiveUI.Events_iOS.config
View
@@ -140,7 +140,7 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
-# TODO: Comment the next line if you want to checkin your web deploy settings
+# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
@@ -235,5 +235,7 @@ _Pvt_Extensions
# Tools
tools/
-ReactiveUI.Events/Events.cs
-ReactiveUI.Events/Events_*.cs
+# ReactiveUI
+artifacts/
+src/CommonAssemblyInfo.cs
+src/ReactiveUI.Events/Events_*.cs
View
@@ -1,50 +0,0 @@
-Microsoft Public License (Ms-PL)
-
-This license governs use of the accompanying software. If you use the software,
-you accept this license. If you do not accept the license, do not use the
-software.
-
-1. Definitions
-The terms "reproduce," "reproduction," "derivative works," and "distribution"
-have the same meaning here as under U.S. copyright law. A "contribution" is the
-original software, or any additions or changes to the software. A "contributor"
-is any person that distributes its contribution under this license. "Licensed
-patents" are a contributor's patent claims that read directly on its
-contribution.
-
-2. Grant of Rights
-
-(A) Copyright Grant- Subject to the terms of this license, including the license
-conditions and limitations in section 3, each contributor grants you a
-non-exclusive, worldwide, royalty-free copyright license to reproduce its
-contribution, prepare derivative works of its contribution, and distribute its
-contribution or any derivative works that you create.
-
-(B) Patent Grant- Subject
-to the terms of this license, including the license conditions and limitations
-in section 3, each contributor grants you a non-exclusive, worldwide,
-royalty-free license under its licensed patents to make, have made, use, sell,
-offer for sale, import, and/or otherwise dispose of its contribution in the
-software or derivative works of the contribution in the software.
-
-3. Conditions and Limitations
-
-(A) No Trademark License- This license does not grant you rights to use any
-contributors' name, logo, or trademarks.
-(B) If you bring a patent claim against any contributor over patents that you
-claim are infringed by the software, your patent license from such contributor
-to the software ends automatically.
-(C) If you distribute any portion of the software, you must retain all
-copyright, patent, trademark, and attribution notices that are present in the
-software.
-(D) If you distribute any portion of the software in source code form, you may
-do so only under this license by including a complete copy of this license with
-your distribution. If you distribute any portion of the software in compiled or
-object code form, you may only do so under a license that complies with this
-license.
-(E) The software is licensed "as-is." You bear the risk of using it. The
-contributors give no express warranties, guarantees or conditions. You may have
-additional consumer rights under your local laws which this license cannot
-change. To the extent permitted under your local laws, the contributors exclude
-the implied warranties of merchantability, fitness for a particular purpose and
-non-infringement.
View
@@ -0,0 +1,55 @@
+Microsoft Public License (Ms-PL)
+
+This license governs use of the accompanying software. If you use the software,
+you accept this license. If you do not accept the license, do not use the
+software.
+
+1. Definitions
+
+The terms "reproduce," "reproduction," "derivative works," and "distribution"
+have the same meaning here as under U.S. copyright law. A "contribution" is the
+original software, or any additions or changes to the software. A "contributor"
+is any person that distributes its contribution under this license. "Licensed
+patents" are a contributor's patent claims that read directly on its
+contribution.
+
+2. Grant of Rights
+
+ (A) Copyright Grant- Subject to the terms of this license, including the license
+ conditions and limitations in section 3, each contributor grants you a
+ non-exclusive, worldwide, royalty-free copyright license to reproduce its
+ contribution, prepare derivative works of its contribution, and distribute its
+ contribution or any derivative works that you create.
+
+ (B) Patent Grant- Subject
+ to the terms of this license, including the license conditions and limitations
+ in section 3, each contributor grants you a non-exclusive, worldwide,
+ royalty-free license under its licensed patents to make, have made, use, sell,
+ offer for sale, import, and/or otherwise dispose of its contribution in the
+ software or derivative works of the contribution in the software.
+
+3. Conditions and Limitations
+
+ (A) No Trademark License- This license does not grant you rights to use any
+ contributors' name, logo, or trademarks.
+
+ (B) If you bring a patent claim against any contributor over patents that you
+ claim are infringed by the software, your patent license from such contributor
+ to the software ends automatically.
+
+ (C) If you distribute any portion of the software, you must retain all
+ copyright, patent, trademark, and attribution notices that are present in the
+ software.
+
+ (D) If you distribute any portion of the software in source code form, you may
+ do so only under this license by including a complete copy of this license with
+ your distribution. If you distribute any portion of the software in compiled or
+ object code form, you may only do so under a license that complies with this
+ license.
+
+ (E) The software is licensed "as-is." You bear the risk of using it. The
+ contributors give no express warranties, guarantees or conditions. You may have
+ additional consumer rights under your local laws which this license cannot
+ change. To the extent permitted under your local laws, the contributors exclude
+ the implied warranties of merchantability, fitness for a particular purpose and
+ non-infringement.
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
- <metadata>
- <id>reactiveui-events</id>
- <version>6.5.0</version>
- <description>ReactiveUI.Events adds Observable-based events to UI controls and other appropriate places.</description>
- <authors>Paul Betts</authors>
- <projectUrl>http://www.reactiveui.net</projectUrl>
- <licenseUrl>http://opensource.org/licenses/ms-pl.html</licenseUrl>
- <language>en-us</language>
- <requireLicenseAcceptance>false</requireLicenseAcceptance>
- <dependencies>
- <group>
- <dependency id="Rx-Main" version="2.2.5" />
- </group>
- <group targetFramework="uap10.0">
- <dependency id="Rx-Interfaces" version="2.2.5" />
- <dependency id="Rx-Linq" version="2.2.5" />
- <dependency id="System.ObjectModel" version="4.0.10" />
- <dependency id="System.Runtime" version="4.0.20" />
- <dependency id="System.Runtime.InteropServices.WindowsRuntime" version="4.0.0" />
- </group>
- </dependencies>
- </metadata>
-</package>
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="Rx-Core" version="2.3.0-beta2" targetFramework="portable45-net45+win8+wp8+wpa81" />
- <package id="Rx-Interfaces" version="2.3.0-beta2" targetFramework="portable45-net45+win8+wp8+wpa81" />
- <package id="Rx-Linq" version="2.3.0-beta2" targetFramework="portable45-net45+win8+wp8+wpa81" />
- <package id="Rx-Main" version="2.2.5" targetFramework="portable45-net45+win8+wp8+wpa81" />
- <package id="Rx-PlatformServices" version="2.3.0-beta2" targetFramework="portable45-net45+win8+wp8+wpa81" />
- <package id="Xamarin.Forms" version="2.1.0.6529" targetFramework="portable45-net45+win8+wp8+wpa81" />
-</packages>
View
@@ -32,11 +32,26 @@ var version = releaseNotes.Version.ToString();
var semVersion = local ? version : (version + string.Concat("-sha-", gitSha));
// Define directories.
-
+var artifactDirectory = "./artifacts/";
// Define global marcos.
Action Abort = () => { throw new Exception("a non-recoverable fatal error occurred."); };
+Action<string, string> Package = (nuspec, basePath) =>
+{
+ CreateDirectory(artifactDirectory);
+
+ Information("Packaging {0} using {1} as the BasePath.", nuspec, basePath);
+
+ NuGetPack(nuspec, new NuGetPackSettings {
+ Verbosity = NuGetVerbosity.Detailed,
+ OutputDirectory = artifactDirectory,
+ Version = version,
+ BasePath = basePath,
+ });
+};
+
+
///////////////////////////////////////////////////////////////////////////////
// SETUP / TEARDOWN
///////////////////////////////////////////////////////////////////////////////
@@ -116,7 +131,7 @@ Task ("GenerateEvents")
Abort();
}
- var directory = "ReactiveUI.Events/";
+ var directory = "src/ReactiveUI.Events/";
var filename = String.Format("Events_{0}.cs", platform);
var output = System.IO.Path.Combine(directory, filename);
@@ -156,7 +171,7 @@ Task ("BuildEvents")
// remove the .SetMSBuildPlatform method and simply the invoking methods.
Action<string, MSBuildPlatform> build = (filename, platform) =>
{
- var solution = System.IO.Path.Combine("./ReactiveUI.Events", filename);
+ var solution = System.IO.Path.Combine("./src/ReactiveUI.Events/", filename);
// UWP (project.json) needs to be restored before it will build.
NuGetRestore (solution);
@@ -188,18 +203,17 @@ Task ("BuildEvents")
}
});
-
Task ("PackageEvents")
.IsDependentOn("BuildEvents")
.Does (() =>
{
-
+ Package("./src/ReactiveUI-Events.nuspec", "./src/ReactiveUI.Events");
});
Task ("UpdateAssemblyInfo")
.Does (() =>
{
- var file = "./CommonAssemblyInfo.cs";
+ var file = "./src/CommonAssemblyInfo.cs";
CreateAssemblyInfo(file, new AssemblyInfoSettings {
Product = "ReactiveUI",
@@ -1,13 +1,13 @@
//------------------------------------------------------------------------------
// <auto-generated>
-// The version identifiers are automatically updated via the build script.
+// This code was generated by Cake.
// </auto-generated>
//------------------------------------------------------------------------------
using System.Reflection;
[assembly: AssemblyProduct("ReactiveUI")]
-[assembly: AssemblyVersion("1.0.0")]
-[assembly: AssemblyFileVersion("1.0.0")]
-[assembly: AssemblyInformationalVersion("1.0.0")]
+[assembly: AssemblyVersion("7.0.0")]
+[assembly: AssemblyFileVersion("7.0.0")]
+[assembly: AssemblyInformationalVersion("7.0.0")]
[assembly: AssemblyCopyright("Copyright (c) ReactiveUI and contributors")]
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata>
+ <id>reactiveui-events</id>
+ <version>$version$</version>
+ <description>ReactiveUI.Events adds Observable-based events to UI controls and other appropriate places.</description>
+ <authors>Paul Betts</authors>
+ <projectUrl>http://www.reactiveui.net</projectUrl>
+ <licenseUrl>http://opensource.org/licenses/ms-pl.html</licenseUrl>
+ <language>en-us</language>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <dependencies>
+ <group>
+ <dependency id="Rx-Main" version="2.2.5" />
+ </group>
+ <group targetFramework="uap10.0">
+ <dependency id="Rx-Interfaces" version="2.2.5" />
+ <dependency id="Rx-Linq" version="2.2.5" />
+ <dependency id="System.ObjectModel" version="4.0.10" />
+ <dependency id="System.Runtime" version="4.0.20" />
+ <dependency id="System.Runtime.InteropServices.WindowsRuntime" version="4.0.0" />
+ </group>
+ </dependencies>
+ </metadata>
+ <files>
+ <!-- Android -->
+ <file src="bin/Release/MonoAndroid/ReactiveUI.Events.dll" target="lib/MonoAndroid/ReactiveUI.Events.dll" />
+ <!-- iOS Unified API -->
+ <file src="bin/Release/Xamarin.iOS10/ReactiveUI.Events.dll" target="lib/Xamarin.iOS10/ReactiveUI.Events.dll" />
+ <!-- Mac Unified API -->
+ <!-- <file src="Release/Xamarin.iOS10/ReactiveUI.Events.dll" target="lib/Xamarin.iOS10/ReactiveUI.Events.dll" /> -->
+ <!-- Windows Phone Silverlight -->
+ <file src="bin/Release/WP81/ReactiveUI.Events.dll" target="lib/WP81/ReactiveUI.Events.dll" />
+ <!-- Windows Store 8.1 -->
+ <file src="bin/Release/WPA81/ReactiveUI.Events.dll" target="lib/WPA81/ReactiveUI.Events.dll" />
+ <!-- Windows Universal -->
+ <file src="bin/Release/UAP10.0/ReactiveUI.Events.dll" target="lib/UAP10/ReactiveUI.Events.dll" />
+ <!-- Portable PCL -->
+ <file src="bin/Release/Portable-Net45+WinRT45+WP8+MonoAndroid10+MonoTouch10/ReactiveUI.Events_XamForms.dll" target="lib/Portable-Net45+WinRT45+WP8+MonoAndroid10+MonoTouch10/ReactiveUI.Events_XamForms.dll" />
+ <!-- Source -->
+ <file src="*.cs" target="src" />
+ </files>
+</package>
@@ -44,7 +44,7 @@
<DocumentationFile>bin\Release\uap10.0\ReactiveUI.Events.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
- <NuSpecFile Include="..\NuGet\ReactiveUI-Events\ReactiveUI-Events.nuspec">
+ <NuSpecFile Include="..\ReactiveUI-Events.nuspec">
<Visible>False</Visible>
</NuSpecFile>
</ItemGroup>
@@ -74,4 +74,4 @@
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
-</Project>
+</Project>
@@ -2,10 +2,11 @@
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
"NuSpec.ReferenceGenerator": "1.4.2",
- "Rx-XAML": "2.2.5"
+ "Rx-Main": "2.2.5",
+ "Splat": "1.6.2"
},
"frameworks": {
- "uap10.0": { }
+ "uap10.0": {}
},
"runtimes": {
"win10-arm": {},
@@ -15,4 +16,4 @@
"win10-x64": {},
"win10-x64-aot": {}
}
-}
+}
Oops, something went wrong.

0 comments on commit 6b7b9ae

Please sign in to comment.