add very crude scripts to export modules with selenium

This commit is contained in:
2026-05-29 16:06:34 +02:00
parent 1aa851e5ae
commit d37ff7984a
9 changed files with 177 additions and 12 deletions
+49 -3
View File
@@ -63,8 +63,8 @@ function Initialize-EnvironmentSettings {
Write-Host "Settings preparation complete"
}
function Initialize-NodeTools {
Write-Host "Installing Node.js dependencies for the ELX Tools..."
function Initialize-ExtractElxTools {
Write-Host "Installing Node.js dependencies for the ELX Tools..." -ForegroundColor Cyan
$extractElxToolsScriptPath = Join-Path $PSScriptRoot "../tools/extract-elx/"
@@ -82,6 +82,44 @@ function Initialize-NodeTools {
Write-Host "Node.js dependencies installed successfully!"
}
function Initialize-PlaywrightTools {
Write-Host "Installing Node.js dependencies for Playwright..." -ForegroundColor Cyan
$playwrightScriptPath = Join-Path $PSScriptRoot "../tools/playwright/"
Push-Location -StackName Playwright $playwrightScriptPath
# Install Node.js dependencies for Playwright
& npm install
if ($LASTEXITCODE -ne 0) {
Write-Error "npm install failed with exit code $LASTEXITCODE."
exit 1
}
Pop-Location -StackName Playwright
Write-Host "Node.js dependencies installed successfully!"
}
function Initialize-SeleniumTools {
Write-Host "Installing Node.js dependencies for Selenium..." -ForegroundColor Cyan
$seleniumScriptPath = Join-Path $PSScriptRoot "../tools/selenium/"
Push-Location -StackName Selenium $seleniumScriptPath
# Install Node.js dependencies for Selenium
& npm install
if ($LASTEXITCODE -ne 0) {
Write-Error "npm install failed with exit code $LASTEXITCODE."
exit 1
}
Pop-Location -StackName Selenium
Write-Host "Node.js dependencies installed successfully!"
}
# If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
# #"No Administrative rights, it will display a popup window asking user for Admin rights"
# $arguments = "-NoProfile -ExecutionPolicy Bypass -Command & '" + $myinvocation.mycommand.definition + "'"
@@ -113,7 +151,15 @@ Initialize-EnvironmentSettings
Write-Host
Initialize-NodeTools
Initialize-ExtractElxTools
Write-Host
Initialize-PlaywrightTools
Write-Host
Initialize-SeleniumTools
Write-Host
Write-Host "Environment preparation complete!" -ForegroundColor Green