build stuff

This commit is contained in:
Jamie Rees 2019-04-11 21:17:48 +01:00
commit b1cf9536df
3 changed files with 47 additions and 18 deletions

View file

@ -135,7 +135,7 @@ Task("Gulp Publish")
Task("TSLint")
.Does(() =>
{
// Yarn.FromPath(uiProjectDir).RunScript("lint");
Yarn.FromPath(uiProjectDir).RunScript("lint");
});
Task("PrePublish")
@ -263,6 +263,21 @@ Task("Run-Unit-Tests")
DotNetCoreTest(file.FullPath, settings);
}
});
Task("Run-Server-Build")
.Does(() =>
{
var settings = new DotNetCoreBuildSettings
{
Framework = frameworkVer,
Configuration = "Release",
OutputDirectory = Directory(buildDir)
};
DotNetCoreBuild(csProj, settings);
});
Task("Run-UI-Build")
.IsDependentOn("PrePublish");
//////////////////////////////////////////////////////////////////////
// TASK TARGETS
//////////////////////////////////////////////////////////////////////
@ -270,6 +285,12 @@ Task("Run-Unit-Tests")
Task("Default")
.IsDependentOn("Publish");
Task("Build")
.IsDependentOn("SetVersionInfo")
.IsDependentOn("Run-Unit-Tests")
.IsDependentOn("Run-Server-Build")
.IsDependentOn("Run-UI-Build");
//////////////////////////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////////////////////////