@@ -32,7 +32,7 @@ task GetExtensionVersion -Before Package {
32
32
}
33
33
}
34
34
35
- task ResolveEditorServicesPath - Before Clean , BuildEditorServices {
35
+ task ResolveEditorServicesPath - Before CleanEditorServices , BuildEditorServices {
36
36
37
37
$script :psesRepoPath = `
38
38
if ($EditorServicesRepoPath ) {
@@ -64,31 +64,34 @@ task Restore -If { "Restore" -in $BuildTask -or !(Test-Path "./node_modules") }
64
64
}
65
65
66
66
task Clean {
67
+ Write-Host " `n ### Cleaning vscode-powershell`n " - ForegroundColor Green
68
+ Remove-Item .\out - Recurse - Force - ErrorAction Ignore
69
+ }
67
70
71
+ task CleanEditorServices {
68
72
if ($script :psesBuildScriptPath ) {
69
73
Write-Host " `n ### Cleaning PowerShellEditorServices`n " - ForegroundColor Green
70
74
Invoke-Build Clean $script :psesBuildScriptPath
71
75
}
72
-
73
- Write-Host " `n ### Cleaning vscode-powershell`n " - ForegroundColor Green
74
- Remove-Item .\out - Recurse - Force - ErrorAction Ignore
75
76
}
76
77
77
- task Build BuildEditorServices , BuildClient - Before Package
78
+ task CleanAll CleanEditorServices , Clean
78
79
79
- task BuildClient {
80
+ task Build {
80
81
Write-Host " `n ### Building vscode-powershell" - ForegroundColor Green
81
82
exec { & npm run compile }
82
83
}
83
84
84
85
task BuildEditorServices {
85
- # If the PSES codebase is co-located, build it first
86
+ # If the PSES codebase is co-located, build it first
86
87
if ($script :psesBuildScriptPath ) {
87
88
Write-Host " `n ### Building PowerShellEditorServices`n " - ForegroundColor Green
88
89
Invoke-Build Build $script :psesBuildScriptPath
89
90
}
90
91
}
91
92
93
+ task BuildAll BuildEditorServices, Build - Before Package
94
+
92
95
task Package {
93
96
94
97
if ($script :psesBuildScriptPath ) {
@@ -109,4 +112,4 @@ task UploadArtifacts -If { $env:AppVeyor } {
109
112
}
110
113
111
114
# The default task is to run the entire CI build
112
- task . GetExtensionVersion, Clean , Build , Package, UploadArtifacts
115
+ task . GetExtensionVersion, CleanAll , BuildAll , Package, UploadArtifacts
0 commit comments