You can edit almost every page by Creating an account and confirming your email.

Psake

From EverybodyWiki Bios & Wiki

psake
Stable release
4.7.4 / September 7, 2018; 7 years ago (2018-09-07)
Written inPowerShell
Engine
    Operating systemCross-platform
    TypeSoftware development tools
    LicenseMIT License
    Websitegithub.com/psake/psake

    Search Psake on Amazon.

    psake is a domain-specific language and build automation tool written in PowerShell to create builds using a dependency pattern similar to Rake or MSBuild. It intends to simplify the build language as compared to MSBuild scripting.[1]

    Overview

    A build script consists of Tasks. Each Task is a function that can define dependencies on other Task functions.

    The following is an example psake script:

    Task default -Depends Build
    
    Task Build -Depends Init,Clean,Compile {
       "build"
    }
    
    Task Compile -Depends Clean, Init {
       "compile"
    }
    
    Task Clean -Depends Init {
       "clean"
    }
    
    Task Init {
       "init"
    }
    

    psake executes the Task functions and enforces the dependencies between tasks. Since psake is written in a real programming language and not XML, you have a lot more freedom and flexibility in your build scripts. You can use all the features of PowerShell and the .NET Framework within your build.

    The output of running psake on the script above is shown below:

    PS  > .\psake.ps1 default.ps1
    Executing task: Init
    init
    Executing task: Clean
    clean
    Executing task: Compile
    compile
    Executing task: Build
    compile
    
    Build Succeeded!
    
    ----------------------------------------------------------------------
    Build Time Report
    ----------------------------------------------------------------------
    Name    Duration
    ----    --------
    Init    00:00:00.0140878
    Clean   00:00:00.0113634
    Compile 00:00:00.0334894
    Build   00:00:00.1288015
    Total:  00:00:00.4693739
    

    History

    • May 2008 - psake originally written by James Kovacs as a PowerShell V1 script file
    • May 2009 - psake re-written as a PowerShell V2 module by Jorge Matos

    References

    1. ASP.NET - Topshelf and Katana: A Unified Web and Service Architecture ; MSDN Magazine June 2014  ; https://msdn.microsoft.com/en-us/magazine/dn745865.aspx

    External links

    As of this edit, this article uses content from "How does psake work?", which is licensed in a way that permits reuse under the Creative Commons Attribution-ShareAlike 3.0 Unported License, but not under the GFDL. All relevant terms must be followed.


    This article "Psake" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Psake. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.