mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
added grunt to build powershell
This commit is contained in:
parent
4a705e9a92
commit
e5a72bbef9
2 changed files with 10 additions and 7 deletions
15
build.ps1
15
build.ps1
|
@ -34,8 +34,9 @@ Function CleanFolder($path)
|
|||
get-childitem $path -File -Filter app.config | foreach ($_) {remove-item $_.fullname}
|
||||
|
||||
Write-Host Removing Empty folders
|
||||
while (Get-ChildItem $path -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Test-Path) {
|
||||
Get-ChildItem $path -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Remove-Item
|
||||
while (Get-ChildItem $path -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Test-Path)
|
||||
{
|
||||
Get-ChildItem $path -Directory -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Remove-Item
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -73,13 +74,17 @@ Function Nunit()
|
|||
Invoke-Expression $nunitExe
|
||||
}
|
||||
|
||||
Function Grunt()
|
||||
Function RunGrunt()
|
||||
{
|
||||
grunt package
|
||||
$npmInstall = 'npm install'
|
||||
$gruntPackage = 'grunt package'
|
||||
|
||||
Invoke-Expression $npmInstall
|
||||
Invoke-Expression $gruntPackage
|
||||
}
|
||||
|
||||
Build
|
||||
Grunt
|
||||
RunGrunt
|
||||
PackageTests
|
||||
|
||||
if($runTests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue