Created
June 1, 2016 12:30
-
-
Save vMarkusK/85325de2492eb0f7d1cfd69835c1567d to your computer and use it in GitHub Desktop.
Creates a Structure for a PS Module for PowerShell Gallery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$GitPath = 'C:\Users\mkraus\Documents\GitHub\PowerShell-Gallery-Test' | |
$ModuleName = 'PSGallery-Test' | |
$Author = 'Markus Kraus' | |
$Description = 'PSGallery-Test is a Test' | |
$CompanyName = 'mycloudrevolution' | |
$Copyright = '(c) 2016 Markus Kraus. All rights reserved.' | |
$ProjectUri = 'https://github.com/mycloudrevolution/PowerShell-Gallery-Test/' | |
$LicenseUri = $ProjectUri + 'LICENSE' | |
$Tags = 'mycloudrevolution','test' | |
mkdir $GitPath\$ModuleName | |
mkdir $GitPath\$ModuleName\en-US | |
New-Item "$GitPath\$ModuleName\$ModuleName.psm1" -ItemType File | |
New-Item "$GitPath\$ModuleName\en-US\about_$ModuleName.help.txt" -ItemType File | |
New-ModuleManifest -Path $GitPath\$ModuleName\$ModuleName.psd1 ` | |
-RootModule $GitPath\$ModuleName\$ModuleName.psm1 ` | |
-Description $Description ` | |
-PowerShellVersion 3.0 ` | |
-Author $Author ` | |
-CompanyName $CompanyName ` | |
-Copyright $Copyright ` | |
-ProjectUri $ProjectUri ` | |
-LicenseUri $LicenseUri -Tags $Tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment