mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 04:49:33 -07:00
Made build faster
This commit is contained in:
parent
e63b697d4d
commit
a4637a139b
4 changed files with 18 additions and 12 deletions
12
build.cake
12
build.cake
|
@ -117,6 +117,17 @@ Task("NPM")
|
||||||
NpmInstall(settings);
|
NpmInstall(settings);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Task("Gulp Publish")
|
||||||
|
.Does(() => {
|
||||||
|
|
||||||
|
var runScriptSettings = new NpmRunScriptSettings {
|
||||||
|
ScriptName="publish",
|
||||||
|
WorkingDirectory = webProjDir,
|
||||||
|
};
|
||||||
|
|
||||||
|
NpmRunScript(runScriptSettings);
|
||||||
|
});
|
||||||
|
|
||||||
Task("TSLint")
|
Task("TSLint")
|
||||||
.IsDependentOn("NPM")
|
.IsDependentOn("NPM")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
|
@ -132,6 +143,7 @@ Task("TSLint")
|
||||||
Task("Restore")
|
Task("Restore")
|
||||||
.IsDependentOn("SetVersionInfo")
|
.IsDependentOn("SetVersionInfo")
|
||||||
.IsDependentOn("TSLint")
|
.IsDependentOn("TSLint")
|
||||||
|
.IsDependentOn("Gulp Publish")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
DotNetCoreRestore(projDir);
|
DotNetCoreRestore(projDir);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RuntimeIdentifiers>win10-x64;osx.10.12-x64;ubuntu.16.04-x64;debian.8-x64;centos.7-x64;</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win10-x64;osx-x64;ubuntu-x64;debian.8-x64;centos.7-x64;linux-x64;</RuntimeIdentifiers>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
<AssemblyVersion>3.0.0.0</AssemblyVersion>
|
<AssemblyVersion>3.0.0.0</AssemblyVersion>
|
||||||
<FileVersion>3.0.0.0</FileVersion>
|
<FileVersion>3.0.0.0</FileVersion>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
<RuntimeIdentifiers>win10-x64;osx.10.12-x64;ubuntu.16.04-x64;debian.8-x64;centos.7-x64;</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win10-x64;osx-x64;ubuntu-x64;debian.8-x64;centos.7-x64;linux-x64;</RuntimeIdentifiers>
|
||||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||||
<TypeScriptToolsVersion>2.3</TypeScriptToolsVersion>
|
<TypeScriptToolsVersion>2.3</TypeScriptToolsVersion>
|
||||||
<AssemblyVersion>$(SemVer)</AssemblyVersion>
|
<AssemblyVersion>$(SemVer)</AssemblyVersion>
|
||||||
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
<DocumentationFile>bin\Release\netcoreapp2.0\Swagger.xml</DocumentationFile>
|
<DocumentationFile>bin\Release\netcoreapp2.0\Swagger.xml</DocumentationFile>
|
||||||
|
<NoWarn>1701;1702;1705;1591;</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -34,9 +35,9 @@
|
||||||
<Target Name="NpmCommandsDebug" Condition="'$(Configuration)'=='Debug'" AfterTargets="Build">
|
<Target Name="NpmCommandsDebug" Condition="'$(Configuration)'=='Debug'" AfterTargets="Build">
|
||||||
<Exec Command="npm run vendor" />
|
<Exec Command="npm run vendor" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="NpmCommandsRelease" Condition="'$(Configuration)'=='Release'" AfterTargets="Build">
|
<!--<Target Name="NpmCommandsRelease" Condition="'$(Configuration)'=='Release'" AfterTargets="Build">
|
||||||
<Exec Command="npm run publish" />
|
<Exec Command="npm run publish" />
|
||||||
</Target>
|
</Target>-->
|
||||||
|
|
||||||
<Target Name="RunWebpack" AfterTargets="ComputeFilesToPublish">
|
<Target Name="RunWebpack" AfterTargets="ComputeFilesToPublish">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -48,9 +49,6 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<None Remove="Ombi.db" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AutoMapper" Version="6.1.1" />
|
<PackageReference Include="AutoMapper" Version="6.1.1" />
|
||||||
|
@ -85,11 +83,6 @@
|
||||||
<ProjectReference Include="..\Ombi.Updater\Ombi.Updater.csproj" />
|
<ProjectReference Include="..\Ombi.Updater\Ombi.Updater.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<None Update="ClientApp\app\pipes\pipe.module.js">
|
|
||||||
<DependentUpon>pipe.module.ts</DependentUpon>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Styles\" />
|
<Folder Include="Styles\" />
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/// <binding BeforeBuild='vendor' />
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const gulp = require('gulp');
|
const gulp = require('gulp');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue