-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateModuleManifest.ps1
More file actions
32 lines (28 loc) · 1.46 KB
/
CreateModuleManifest.ps1
File metadata and controls
32 lines (28 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
. "$PSScriptRoot\DALLiteDBTools.ps1"
. "$PSScriptRoot\ModelTools.ps1"
. "$PSScriptRoot\PodeTools.ps1"
$GUID = 'cc2b4f15-448b-4f48-9f1e-768fab346730'
$ModuleVersion = "0.0.1"
$functions = Get-Command *-Model* -CommandType Function -ListImported | Select-Object -ExpandProperty Name
$functions += Get-Command *-DAL* -CommandType Function -ListImported | Select-Object -ExpandProperty Name
$functions += Get-Command *-Pode* -CommandType Function -ListImported | Select-Object -ExpandProperty Name
$moduleParams = @{
Path = ".\LOBTools.psd1"
RootModule = ".\LOBTools.psm1"
Author = "Code"
CompanyName = "NumericOverflow"
ModuleVersion = "0.0.1"
Guid = $GUID
Description = "Line Of Business tools"
PowerShellVersion = "5.1"
FunctionsToExport = $functions
}
$PSData = "@{
Tags = 'LOB','Line Of Business', 'LiteDB', 'Pode'
LicenseUri = 'https://raw.githubusercontent.com/code-numericoverflow/LOBTools/master/LOBTools/LICENSE.txt'
ProjectUri = 'https://github.com/code-numericoverflow/LOBTools'
IconUri = 'https://raw.githubusercontent.com/code-numericoverflow/LOBTools/master/icon.png'
# "
New-ModuleManifest @moduleParams
$newContent = Get-Content $moduleParams.Path | ForEach-Object { $_ -replace ' PSData', " PSData = $PSData" }
$newContent | Set-Content $moduleParams.Path -Force