-
Notifications
You must be signed in to change notification settings - Fork 0
/
plasterManifest.xml
38 lines (38 loc) · 2.45 KB
/
plasterManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>
<plasterManifest schemaVersion="1.1"
xmlns="http://www.microsoft.com/schemas/PowerShell/Plaster/v1">
<metadata>
<name>PowerShellModule</name>
<id>aafb7dd4-23af-4e9b-9394-066ec8fe9c16</id>
<version>1.0.0</version>
<title>PowerShellModule</title>
<description></description>
<author>Alan Płócieniak</author>
<tags></tags>
</metadata>
<parameters>
<parameter name='Author' type="user-fullname" prompt="Module author's name" />
<parameter name='AuthorEmail' type="user-email" prompt="Contributer/Owner email" />
<parameter name='ModuleName' type="text" prompt="Module name" />
<parameter name='ModuleVersion' type="text" prompt="Module version" default='1.0.0' />
<parameter name='ModuleDescription' type="text" prompt="Module description" />
<parameter name='Tests' type = 'choice' prompt='Add Tests?' default='0'>
<choice label='&Yes' value='Yes' help='Adds Tests folder'/>
<choice label='&No' value='No' help='Does not adds Tests folder'/>
</parameter>
</parameters>
<content>
<message>Creating module folder and files</message>
<file source='' destination='${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}'/>
<file source='' destination='${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}\Public'/>
<file source='' destination='${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}\Private'/>
<templateFile source='template\psd1.psd1' destination='${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}.psd1' />
<file source='template\psm1.psm1' destination='${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}\${PLASTER_PARAM_ModuleName}.psm1' />
<message condition='$PLASTER_PARAM_Tests -eq "Yes"'>Creating test folder and file</message>
<requireModule name="Pester" minimumVersion="3.4.0" message="Without Pester, you will not be able to run the provided Pester test to validate your module manifest file.`nWithout version 3.4.0/>
<file source='' destination='${PLASTER_PARAM_ModuleName}\Tests' condition='$PLASTER_PARAM_Tests -eq "Yes"'/>
<templateFile source='template\tests.ps1' destination='${PLASTER_PARAM_ModuleName}\Tests\${PLASTER_PARAM_ModuleName}.Tests.ps1' condition='$PLASTER_PARAM_Tests -eq "Yes"'/>
<message>Creating README.md</message>
<templateFile source='template\README.md' destination='${PLASTER_PARAM_ModuleName}\README.md' />
</content>
</plasterManifest>