Code Monkey home page Code Monkey logo

bootstrapper's Introduction

#Cake Bootstrapper

The Cake Bootstrapper is a Powershell cmdlet that helps you set up a new Cake build by downloading dependencies, setting up the bootstrapper script and creating a Cake build script.

##What is Cake?

Cake (C# Make) is a build automation system with a C# DSL to do things like compiling code, copy files/folders, running unit tests, compress files and build NuGet packages. For more information about the Cake project, see https://github.com/cake-build/cake.

##Usage

Start by either cloning and building this repository (by executing build.ps1) and executing the MSI artifact, or install the Powershell cmdlet via Chocolatey:

PS C:\> choco install cake-bootstrapper

When everything is installed, close the Powershell window and open a new one to make sure that everything been properly setup.

Now, go to the project where you want to setup a new Cake build and write Install-Cake (with or without the provided optional parameters).

PS C:\MyProject> Install-Cake -AppVeyor -GitIgnore -InstallNuGet -Empty
 -> Downloaded NuGet executable.
 -> Generated NuGet package configuration.
 -> Copied bootstrapper script.
 -> Copied empty build script.
 -> Copied AppVeyor configuration file.
 -> Patched .gitignore.

This will result in the following directory structure:

  • tools
    • nuget.exe
    • packages.config
  • appveyor.yml
  • build.cake
  • build.ps1

##Executing a build

To run your cake build, start the bootstrapper script build.ps1.

PS C:\MyProject> .\build.ps1

The bootstrapper script is responsible for installing the dependencies specified in tools/packages.config such as Cake or unit test runners. You can also pass arguments to the bootstrapper script to affect execution of the build script.

PS C:\MyProject> .\build.ps1 -Target "Build" -Configuration "Debug"

bootstrapper's People

Contributors

daviddesloovere avatar devlead avatar marcind avatar patriksvensson avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.