return "This is a demo script file." #demo.ps1 #about me https://jdhitsolutions.github.io #Module layout psedit c:\scripts\new-project.ps1 . c:\scripts\new-project.ps1 Help New-PSProject #create new project in demo folder New-PSProject -Name PSDemo -Path . -CommandNames "Get-Foo","Set-Foo" -Description "demo module" -NoGitHub dir -Recurse psedit .\PSDemo.psm1 psedit .\PSDemo.psd1 git status # Install-Module PSFunctionTools # https://github.com/jdhitsolutions/PSFunctionTools Get-PSFunctionTools #creating the layout help Import-ModuleLayout -Examples Help New-ModuleFromFiles -examples help New-ModuleFromLayout -Examples psedit C:\scripts\PSFunctionTools\samples\ModuleLayout.json https://github.com/jdhitsolutions/PSFunctionTools/blob/main/samples/ModuleLayout.json #adding commands Export-FunctionFromFile -Path C:\scripts\JDH-Functions.ps1 -OutputPath .\functions\ -WhatIf #alternatives # Plaster and Stucco are popular PowerShell modules #project status # Install-Module PSProjectStatus # https://github.com/jdhitsolutions/PSProjectStatus help New-PSProjectStatus New-PSProjectStatus -version 0.1.0 psedit .\psproject.json git checkout -b 0.2.0 Set-PSProjectStatus -LastUpdate (Get-Date) -ProjectVersion 0.2.0 -tasks "help documentation","pester tests","update readme" Get-PSProjectStatus Get-PSProjectGitStatus #look at updated JSON file #adding help # Install-Module platyps # setup script copies my default tasks.json file (Get-Content .\.vscode\tasks.json | ConvertFrom-Json).Tasks #add help #update help #external help #change log # Install-Module ChangelogManagement # https://github.com/natescherer/ChangelogManagement Get-Command -module ChangeLogManagement New-Changelog psedit .\Changelog.md help Add-ChangelogData Add-ChangelogData -Type Added -Data "Added help documentation." #a sample psedit C:\scripts\PSWorkItem\changelog.md # https://github.com/jdhitsolutions/PSWorkItem/blob/main/changelog.md #publishing psedit C:\scripts\Publish-Project.ps1 #deploy to github psedit c:\scripts\gitreleasepush.ps1 #keep track of tasks # Install-Module PSWorkItem # https://github.com/jdhitsolutions/PSWorkItem Get-PSWorkItem New-PSWorkItem -Name "PSDemo update" -DaysDue 3 -Category Project -WhatIf #run in a PS7 window Open-PSWorkItemConsole -Path C:\work\PSWorkItem.db #My favorite projects # https://github.com/jdhitsolutions?tab=repositories #PSScriptTools # https://github.com/jdhitsolutions/PSScriptTools #PSTypeExtensionTools # https://github.com/jdhitsolutions/PSTypeExtensionTools #PSReleaseTools # https://github.com/jdhitsolutions/PSReleaseTools