-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlasterManifest.xml
118 lines (105 loc) · 4.51 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" encoding="utf-8"?>
<plasterManifest
schemaVersion="1.1"
templateType="Project" xmlns="http://www.microsoft.com/schemas/PowerShell/Plaster/v1">
<metadata>
<name>ScriptModuleTemplate</name>
<id>3c3e8e3c-8f7b-445d-8b69-f0d86274dc43</id>
<version>1.0.0</version>
<title>ScriptModuleTemplate</title>
<description>Scaffolds the files required for a PowerShell script module</description>
<author>DLL</author>
<tags>PowerShell, Module, ModuleManifest</tags>
</metadata>
<parameters>
<parameter name='Name' type='text' prompt='Name of the module' default='DemoModule' />
<parameter name='Description' type='text' prompt='Description of the module to create' default=' ' />
<parameter name='Version' type='text' prompt='Initial Version of the new module' default='0.0.1' />
<parameter name='PowershellVersion' type='text' prompt='Description of the PowerShell Version to use on the new module' default='5.1' />
<parameter name='Author' type='text' prompt='Name of the author' default='Systems Team' />
<parameter name='CompanyName' type='text' prompt='Name of the Company' default='DLL' />
</parameters>
<content>
<message>
Creating Folder Structure and HelperModules
</message>
<file source='TemplateFolders\**'
destination='' />
<message>
Copying Important Helper Files Files
</message>
<file source='TemplateFiles\build.ps1'
destination='build.ps1' />
<modify path='build.ps1' encoding='UTF8'>
<replace>
<original>TemplateName</original>
<substitute expand='true'>$PLASTER_PARAM_Name</substitute>
</replace>
</modify>
<file source='TemplateFiles\Template.build.ps1'
destination='${PLASTER_PARAM_Name}.build.ps1' />
<modify path='${PLASTER_PARAM_Name}.build.ps1' encoding='UTF8'>
<replace>
<original>TemplateName</original>
<substitute expand='true'>$PLASTER_PARAM_Name</substitute>
</replace>
<replace>
<original>TemplateAuthor</original>
<substitute expand='true'>$PLASTER_PARAM_Author</substitute>
</replace>
<replace>
<original>TemplateCompany</original>
<substitute expand='true'>$PLASTER_PARAM_CompanyName</substitute>
</replace>
</modify>
<file source='TemplateFiles\Template.PSDeploy.ps1'
destination='${PLASTER_PARAM_Name}.PSDeploy.ps1' />
<modify path='${PLASTER_PARAM_Name}.PSDeploy.ps1' encoding='UTF8'>
<replace>
<original>TemplateName</original>
<substitute expand='true'>$PLASTER_PARAM_Name</substitute>
</replace>
</modify>
<file source='TemplateFiles\Template.depend.psd1'
destination='${PLASTER_PARAM_Name}.depend.psd1' />
<file source='TemplateFiles\HelperModules.depend.psd1'
destination='HelperModules\HelperModules.depend.psd1' />
<file source='TemplateFiles\Template.BootStrapDependencies.ps1'
destination='HelperModules\${PLASTER_PARAM_Name}.BootStrapDependencies.ps1' />
<file source='TemplateFiles\InitializeBuildDependencies.ps1'
destination='InitializeBuildDependencies.ps1' />
<modify path='InitializeBuildDependencies.ps1' encoding='UTF8'>
<replace>
<original>TemplateName</original>
<substitute expand='true'>$PLASTER_PARAM_Name</substitute>
</replace>
</modify>
<file source='TemplateFiles\.gitignore'
destination='.gitignore' />
<modify path='.gitignore' encoding='UTF8'>
<replace>
<original>TemplateName</original>
<substitute expand='true'>$PLASTER_PARAM_Name</substitute>
</replace>
</modify>
<message>
Copying Dummy Files
</message>
<file source='TemplateFiles\Template.Tests.ps1'
destination='Tests\Unit\functions\${PLASTER_PARAM_Name}.Tests.ps1' />
<file source='TemplateFiles\Template.DummyFunction.ps1'
destination='Source\functions\public\Get-DummyFunction.ps1' />
<message>
Creating Module Manifest
</message>
<newModuleManifest
destination='${PLASTER_PARAM_Name}.psd1'
moduleVersion='$PLASTER_PARAM_Version'
rootModule='${PLASTER_PARAM_Name}.psm1'
author='$PLASTER_PARAM_CompanyName - $PLASTER_PARAM_Author'
companyName='$PLASTER_PARAM_CompanyName'
description='$PLASTER_PARAM_Description'
powerShellVersion='$PLASTER_PARAM_PowerShellVersion'
encoding='UTF8-NoBOM'/>
</content>
</plasterManifest>