From a4637a139be3a1839299d37943f6744e92df3503 Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Thu, 21 Sep 2017 10:21:21 +0100 Subject: [PATCH] Made build faster --- build.cake | 12 ++++++++++++ src/Ombi.Updater/Ombi.Updater.csproj | 2 +- src/Ombi/Ombi.csproj | 15 ++++----------- src/Ombi/gulpfile.js | 1 + 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/build.cake b/build.cake index f7847c94c..a27edd7a3 100644 --- a/build.cake +++ b/build.cake @@ -117,6 +117,17 @@ Task("NPM") NpmInstall(settings); }); +Task("Gulp Publish") + .Does(() => { + + var runScriptSettings = new NpmRunScriptSettings { + ScriptName="publish", + WorkingDirectory = webProjDir, + }; + + NpmRunScript(runScriptSettings); + }); + Task("TSLint") .IsDependentOn("NPM") .Does(() => @@ -132,6 +143,7 @@ Task("TSLint") Task("Restore") .IsDependentOn("SetVersionInfo") .IsDependentOn("TSLint") + .IsDependentOn("Gulp Publish") .Does(() => { DotNetCoreRestore(projDir); diff --git a/src/Ombi.Updater/Ombi.Updater.csproj b/src/Ombi.Updater/Ombi.Updater.csproj index 94c20f44a..3891a0ce9 100644 --- a/src/Ombi.Updater/Ombi.Updater.csproj +++ b/src/Ombi.Updater/Ombi.Updater.csproj @@ -2,7 +2,7 @@ Exe - win10-x64;osx.10.12-x64;ubuntu.16.04-x64;debian.8-x64;centos.7-x64; + win10-x64;osx-x64;ubuntu-x64;debian.8-x64;centos.7-x64;linux-x64; netcoreapp2.0 3.0.0.0 3.0.0.0 diff --git a/src/Ombi/Ombi.csproj b/src/Ombi/Ombi.csproj index 75cd657ee..5e925a64f 100644 --- a/src/Ombi/Ombi.csproj +++ b/src/Ombi/Ombi.csproj @@ -2,7 +2,7 @@ netcoreapp2.0 - win10-x64;osx.10.12-x64;ubuntu.16.04-x64;debian.8-x64;centos.7-x64; + win10-x64;osx-x64;ubuntu-x64;debian.8-x64;centos.7-x64;linux-x64; false 2.3 $(SemVer) @@ -18,6 +18,7 @@ bin\Release\netcoreapp2.0\Swagger.xml + 1701;1702;1705;1591; @@ -34,9 +35,9 @@ - + @@ -48,9 +49,6 @@ - - - @@ -85,11 +83,6 @@ - - - pipe.module.ts - - diff --git a/src/Ombi/gulpfile.js b/src/Ombi/gulpfile.js index 6f781cbb1..80943de6c 100644 --- a/src/Ombi/gulpfile.js +++ b/src/Ombi/gulpfile.js @@ -1,3 +1,4 @@ +/// 'use strict'; const gulp = require('gulp');