1+ Clear-Host
2+ Import-Module ' C:\Support\GitHub\PSPublishModule\PSPublishModule.psd1' - Force
3+
4+ $Configuration = @ {
5+ Information = @ {
6+ ModuleName = ' IISParser'
7+
8+ DirectoryProjects = ' C:\Support\GitHub'
9+ DirectoryModulesCore = " $Env: USERPROFILE \Documents\PowerShell\Modules"
10+ DirectoryModules = " $Env: USERPROFILE \Documents\WindowsPowerShell\Modules"
11+
12+ FunctionsToExport = ' Public'
13+ AliasesToExport = ' Public'
14+
15+ LibrariesCore = ' Lib\Standard'
16+ LibrariesDefault = ' Lib\Default'
17+
18+ Manifest = @ {
19+ # Minimum version of the Windows PowerShell engine required by this module
20+ PowerShellVersion = ' 5.1'
21+ # prevent using over CORE/PS 7
22+ CompatiblePSEditions = @ (' Desktop' , ' Core' )
23+ # ID used to uniquely identify this module
24+ GUID = ' 798a1c8a-b4fd-4849-81d2-6138e39eb88b'
25+ # Version number of this module.
26+ ModuleVersion = ' 0.0.X'
27+ # Author of this module
28+ Author = ' Przemyslaw Klys'
29+ # Company or vendor of this module
30+ CompanyName = ' Evotec'
31+ # Copyright statement for this module
32+ Copyright = " (c) 2011 - $ ( (Get-Date ).Year) Przemyslaw Klys @ Evotec. All rights reserved."
33+ # Description of the functionality provided by this module
34+ Description = ' Module for parsing IIS logs'
35+ # Tags applied to this module. These help with module discovery in online galleries.
36+ Tags = @ (' Windows' , ' IIS' , ' parser' )
37+ # A URL to the main website for this project.
38+ ProjectUri = ' https://github.com/EvotecIT/IISParser'
39+
40+ # IconUri = 'https://evotec.xyz/wp-content/uploads/2018/10/PSWriteWord.png'
41+
42+ # LicenseUri = 'https://github.com/EvotecIT/PSWriteOffice/blob/master/License'
43+
44+ RequiredModules = @ (
45+ # @{ ModuleName = 'PSSharedGoods'; ModuleVersion = "Latest"; Guid = 'ee272aa8-baaa-4edf-9f45-b6d6f7d844fe' }
46+ )
47+ DotNetFrameworkVersion = ' 4.7.2'
48+ }
49+ }
50+ Options = @ {
51+ Merge = @ {
52+ Sort = ' None'
53+ FormatCodePSM1 = @ {
54+ Enabled = $true
55+ RemoveComments = $true
56+ FormatterSettings = @ {
57+ IncludeRules = @ (
58+ ' PSPlaceOpenBrace' ,
59+ ' PSPlaceCloseBrace' ,
60+ ' PSUseConsistentWhitespace' ,
61+ ' PSUseConsistentIndentation' ,
62+ ' PSAlignAssignmentStatement' ,
63+ ' PSUseCorrectCasing'
64+ )
65+
66+ Rules = @ {
67+ PSPlaceOpenBrace = @ {
68+ Enable = $true
69+ OnSameLine = $true
70+ NewLineAfter = $true
71+ IgnoreOneLineBlock = $true
72+ }
73+
74+ PSPlaceCloseBrace = @ {
75+ Enable = $true
76+ NewLineAfter = $false
77+ IgnoreOneLineBlock = $true
78+ NoEmptyLineBefore = $false
79+ }
80+
81+ PSUseConsistentIndentation = @ {
82+ Enable = $true
83+ Kind = ' space'
84+ PipelineIndentation = ' IncreaseIndentationAfterEveryPipeline'
85+ IndentationSize = 4
86+ }
87+
88+ PSUseConsistentWhitespace = @ {
89+ Enable = $true
90+ CheckInnerBrace = $true
91+ CheckOpenBrace = $true
92+ CheckOpenParen = $true
93+ CheckOperator = $true
94+ CheckPipe = $true
95+ CheckSeparator = $true
96+ }
97+
98+ PSAlignAssignmentStatement = @ {
99+ Enable = $true
100+ CheckHashtable = $true
101+ }
102+
103+ PSUseCorrectCasing = @ {
104+ Enable = $true
105+ }
106+ }
107+ }
108+ }
109+ FormatCodePSD1 = @ {
110+ Enabled = $true
111+ RemoveComments = $false
112+ }
113+ Integrate = @ {
114+ ApprovedModules = @ (' PSSharedGoods' , ' PSWriteColor' , ' Connectimo' , ' PSUnifi' , ' PSWebToolbox' , ' PSMyPassword' )
115+ }
116+ }
117+ Standard = @ {
118+ FormatCodePSM1 = @ {
119+
120+ }
121+ FormatCodePSD1 = @ {
122+ Enabled = $true
123+ # RemoveComments = $true
124+ }
125+ }
126+ ImportModules = @ {
127+ Self = $true
128+ RequiredModules = $false
129+ Verbose = $false
130+ }
131+ PowerShellGallery = @ {
132+ ApiKey = ' C:\Support\Important\PowerShellGalleryAPI.txt'
133+ FromFile = $true
134+ }
135+ GitHub = @ {
136+ ApiKey = ' C:\Support\Important\GithubAPI.txt'
137+ FromFile = $true
138+ UserName = ' EvotecIT'
139+ # RepositoryName = 'PSWriteHTML'
140+ }
141+ Documentation = @ {
142+ Path = ' Docs'
143+ PathReadme = ' Docs\Readme.md'
144+ }
145+ }
146+ Steps = @ {
147+ <#
148+ BuildModule = @{ # requires Enable to be on to process all of that
149+ Enable = $true
150+ DeleteBefore = $true
151+ Merge = $true
152+ LibrarySeparateFile = $false
153+ MergeMissing = $true
154+ Releases = $true
155+ ReleasesUnpacked = $false
156+ RefreshPSD1Only = $false
157+ }
158+ #>
159+ BuildModule = @ { # requires Enable to be on to process all of that
160+ Enable = $true
161+ DeleteBefore = $true
162+ Merge = $true
163+ MergeMissing = $true
164+ LibrarySeparateFile = $true
165+ LibraryDotSource = $false
166+ ClassesDotSource = $false
167+ SignMerged = $true
168+ CreateFileCatalog = $false # not working
169+ Releases = $true
170+ ReleasesUnpacked = $false
171+ RefreshPSD1Only = $false
172+ }
173+ BuildDocumentation = $true
174+ ImportModules = @ {
175+ Self = $true
176+ RequiredModules = $false
177+ Verbose = $false
178+ }
179+ PublishModule = @ { # requires Enable to be on to process all of that
180+ Enabled = $false
181+ Prerelease = ' '
182+ RequireForce = $false
183+ GitHub = $false
184+ }
185+ }
186+ }
187+
188+ New-PrepareModule - Configuration $Configuration
0 commit comments