Created
November 21, 2011 07:24
-
-
Save GraemeF/1381916 to your computer and use it in GitHub Desktop.
PowerShell script to keep running builds when stuff changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module pswatch | |
Function Rebuild($message) | |
{ | |
cls | |
Write-Host $message | |
Invoke-psake .\build.ps1 | |
} | |
Rebuild "Starting up." | |
watch | Where-Object { ($_.Path -notlike "*.git*") -and ($_.Path -notlike "*.idea*") } | %{ Write-Output $_.Path.Replace("___jb_bak___", "") } | Where-Object { $_.EndsWith(".coffee") } | %{ | |
cls | |
Write-Host "$_ changed." | |
Invoke-psake .\build.ps1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment