Templates/Sampler/plasterManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<plasterManifest schemaVersion="1.0" xmlns="http://www.microsoft.com/schemas/PowerShell/Plaster/v1"> <metadata> <name>Sampler</name> <id>01ff2349-1b77-46dd-a247-ce056aae043c</id> <version>0.0.1</version> <title>Sampler Module Template</title> <description>Sampler Module Template with bootstrap</description> <author>Gael Colas</author> <tags>Sampler,Template, Build, Module</tags> </metadata> <parameters> <parameter name="ModuleType" type="choice" default='1' prompt="Select the type of Module you would like to create:"> <choice label='Simple &Module Without Build' help="Creates a simple module without the build automation." value="SimpleModule_NoBuild"/> <choice label='&Simple Module with build automation' help="Creates a simple module with minimal structure and build scripts." value="SimpleModule"/> <choice label='Select &features...' help="Will prompt you for more details as to what you'd like to scaffold." value="CustomModule"/> <choice label='&Complete Module Sample' help="Creates a module with complete structure and example file." value="CompleteModule"/> <choice label='Complete &Without Build' help="Creates a module with complete structure and example file, but without Build automation." value="CompleteModule_NoBuild"/> <choice label='&DSC Community Release Conversion' help="Creates or replace the files needed for the conversion to the new release automation." value="dsccommunity"/> </parameter> <parameter store="text" name="ModuleAuthor" type="text" prompt="Author's name" default="$Env:Username" condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity")' /> <parameter store="text" name="ModuleName" type="text" prompt="Name of your module" /> <parameter name="ModuleDescription" type="text" prompt="Description of this module" condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity")' /> <parameter name="CustomRepo" default="PSGallery" type="text" prompt="Do you pull from default repository (PSGallery) or a custom repository?" condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity")' /> <parameter name="ModuleVersion" type="text" prompt="Module version" default="0.0.1" condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity")' /> <parameter store="text" name="License" type="choice" prompt="Do you want to include a License to your project?" default="1" condition='$PLASTER_PARAM_ModuleType -eq "CustomModule"' > <choice label='&Yes' value='true' /> <choice label='&No' value='false' /> </parameter> <parameter store="text" name="LicenseType" type="choice" prompt="What license do you want?" default="2" condition='$PLASTER_PARAM_License -eq "true" -and $PLASTER_PARAM_ModuleType -eq "CustomModule"' > <choice label='&Apache' help="Adds an Apache license file." value="Apache" /> <choice label='&MIT' help="Adds an MIT license file." value="MIT" /> <choice label='&None' help="No license specified." value="None" /> </parameter> <parameter store="text" name="SourceDirectory" type="choice" prompt="What name do you give your source folder?" default="2"> <choice label="&The Module's name (${PLASTER_PARAM_ModuleName})" value="${PLASTER_PARAM_ModuleName}" /> <choice label="&source" value="source" /> <choice label="s&rc" value="src" /> </parameter> <parameter name="Features" type="multichoice" prompt="What feature would you like to add to your project?" default="0" condition='$PLASTER_PARAM_ModuleType -eq "CustomModule"' > <choice label='&*All' help="Adds all features below." value="All"/> <choice label='&Enum' help="Adds enum folders and an example." value="Enum"/> <choice label='&Classes' help="Adds PSv5+ Classes folders and an example." value="Classes"/> <choice label='&DSC Resources' help="Adds DSCResources folders and an example." value="DSCResources"/> <choice label='&Sample Scripts' help="Adds Sample scripts in folders." value="SampleScripts"/> <choice label='&Git ignore' help="Adds project .gitignore." value="git"/> <choice label='Ghe&rkin BDD' help="Adds Gherkin folders" value="Gherkin"/> <choice label='&Unit Tests' help="Adds Tests folders and example with your features." value="UnitTests"/> <choice label='&Quality tests' help="Adds the Module quality verifying Unit tests, help and code coverage." value="ModuleQuality"/> <choice label='&Build' help="Adds Build folders and an scripts." value="Build"/> <choice label='&AppVeyor' help="Adds AppVeyor folders and an example." value="AppVeyor"/> <choice label='Test&Kitchen' help="Adds TestKitchen folders, yaml and an example." value="TestKitchen"/> </parameter> </parameters> <!-- condition='' ${PLASTER_PARAM_ModuleType} SimpleModule CustomModule CompleteModule SimpleModule_NoBuild CompleteModule_NoBuild SharedDscConfig -in @("SimpleModule","CustomModule","CompleteModule","SimpleModule_NoBuild","CompleteModule_NoBuild","SharedDscConfig") ${PLASTER_PARAM_ModuleAuthor} ${PLASTER_PARAM_ModuleName} ${PLASTER_PARAM_ModuleDescription} ${PLASTER_PARAM_ModuleVersion} ${PLASTER_PARAM_License} true false ${PLASTER_PARAM_LicenseType} Apache MIT None ${PLASTER_PARAM_Features} All UnitTests ModuleQuality AppVeyor TestKitchen Gherkin DSCResources Enum Classes SampleScripts git --> <content> <!-- MODULES FOLDER SCAFFOLDING --> <!-- SOURCE MAIN Folder --> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}' /> <!-- CLASSES Folder--> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Classes' condition='(${PLASTER_PARAM_Features} -in @("All","Classes")) -or ${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild")' /> <!-- Enum Folder--> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Enum' condition='${PLASTER_PARAM_Features} -in @("All","Enum") -or ${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild")' /> <!-- PRIVATE FUNCTIONS Folder--> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Private' condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity","SharedDscConfig")' /> <!-- PUBLIC FUNCTIONS Folder --> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Public' condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity","SharedDscConfig")' /> <!-- PESTER MAIN FOLDER --> <file source='' destination='${PLASTER_PARAM_ModuleName}/tests' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","SimpleModule","CompleteModule","SimpleModule_NoBuild","CompleteModule_NoBuild","SharedDscConfig") -or ${PLASTER_PARAM_Features} -in @("All","UnitTests","ModuleQuality","TestKitchen")' /> <!-- UNIT TESTS Private Functions folder --> <file source='' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/Private' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or (${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -contains "SampleScripts"))' /> <!-- UNIT TESTS Public folder --> <file source='' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/Public' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or (${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -contains "SampleScripts"))' /> <!-- GHERKIN --> <file source='' destination='${PLASTER_PARAM_ModuleName}/specs/steps' condition='${PLASTER_PARAM_Features} -Contains "Gherkin"' /> <!-- UNIT TESTS Classes Sample Files --> <file source='../Classes/tests/Unit/Classes/class1.tests.ps1' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/Classes/class1.tests.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -in @("All") -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -Contains "Classes")' /> <file source='../Classes/tests/Unit/Classes/class2.tests.ps1' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/Classes/class2.tests.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -in @("All") -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -Contains "Classes")' /> <file source='../Classes/tests/Unit/Classes/class11.tests.ps1' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/Classes/class11.tests.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -in @("All") -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -Contains "Classes")' /> <file source='../Classes/tests/Unit/Classes/class12.tests.ps1' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/Classes/class12.tests.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -in @("All") -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -Contains "Classes")' /> <!-- UNIT TESTS Private Functions Sample Files --> <file source='Get-PrivateFunction.tests.ps1' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/Private/Get-PrivateFunction.tests.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or (${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -contains "SampleScripts"))' /> <!-- UNIT TESTS Public Functions Sample Files --> <file source='Get-Something.tests.ps1' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/Public/Get-Something.tests.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or (${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -contains "SampleScripts"))' /> <!-- UNIT TESTS DSC Resources folder --> <file source='' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/DSCResources' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or (${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -contains "DSCResources"))' /> <!-- UNIT TESTS DSC Resources Sample Files --> <file source='' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/DSCResources/' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or (${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -contains "DSCResources"))' /> <templateFile source='../MofResource/tests/Unit/DSCResources/DSC_Folder.tests.ps1.template' destination='${PLASTER_PARAM_ModuleName}/tests/Unit/DSCResources/DSC_Folder.tests.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or (${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "UnitTests" -and ${PLASTER_PARAM_Features} -contains "DSCResources"))' /> <!-- QUALITY TESTS for Module --> <file source='module.tests.ps1' destination='${PLASTER_PARAM_ModuleName}/tests/QA/module.tests.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("SimpleModule","SimpleModule_NoBuild","CompleteModule","CompleteModule_NoBuild","SharedDscConfig") -or (${PLASTER_PARAM_Features} -Contains ("ModuleQuality") -or ${PLASTER_PARAM_Features} -contains "All")' /> <!-- PUBLIC FUNCTION Sample --> <file source='Get-Something.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Public/Get-Something.ps1' condition='${PLASTER_PARAM_ModuleType} -ne "SharedDscConfig" -and (${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains "All" -or ${PLASTER_PARAM_Features} -Contains "SampleScripts")' /> <!-- PRIVATE FUNCTION Sample --> <file source='Get-PrivateFunction.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Private/Get-PrivateFunction.ps1' condition='${PLASTER_PARAM_ModuleType} -ne "SharedDscConfig" -and (${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <!-- CLASSES Samples Folder --> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Classes/' condition='${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "Classes" -and ${PLASTER_PARAM_Features} -Contains "SampleScripts") -or ${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild")' /> <!-- CLASSES Samples Files --> <file source='../Classes/Classes/1.class1.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Classes/1.class1.ps1' condition='${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "Classes" -and ${PLASTER_PARAM_Features} -Contains "SampleScripts") -or ${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild")' /> <file source='../Classes/Classes/2.class2.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Classes/2.class2.ps1' condition='${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "Classes" -and ${PLASTER_PARAM_Features} -Contains "SampleScripts") -or ${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild")' /> <file source='../Classes/Classes/3.class11.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Classes/3.class11.ps1' condition='${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "Classes" -and ${PLASTER_PARAM_Features} -Contains "SampleScripts") -or ${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild")' /> <file source='../Classes/Classes/4.class12.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Classes/4.class12.ps1' condition='${PLASTER_PARAM_Features} -Contains "All" -or (${PLASTER_PARAM_Features} -Contains "Classes" -and ${PLASTER_PARAM_Features} -Contains "SampleScripts") -or ${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild")' /> <!-- OUTPUT FOLDER --> <file source='' destination='${PLASTER_PARAM_ModuleName}/output' condition='${PLASTER_PARAM_Features} -Contains "All" -or ${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteModule","SimpleModule")' /> <!-- REQUIRED MODULES FOLDER --> <file source='' destination='${PLASTER_PARAM_ModuleName}/output/RequiredModules' condition='${PLASTER_PARAM_Features} -Contains "All" -or ${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteModule","SimpleModule")' /> <!-- END OF MODULES FOLDER SCAFFOLDING --> <!-- REPOSITORY Files --> <!-- GITIGNORE --> <file source='../Git/gitignore' destination='${PLASTER_PARAM_ModuleName}/.gitignore' condition='${PLASTER_PARAM_Features} -Contains "All" -or ${PLASTER_PARAM_Features} -Contains "git" -or ${PLASTER_PARAM_ModuleType} -in @("dsccommunity","SimpleModule","CompleteModule","SimpleModule_NoBuild","CompleteModule_NoBuild","SharedDscConfig")' /> <!-- GITATTRIBUTES --> <file source='../Git/gitattributes' destination='${PLASTER_PARAM_ModuleName}/.gitattributes' condition='${PLASTER_PARAM_Features} -Contains "All" -or ${PLASTER_PARAM_Features} -Contains "git" -or ${PLASTER_PARAM_ModuleType} -in @("dsccommunity","SimpleModule","CompleteModule","SimpleModule_NoBuild","CompleteModule_NoBuild","SharedDscConfig")' /> <!-- KITCHEN YAML Sample --> <templateFile source='kitchen.yml.template' destination='${PLASTER_PARAM_ModuleName}/.kitchen.yml' condition='${PLASTER_PARAM_Features} -Contains "All" -or ${PLASTER_PARAM_Features} -Contains "TestKitchen"' /> <!-- BUILD SCRIPTS --> <!-- BUILD.ps1 (ENTRY POINT) --> <file source='../Build/build.ps1' destination='${PLASTER_PARAM_ModuleName}/build.ps1' condition='${PLASTER_PARAM_Features} -Contains "All" -or ${PLASTER_PARAM_Features} -Contains ("Build") -or ${PLASTER_PARAM_ModuleType} -in @("dsccommunity","SimpleModule","CompleteModule","SharedDscConfig")' /> <!-- REQUIRED MODULES MANIFEST --> <templateFile source='../Build/RequiredModules.psd1.template' destination='${PLASTER_PARAM_ModuleName}/RequiredModules.psd1' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","SimpleModule","CompleteModule","SharedDscConfig") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("Build")' /> <!-- RESOLVE DEPENDENCY Script (used in build.ps1) --> <file source='../Build/Resolve-Dependency.ps1' destination='${PLASTER_PARAM_ModuleName}/Resolve-Dependency.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","SimpleModule","CompleteModule","SharedDscConfig") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("Build")' /> <templateFile source='../Build/Resolve-Dependency.psd1.template' destination='${PLASTER_PARAM_ModuleName}/Resolve-Dependency.psd1' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","SimpleModule","CompleteModule","SharedDscConfig") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("Build")' /> <!-- BUILD YAML CONFIGURATION --> <templateFile source='../Build/build.yaml.template' destination='${PLASTER_PARAM_ModuleName}/build.yaml' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","SimpleModule","CompleteModule","SharedDscConfig") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("Build")' /> <!-- APPVEYOR --> <file source='appveyor.yml' destination='${PLASTER_PARAM_ModuleName}/appveyor.yml' condition='${PLASTER_PARAM_Features} -Contains ("AppVeyor")' /> <!-- AZURE PIPELINES --> <file source='azure-pipelines.yml' destination='${PLASTER_PARAM_ModuleName}/azure-pipelines.yml' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteModule") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("Azure-Pipelines")' /> <modify path='${PLASTER_PARAM_ModuleName}/azure-pipelines.yml' condition='$PLASTER_PARAM_ModuleType -in @("dsccommunity")'> <replace condition="$PLASTER_FileContent -notmatch 'contains\(variables\[''System\.TeamFoundationCollectionUri''\], ''dsccommunity''\)'"> <original>contains\(variables\['System\.TeamFoundationCollectionUri'\], 'synedgy'\)</original> <substitute>contains(variables['System.TeamFoundationCollectionUri'], 'dsccommunity')</substitute> </replace> </modify> <!-- END OF BUILD SCRIPTS --> <!-- DSC RESOURCES files and folders --> <!-- DSCResources --> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/DSCResources' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild","SimpleModule") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("DSCResources")' /> <!-- Examples --> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Examples' condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity")' /> <!-- DSCResource Sample Files --> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/DSCResources/DSC_Folder/' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='../MofResource/DSC_Folder/DSC_Folder.schema.mof' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/DSCResources/DSC_Folder/DSC_Folder.schema.mof' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='../MofResource/DSC_Folder/DSC_Folder.psm1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/DSCResources/DSC_Folder/DSC_Folder.psm1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/DSCResources/DSC_Folder/en-US' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='../MofResource/DSC_Folder/en-US/DSC_Folder.strings.psd1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/DSCResources/DSC_Folder/en-US/DSC_Folder.strings.psd1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <!-- DSCResource Examples Sample Files --> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Examples/Resources/' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='../Examples/README.md' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Examples/README.md' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Examples/Resources/Folder/' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='../Examples/Resources/Folder/1-DscResourceTemplate_CreateFolderAsSystemConfig.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Examples/Resources/Folder/1-DscResourceTemplate_CreateFolderAsSystemConfig.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='../Examples/Resources/Folder/2-DscResourceTemplate_CreateFolderAsUserConfig.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Examples/Resources/Folder/2-DscResourceTemplate_CreateFolderAsUserConfig.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <file source='../Examples/Resources/Folder/3-DscResourceTemplate_RemoveFolderConfig.ps1' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/Examples/Resources/Folder/3-DscResourceTemplate_RemoveFolderConfig.ps1' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or (${PLASTER_PARAM_Features} -Contains ("DSCResources") -and ${PLASTER_PARAM_Features} -Contains ("SampleScripts"))' /> <!-- END OF DSCResources files and folders --> <!-- MODULE MANIFEST --> <newModuleManifest destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/${PLASTER_PARAM_ModuleName}.psd1' moduleVersion='$PLASTER_PARAM_ModuleVersion' author='$PLASTER_PARAM_ModuleAuthor' description='$PLASTER_PARAM_ModuleDescription' rootModule='$PLASTER_PARAM_ModuleName.psm1' condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity") -and (-not (Test-Path "${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/${PLASTER_PARAM_ModuleName}.psd1"))' /> <templateFile source='module.template' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/${PLASTER_PARAM_ModuleName}.psm1' condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity") -and (!(Test-Path "${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/${PLASTER_PARAM_ModuleName}.psm1"))' /> <!-- LICENSE based on type of license MIT/Apache2/CC...--> <!-- MIT License --> <templateFile source='LICENSES/LICENSE.MIT.template' destination='${PLASTER_PARAM_ModuleName}/LICENSE' condition='${PLASTER_PARAM_License} -eq "true" -and ${PLASTER_PARAM_LicenseType} -eq "MIT"' /> <!-- APACHE License --> <templateFile source='LICENSES/LICENSE.Apache.template' destination='${PLASTER_PARAM_ModuleName}/LICENSE' condition='${PLASTER_PARAM_License} -eq "true" -and ${PLASTER_PARAM_LicenseType} -eq "Apache"' /> <!-- END OF LICENSE based on type of license MIT/Apache2/CC...--> <!-- Add Markup help files --> <templateFile source='README.md.template' destination='${PLASTER_PARAM_ModuleName}/README.md' condition='${PLASTER_PARAM_ModuleType} -notin @("dsccommunity")' /> <!-- ABOUT MODULE help text file --> <templateFile source='about_ModuleName.help.template' destination='${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/en-US/about_${PLASTER_PARAM_ModuleName}.help.txt' condition='-not (Test-Path "${PLASTER_PARAM_ModuleName}/${PLASTER_PARAM_SourceDirectory}/en-US/about_${PLASTER_PARAM_ModuleName}.help.txt")' /> <!-- CONTRIBUTING MD --> <file source='CONTRIBUTING.md' destination='${PLASTER_PARAM_ModuleName}/CONTRIBUTING.md' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All")' /> <!-- CODE OF CONDUCT MD --> <file source='CODE_OF_CONDUCT.md' destination='${PLASTER_PARAM_ModuleName}/CODE_OF_CONDUCT.md' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("git")' /> <!-- CHANGELOG MD --> <file source='CHANGELOG.md.template' destination='${PLASTER_PARAM_ModuleName}/CHANGELOG.md' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild","SimpleModule") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("git")' /> <!-- GITVERSION CONFIG YAML --> <file source='../Git/GitVersion.yml' destination='${PLASTER_PARAM_ModuleName}/GitVersion.yml' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteModule","SimpleBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("git")' /> <!-- MARKDOWN LINT --> <file source='markdownlint.json' destination='${PLASTER_PARAM_ModuleName}/.markdownlint.json' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteModule") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("vscode")' /> <!-- VSCODE SETTINGS --> <file source='vscode/**' destination='${PLASTER_PARAM_ModuleName}/.vscode' condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteModule","CompleteModule_NoBuild","SimpleBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("vscode")' /> <!-- GITHUB TEMPLATES --> <file source='github' destination='${PLASTER_PARAM_ModuleName}/.github' condition='${PLASTER_PARAM_ModuleType} -in @("CompleteModule","CompleteModule_NoBuild") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("github")' /> </content> </plasterManifest> |