Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
override.json
package-lock.json
VSIXPackageVersion.json
VSIXPackageVersion.json
LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
param (
[string]$OutputPath,
[string]$Version = $null,
[bool]$IncludeTestPackage = $false
[switch]$IncludeTestPackage = $false
)

# if version is not set, then run a script to get it
Expand All @@ -22,7 +22,7 @@ if ($null -eq $PackageVersion)
Write-Host "Using version $PackageVersion"

# Write-Information "Building Report Publishing task"
Push-Location $PSScriptRoot/tasks/PublishAIEvaluationReport
Set-Location $PSScriptRoot/tasks/PublishAIEvaluationReport
npm install --omit=dev
# Copy task files to dist folder
New-Item -ItemType Directory -Path ./dist -Force
Expand All @@ -32,23 +32,26 @@ copy-item -Path ./package.json -Destination ./dist/ -Force
copy-item -Path ./node_modules -Destination ./dist/node_modules -Force -Recurse

# remove the test files from resolve package because they are currently breaking vsix signing (zero length)
remove-item -Path ./dist/node_modules/resolve/test -Recurse -Force
remove-item -Path ./dist/node_modules/resolve/test -Recurse -Force -ErrorAction SilentlyContinue

@{ version = $PackageVersion
public = $true } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json

public = $true } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json -Encoding ascii
# Write-Information "Building Extension Package"
Set-Location $PSScriptRoot
npm install
npx tsc -b
npx vite build

# Copy LICENSE file from the root
copy-item -Path $PSScriptRoot/../../../../../LICENSE -Destination . -Force

npx tfx-cli extension create --overrides-file $PSScriptRoot/override.json --output-path $OutputPath

if ($true -eq $IncludeTestPackage) {
@{ version = $PackageVersion
id = "microsoft-extensions-ai-evaluation-report-test"
name = "[TEST] Azure DevOps AI Evaluation Report" } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json
name = "[TEST] Azure DevOps AI Evaluation Report" } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json -Encoding ascii

# Build Preview version of the extension for testing
npx tfx-cli extension create --overrides-file $PSScriptRoot/override.json --output-path $OutputPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,26 @@
"content": {
"details": {
"path": "overview.md"
},
"license": {
"path": "LICENSE"
}
},
"links": {
"getstarted": {
"uri": "https://learn.microsoft.com/en-us/dotnet/ai/quickstarts/evaluate-ai-response"
},
"learn": {
"uri": "https://learn.microsoft.com/en-us/dotnet/ai/conceptual/evaluation-libraries"
},
"privacypolicy": {
"uri": "https://privacy.microsoft.com/en-us/privacystatement"
}
},
"repository": {
"type": "git",
"uri": "https://github.com/dotnet/extensions"
},
"contributions": [
{
"id": "build-results-html",
Expand Down
Loading