Skip to content

About

Template PowerShell module with psake/PSDepend build scaffolding

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Commands - powershell utilities bundled in module

Commands module

Typical structure of project / psake build system

  • _src
    source files

  • helpers
    Install-PSDepend.ps1 - installs PSDepend without using PowershellGet

  • build.ps1 Main and default build script. Checks if everything is installed and Launches default task from psakeBuild.ps1 script

  • build.requirements.psd1 Resource file for PSDepend. Describes dependencies and what should be done to meet them

  • psakeBuild.ps1 psake tasks are decribed here.

  • readme.MD you are reading this file now :^)

  • StartupLogonScripts.psdeploy.ps1 deployment script of PSDeploy

Sequences of actions

  1. Powershell: run build.ps1

  2. build.ps1: checks if PSDepend is here and invokes it with build.requirements.psd1 as argument

  3. build.ps1: invokes psakeBuild.ps1 with argument of build.ps1 if there is argument or with 'default' argument otherwise

  4. psakeBuild.ps1: processes tasks specified inside it. One of tasks could be 'Deploy' and this task can Invoke-PSDeploy with argument 'StartupLogonScripts.psdeploy.ps1' - this is deployment script

© 2017 Andriy Melnyk @turboBasic https://github.com/turboBasic

About

Template PowerShell module with psake/PSDepend build scaffolding

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages