Templates/NewModule/build.ps1

1
2
3
4
5
6
7
8
9
#Requires -Modules psake
[cmdletbinding()]
param(
    [ValidateSet('Build','Test','BuildHelp','BuildTests','Install','Clean','Analyze','Publish','Sign','ExportFunctionsToSrc')]
    [string[]]$Task = 'Build'
)

Import-Module psake;Import-Module Pester;Import-Module PSScriptAnalyzer
Invoke-psake -buildFile "$PSScriptRoot\_build.psake.ps1" -taskList $Task -Verbose:$VerbosePreference