1
모든 타이프 스크립트 파일을 컴파일 한 후 묶어주는 작은 powershell 스크립트를 작성했습니다. PowerShell 편집기에서 스크립트를 실행할 때 잘 작동하지만 포스트 빌드 이벤트로 실행하려고하면 빌드가 중단됩니다. 이 동작을 원인이 무엇번들러는 Powershell에서 작동하지만 게시 빌드 이벤트로는 작동하지 않습니다.
: (이는 TS 파일을 컴파일 예)
는 최대한 빨리 스크립트에서 들러 라인을 분리 할 때, 빌드가 작동?
$TypeScripts = get-childitem "$(get-location)\RockyMountainArts.Web\scripts\src\*\*.ts" -recurse
foreach ($tsFile in $TypeScripts){
tsc $tsFile
}
&"$(get-location)\RockyMountainArts.Web\bundler\node.exe" "$(get-location)\RockyMountainArts.Web\bundler\bundler.js" "$(get-location)\RockyMountainArts.Web\CSS" "$(get-location)\RockyMountainArts.Web\Scripts"