Skip to content

Commit

Permalink
TooStrict - removing "use strict" from the output js files. Fixes #2964.
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzyk committed Apr 14, 2014
1 parent cb0d588 commit e5bd314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.AspNet.SignalR.Client.JS/build.ps1
Expand Up @@ -21,7 +21,7 @@ foreach ($file in $files) {
& "cscript.exe" ..\..\tools\jshint\env\wsh.js "$file" > $output
if (Select-String $output -SimpleMatch -Pattern "[$file]" -Quiet) {
Write-Host
(Get-Content $output) | Select -Skip 4 | Write-Host -ForegroundColor Red
(Get-Content $output) | Select -Skip 4 | Where { !$_.Contains("""use strict"";") } | Write-Host -ForegroundColor Red
Remove-Item $output
exit 1
}
Expand All @@ -38,7 +38,7 @@ $filePath = "$outputPath\jquery.signalR.js"
Remove-Item $filePath -Force -ErrorAction SilentlyContinue
foreach ($file in $files) {
Add-Content -Path $filePath -Value "/* $file */"
Get-Content -Path $file | Add-Content -Path $filePath
Get-Content -Path $file | Where { !$_.Contains("""use strict"";") } | Add-Content -Path $filePath
}
Write-Host "done" -ForegroundColor Green

Expand Down

0 comments on commit e5bd314

Please sign in to comment.