add very crude scripts to export modules with selenium
This commit is contained in:
1 parent
1aa851e5ae
commit
d37ff7984a
9 files changed
+177
-12
No files matched your search
@@ -0,0 +1,19 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[Parameter(Mandatory)][ValidateNotNullOrEmpty()][string]$ModuleTag
|
||||
)
|
||||
|
||||
Write-Host "Checking module folder existence..."
|
||||
$modulesSrcPath = Join-Path -Resolve $PSScriptRoot "../src/$ModuleTag"
|
||||
if (-not (Test-Path -Path "$modulesSrcPath")) {
|
||||
Write-Host "Module folder not found. Creating folder for module tag '$ModuleTag'..." -ForegroundColor Yellow
|
||||
New-Item -ItemType Directory -Path "$modulesSrcPath" -Force | Out-Null
|
||||
}
|
||||
|
||||
Write-Host "Exporting module tag '$ModuleTag' from elixForms..."
|
||||
|
||||
Import-Module $(Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Definition) "elx-tools-module.psm1") -Force
|
||||
|
||||
Export-ElxModule -ModuleTag $ModuleTag -ModulePath "$modulesSrcPath"
|
||||
|
||||
Write-Host "Module tag '$ModuleTag' exported successfully!" -ForegroundColor Green
|
||||
Reference in new issue
Block a user