mirror of https://github.com/lidarr/Lidarr
added grunt to build powershell
This commit is contained in:
parent
4a705e9a92
commit
e5a72bbef9
|
@ -43,7 +43,6 @@
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>true</UseVSHostingProcess>
|
<UseVSHostingProcess>true</UseVSHostingProcess>
|
||||||
<CodeAnalysisRuleSet>BasicCorrectnessRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>BasicCorrectnessRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<IntermediateOutputPath>C:\Users\Mark\AppData\Local\Temp\vs167E.tmp\x86\Debug\</IntermediateOutputPath>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
@ -53,7 +52,6 @@
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<IntermediateOutputPath>C:\Users\Mark\AppData\Local\Temp\vs167E.tmp\x86\Release\</IntermediateOutputPath>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ApplicationIcon>NzbDrone.ico</ApplicationIcon>
|
<ApplicationIcon>NzbDrone.ico</ApplicationIcon>
|
||||||
|
|
15
build.ps1
15
build.ps1
|
@ -34,8 +34,9 @@ Function CleanFolder($path)
|
||||||
get-childitem $path -File -Filter app.config | foreach ($_) {remove-item $_.fullname}
|
get-childitem $path -File -Filter app.config | foreach ($_) {remove-item $_.fullname}
|
||||||
|
|
||||||
Write-Host Removing Empty folders
|
Write-Host Removing Empty folders
|
||||||
while (Get-ChildItem $path -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Test-Path) {
|
while (Get-ChildItem $path -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Test-Path)
|
||||||
Get-ChildItem $path -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Remove-Item
|
{
|
||||||
|
Get-ChildItem $path -Directory -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Remove-Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,13 +74,17 @@ Function Nunit()
|
||||||
Invoke-Expression $nunitExe
|
Invoke-Expression $nunitExe
|
||||||
}
|
}
|
||||||
|
|
||||||
Function Grunt()
|
Function RunGrunt()
|
||||||
{
|
{
|
||||||
grunt package
|
$npmInstall = 'npm install'
|
||||||
|
$gruntPackage = 'grunt package'
|
||||||
|
|
||||||
|
Invoke-Expression $npmInstall
|
||||||
|
Invoke-Expression $gruntPackage
|
||||||
}
|
}
|
||||||
|
|
||||||
Build
|
Build
|
||||||
Grunt
|
RunGrunt
|
||||||
PackageTests
|
PackageTests
|
||||||
|
|
||||||
if($runTests)
|
if($runTests)
|
||||||
|
|
Loading…
Reference in New Issue