Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mojoaar/plastermoduletemplate
A Plaster template for automating the scaffolding of a new PowerShell module.
https://github.com/mojoaar/plastermoduletemplate
opensource plaster plaster-template powershell
Last synced: about 11 hours ago
JSON representation
A Plaster template for automating the scaffolding of a new PowerShell module.
- Host: GitHub
- URL: https://github.com/mojoaar/plastermoduletemplate
- Owner: mojoaar
- License: mit
- Created: 2023-10-23T07:27:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-23T08:55:06.000Z (about 1 year ago)
- Last Synced: 2024-01-30T02:40:22.440Z (9 months ago)
- Topics: opensource, plaster, plaster-template, powershell
- Language: PowerShell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# PlasterModuleTemplate
A Plaster template for automating the scaffolding of a new PowerShell module.
Plaster GitHub repository: https://github.com/PowerShellOrg/Plaster
## Example: Create new manifest
```
$manifestProperties = @{
Path = 'C:\tmp\PlasterManifest\PlasterManifest.xml'
TemplateName = 'ScriptModuleTemplate'
TemplateType = 'Project'
Title = 'New PowerShell Module'
Author = 'Morten Johansen'
Description = 'Scaffolds the files required for a PowerShell script module'
Tags = 'PowerShell, Module, ModuleManifest'
}$Folder = Split-Path -Path $manifestProperties.Path -Parent
if (-not(Test-Path -Path $Folder -PathType Container)) {
New-Item -Path $Folder -ItemType Directory | Out-Null
}New-PlasterManifest @manifestProperties
```## Example: Use the new manifest
```
Invoke-Plaster -TemplatePath C:\tmp\PlasterManifest\ -DestinationPath C:\tmp\AwesomeModule -Verbose
```## Example: Using the template in this repository
1. Clone the repository down to your harddrive.
```
git clone https://github.com/mojoaar/plastermoduletemplate.git
```
2. Call Plaster with the path where you cloned the repository.
```
Invoke-Plaster -TemplatePath X:\github\plastermoduletemplate\ModuleTemplate -DestinationPath X:\test -Verbose
```
3. You will end up with a folder structure like shown below.
```
Root
–Modulefolder
--public
--private
```