Skip to content

Commit

Permalink
tooling, assets, codegen packages
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Jan 6, 2017
1 parent 93bdfd0 commit f9ce3f1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 17 deletions.
16 changes: 10 additions & 6 deletions Build.cake
Expand Up @@ -160,7 +160,11 @@ Action<string, string> myPack = (s, id) => {
foreach (var p in prm)
nuspec = nuspec.Replace("${" + p.Key + "}", p.Value);
var assembly = "./" + s + "/bin/" + configuration + "/" + s + ".dll";
var assembly = "./" + s + ".Net45/bin/" + configuration + "/" + s + ".dll";
if (!System.IO.File.Exists(assembly))
assembly = "./" + s + ".Net45/bin/" + configuration + "/" + s + ".exe";
if (!System.IO.File.Exists(assembly))
assembly = "./" + s + "/bin/" + configuration + "/" + s + ".dll";
if (!System.IO.File.Exists(assembly))
assembly = "./" + s + "/bin/" + configuration + "/" + s + ".exe";
Expand Down Expand Up @@ -314,7 +318,7 @@ Task("Pack")
myPack("Serenity.Testing", null);
myPack("Serenity.Script.UI", "Serenity.Script");
myPack("Serenity.Web", null);
//myPack("Serenity.CodeGenerator", null);
myPack("Serenity.CodeGenerator", null);
fixNugetCache();
});
Expand All @@ -326,7 +330,7 @@ Task("Push")
myPush();
});

Task("Assets")
Task("Assets-Pack")
.IsDependentOn("Clean")
.Does(() =>
{
Expand All @@ -335,13 +339,13 @@ Task("Assets")
});

Task("Assets-Push")
.IsDependentOn("Assets")
.IsDependentOn("Assets-Pack")
.Does(() =>
{
myPush();
});

Task("Tooling")
Task("Tooling-Pack")
.IsDependentOn("Clean")
.Does(() =>
{
Expand All @@ -350,7 +354,7 @@ Task("Tooling")
});

Task("Tooling-Push")
.IsDependentOn("Tooling")
.IsDependentOn("Tooling-Pack")
.Does(() =>
{
myPush();
Expand Down
16 changes: 8 additions & 8 deletions Serenity.CodeGenerator/Serenity.CodeGenerator.nuspec
Expand Up @@ -14,16 +14,16 @@
<copyright>${copyright}</copyright>
<tags>${tags}</tags>
<dependencies>
<dependency id="Serenity.Web.Tooling" version="${serenityWebToolingVersion}" />
<dependency id="Serenity.Web.Tooling" version="${serenityWebToolingVersion}" />
</dependencies>
</metadata>
<files>
<file src="..\..\Readme.CodeGenerator.txt" target="content\Readme.CodeGenerator.txt" />
<file src="Serenity.CodeGenerator.exe" target="tools\sergen.exe" />
<file src="Newtonsoft.Json.dll" target="tools" />
<file src="RazorGenerator.Templating.dll" target="tools" />
<file src="Serenity.Core.dll" target="tools" />
<file src="Serenity.Data.dll" target="tools" />
<file src="Serenity.Data.Entity.dll" target="tools" />
<file src="Readme.CodeGenerator.txt" target="content\Readme.CodeGenerator.txt" />
<file src="../Serenity.CodeGenerator/bin/${configuration}/Serenity.CodeGenerator.exe" target="tools\sergen.exe" />
<file src="../Serenity.CodeGenerator/bin/${configuration}/Newtonsoft.Json.dll" target="tools" />
<file src="../Serenity.CodeGenerator/bin/${configuration}/RazorGenerator.Templating.dll" target="tools" />
<file src="../Serenity.CodeGenerator/bin/${configuration}/Serenity.Core.dll" target="tools" />
<file src="../Serenity.CodeGenerator/bin/${configuration}/Serenity.Data.dll" target="tools" />
<file src="../Serenity.CodeGenerator/bin/${configuration}/Serenity.Data.Entity.dll" target="tools" />
</files>
</package>
8 changes: 7 additions & 1 deletion Serenity.Core/Properties/AssemblyInfo.cs
@@ -1,3 +1,9 @@
using System.Runtime.InteropServices;
using System.Reflection;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("Serenity Platform - Core Library")]
[assembly: AssemblyDescription(
"Contains abstractions and implementations for " +
"some basic Serenity features like authorization, " +
"caching, localization, dependency resolution, reflection...")]
[assembly: ComVisible(false)]
2 changes: 1 addition & 1 deletion Serenity.Web/Serenity.Web.Assets.nuspec
Expand Up @@ -15,6 +15,6 @@
<tags>${tags}</tags>
</metadata>
<files>
<file src="..\..\Assets\**\*" exclude="**\*.bak;**\*.log;**\*.orig" target="content" />
<file src="Assets\**\*" exclude="**\*.bak;**\*.log;**\*.orig" target="content" />
</files>
</package>
2 changes: 1 addition & 1 deletion Serenity.Web/Serenity.Web.Tooling.nuspec
Expand Up @@ -15,6 +15,6 @@
<tags>${tags}</tags>
</metadata>
<files>
<file src="..\..\Tooling\**\*" exclude="**\*.bak;**\*.log;**\*.orig" target="content\tools" />
<file src="Tooling\**\*" exclude="**\*.bak;**\*.log;**\*.orig" target="content\tools" />
</files>
</package>

0 comments on commit f9ce3f1

Please sign in to comment.