A PowerShell module with functions for common, low-level tasks.
Install-Module -Name JBUtilsJBUtils supports Windows PowerShell 5.1 and PowerShell Core.
Follow the PowerShell Best Practices and Style Guide and these repository conventions:
- Use approved verbs and add comment-based help to every function.
- Keep each function in a same-named
.ps1file. - Put exported functions in
src/Publicand implementation details insrc/Private. - Do not use
Export-ModuleMemberin source files. ModuleBuilder derives exports fromsrc/Public. - Keep tests under the top-level
testsdirectory, mirroring the source layout. - Treat
src/JBUtils.psd1as the authored module manifest. The generated.psm1and release manifest belong underout. - Preserve Windows PowerShell 5.1 compatibility unless a major release explicitly changes the requirement.
Install PSModuleUtils 2.0.0 or later, then run the build from the repository root:
Install-Module -Name PSModuleUtils -MinimumVersion 2.0.0 -Scope CurrentUser
./build.ps1The build analyzes the source, creates the versioned module under out/JBUtils, runs the full Pester suite,
and verifies that the built module can be packaged for publication.
JBUtils/
|-- src/
| |-- JBUtils.psd1
| |-- Private/
| `-- Public/
|-- tests/
| |-- JBUtils.Module.Tests.ps1
| |-- Private/
| `-- Public/
|-- build.ps1
`-- publish.ps1