Templates/NewScript/build.ps1

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

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