Giter Club home page Giter Club logo

fakebootstraper's Introduction

What problem does it help to solve?

This is a PowerShell script to comprehensively set up an environment to use Fake

How to use it

  1. Download the script into the folder wher you want to implement your build system
  2. Open Windows PowerShell
  3. Put down .\build.ps1 -CreateDraftFsx

The result

The current folder has all the infrstructure to use Fake right away:

  1. The latest stable version of Fake is downloaded
  2. Fake.exe and FakeLib.dll are in ".\packages\FAKE\tools"
  3. A draft of a build script is created and named as build.fsx

Using Fake

Fake can also be used via this script. All that need to be done is to invoke the script with necessary Fake's parameters. For instance: .\build.ps1 Clean will invoke the Clean task of build.fsx. You can can also optionally provide the Script parameter to specify the name of the build script. For instance, the alternative to .\build.ps1 <Task> <FakeArguments> but with a specified script is the following command: .\build.ps1 -Script my_test.fsx <Task> <FakeArguments>(or even easier .\build.ps1 my_test.fsx <Task> <FakeArguments>)

Undercover

From all the ways offered on the official web-site, the paket approach appealed to me most of all because:

  1. I don't want to have all memebers of my team install chockolotey and Fake globally
  2. I also don't want to have a .Net Core locally or make anybody install it

So the script downloads Paket to the current folder and set up all necessary infrastructure to use it:

  1. paket.exe can be found under the .paket folder
  2. paket.dependencies and paket.lock are created in the current folder

Considering this, you will have to add .paket to your .gitignore and add paket.dependencies and paket.lock to your repository

Also if you specify the -CreatedDraftFsx parameter then the script also creates a blueprint of a build script with examples of tasks. By providing the Script parameter, you can control the name of that script.

fakebootstraper's People

Watchers

James Cloos avatar Dmitry Senin 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.