-
Notifications
You must be signed in to change notification settings - Fork 510
add temp task to build a v2 version of the extension & updates version of vscode-languageclient (WIP) #1350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,10 +119,44 @@ task Package { | |
Move-Item -Force .\PowerShell-$($script:ExtensionVersion).vsix .\PowerShell-insiders.vsix | ||
} | ||
|
||
task V2Process { | ||
# Throwing this in so that we can get v2 builds going. This should be refactored later. | ||
try { | ||
if (!$script:psesBuildScriptPath) { | ||
throw "PSES path required." | ||
} | ||
|
||
# grab 2.0 PSRL bits | ||
Write-Host "`n### Grabbing 2.0 bits" | ||
Push-Location ..\PowerShellEditorServices | ||
git remote add patrick https://github.com/SeeminglyScience/PowerShellEditorServices.git | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is temporary until we merge the PSReadLine PR into the v2 branch, yeah? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah. Then we'll just checkout the v2 branch |
||
git fetch --all | ||
git checkout integrate-psreadline-2 | ||
Invoke-Build Build | ||
Pop-Location | ||
|
||
Write-Host "`n### Copying PowerShellEditorServices module files" -ForegroundColor Green | ||
Copy-Item -Recurse -Force ..\PowerShellEditorServices\module\* .\modules | ||
|
||
Write-Host "`n### Packaging PowerShell-insiders.vsix`n" -ForegroundColor Green | ||
exec { & node ./node_modules/vsce/out/vsce package } | ||
|
||
# Change the package to have a static name for automation purposes | ||
Move-Item -Force .\PowerShell-$($script:ExtensionVersion).vsix .\PowerShell-v2-insiders.vsix | ||
} | ||
catch { | ||
Write-Host "tried to build v2 but failed because of: `n`n$_" | ||
} | ||
|
||
} | ||
|
||
task UploadArtifacts -If { $env:AppVeyor } { | ||
|
||
Push-AppveyorArtifact .\PowerShell-insiders.vsix | ||
if (Test-Path .\PowerShell-v2-insiders.vsix) { | ||
Push-AppveyorArtifact .\PowerShell-v2-insiders.vsix | ||
} | ||
} | ||
|
||
# The default task is to run the entire CI build | ||
task . GetExtensionVersion, CleanAll, BuildAll, Test, Package, UploadArtifacts | ||
task . GetExtensionVersion, CleanAll, BuildAll, Test, Package, V2Process, UploadArtifacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is brutal. Does TypeScript force this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah Typescript wasn't happy without those :/