My collection of usefull Powershell modules
####Modules All modules stem from my Boilerplate module and use psake, Pester, PSScriptAnalyzer and PowershellGet. ######Boilerplate This module I use to stub out new powershell modules. It sets up the new project structure for the powershell module including automated build scripts, testing frameworks and nuget packaging functions.
To use:
Make the required edits to Modules\BoilerPlate\BoilerPlate.nuspec if you're considering using nuget and/or PsGet.Note:
- You will need to use your own NuGet.exe if you'd like to publish the package
- Upcoming changes will be made to work with PowershellGet instead of
nuget
- Run Build-Dependencies.ps1 to install the dependecies mentioned above
- Launch Modules\BoilerPlate\here.cmd
Invoke-psake Make-Module
- Enter the name of the new module
- Launch Modules\MyNewModule\here.cmd
Invoke-psake Build
- Checkout the new nuget package in Modules\MyNewModule\bin which is also where the test results are logged.
- Thats it now edit and add to the functions in the Modules\MyNewModule\Functions directory and remeber to write tests.
The sample Format-HelloWorld.ps1 function is now my personal template for all functions going ahead. Hope this give you value. Happy days