Skip to content

Commit 2b3c57f

Browse files
authored
Merge pull request #1002 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 0e12e61 + 336909e commit 2b3c57f

11 files changed

Lines changed: 4140 additions & 2 deletions

File tree

Tools/Build-DevApiModules.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ $repoRoot = Split-Path -Parent $toolsRoot
55
$modulesRoot = Join-Path $repoRoot 'Modules'
66
$outputRoot = Join-Path $repoRoot 'Output'
77

8-
Install-Module -Name ModuleBuilder -MaximumVersion 3.1.9 -Scope CurrentUser -Force -AllowClobber
9-
Import-Module -Name ModuleBuilder -Force
8+
Import-Module -Name (Join-Path $toolsRoot 'Metadata\1.5.7\Metadata.psd1') -Force
9+
Import-Module -Name (Join-Path $toolsRoot 'Configuration\1.6.0\Configuration.psd1') -Force
10+
Import-Module -Name (Join-Path $toolsRoot 'ModuleBuilder\3.1.8\ModuleBuilder.psd1') -Force
1011

1112
Write-Host "Repo root: $repoRoot"
1213
Set-Location -Path $repoRoot
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
@{
2+
3+
# Script module or binary module file associated with this manifest.
4+
ModuleToProcess = 'Configuration.psm1'
5+
6+
# Version number of this module.
7+
ModuleVersion = '1.6.0'
8+
9+
# ID used to uniquely identify this module
10+
GUID = 'e56e5bec-4d97-4dfd-b138-abbaa14464a6'
11+
12+
# Author of this module
13+
Author = @('Joel Bennett')
14+
15+
# Company or vendor of this module
16+
CompanyName = 'HuddledMasses.org'
17+
18+
# Copyright statement for this module
19+
Copyright = 'Copyright (c) 2014-2021 by Joel Bennett, all rights reserved.'
20+
21+
# Description of the functionality provided by this module
22+
Description = 'A module for storing and reading configuration values, with full PS Data serialization, automatic configuration for modules and scripts, etc.'
23+
24+
# Exports - populated by the build
25+
FunctionsToExport = @('Export-Configuration','Get-ConfigurationPath','Get-ParameterValue','Import-Configuration','Import-ParameterConfiguration')
26+
CmdletsToExport = @()
27+
VariablesToExport = @()
28+
AliasesToExport = 'Get-StoragePath'
29+
RequiredModules = @('Metadata')
30+
31+
# List of all files packaged with this module
32+
FileList = @('.\Configuration.psd1','.\Configuration.psm1')
33+
34+
PrivateData = @{
35+
# Allows overriding the default paths where Configuration stores it's configuration
36+
# Within those folders, the module assumes a "powershell" folder and creates per-module configuration folders
37+
PathOverride = @{
38+
# Where the user's personal configuration settings go.
39+
# Highest presedence, overrides all other settings.
40+
# Defaults to $Env:LocalAppData on Windows
41+
# Defaults to $Env:XDG_CONFIG_HOME elsewhere ($HOME/.config/)
42+
UserData = ""
43+
# On some systems there are "roaming" user configuration stored in the user's profile. Overrides machine configuration
44+
# Defaults to $Env:AppData on Windows
45+
# Defaults to $Env:XDG_CONFIG_DIRS elsewhere (or $HOME/.local/share/)
46+
EnterpriseData = ""
47+
# Machine specific configuration. Overrides defaults, but is overriden by both user roaming and user local settings
48+
# Defaults to $Env:ProgramData on Windows
49+
# Defaults to /etc/xdg elsewhere
50+
MachineData = ""
51+
}
52+
# PSData is module packaging and gallery metadata embedded in PrivateData
53+
# It's for the PoshCode and PowerShellGet modules
54+
# We had to do this because it's the only place we're allowed to extend the manifest
55+
# https://connect.microsoft.com/PowerShell/feedback/details/421837
56+
PSData = @{
57+
# The semver pre-release version information
58+
PreRelease = ''
59+
60+
# Keyword tags to help users find this module via navigations and search.
61+
Tags = @('Development','Configuration','Settings','Storage')
62+
63+
# The web address of this module's project or support homepage.
64+
ProjectUri = "https://github.com/PoshCode/Configuration"
65+
66+
# The web address of this module's license. Points to a page that's embeddable and linkable.
67+
LicenseUri = "http://opensource.org/licenses/MIT"
68+
69+
# Release notes for this particular version of the module
70+
ReleaseNotes = '
71+
- Extract the Metadata module
72+
- Add support for arbitrary AllowedVariables
73+
'
74+
}
75+
}
76+
77+
}

0 commit comments

Comments
 (0)