MyGit

cake-contrib/Cake.Paket

Fork: 15 Star: 6 (更新于 2024-12-08 12:05:31)

license: MIT

Language: C# .

Adds paket support to cake.

最后发布版本: 4.0.0 ( 2018-07-09 07:57:46)

官方网址 GitHub网址

Cake.Paket

AppVeyor branch Travis branch Codecov branch NuGet NuGet Gitter

Adds Paket support to Cake via a Cake addin and module.

Features

Allows the use of paket preprocessor directives and commands

// tools
#tool paket:?package=NUnit.ConsoleRunner&group=main
#tool paket:?package=JetBrains.ReSharper.CommandLineTools

// addins
#addin paket:?package=Cake.Figlet&group=build/setup
#addin paket:?package=Cake.Paket

...

// Restores packages
Task("Paket-Restore").Does(() =>
{
    PaketRestore();
});

// Creates a nuget package
Task("Paket-Pack").Does(() =>
{
    PaketPack("./NuGet");
});

// Push a nuget package
Task("Paket-Push").IsDependentOn("Paket-Pack").Does(() =>
{
    PaketPush("./NuGet/foo.nupkg", new PaketPushSettings { ApiKey = "00000000-0000-0000-0000-000000000000" });
});

...

instead of using NuGet

// tools
#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
#tool nuget:?package=JetBrains.ReSharper.CommandLineTools

// addins
#addin nuget:?package=Cake.Figlet&version=0.3.1

...

// Restores packages
Task("NuGet-Restore").Does(() =>
{
    NuGetRestore("solution.sln");
});

// Creates a nuget pacakge
Task("NuGet-Pack").Does(() =>
{
    NuGetPack("bar.nuspec", new NuGetPackSettings{OutputDirectory = "./NuGet"});
});

// Push a nuget pacakge
Task("NuGet-Push").IsDependentOn("Paket-Pack").Does(() =>
{
    NuGetPush("./NuGet/foo.nupkg", new NuGetPushSettings{ApiKey = "00000000-0000-0000-0000-000000000000"});
});

...

Quick Start

Cake.Paket.Module

If you want to use paket instead of nuget in the preprocessor directive e.g. #tool paket:?package=Cake.Foo and/or #addin paket:?package=Cake.Bar then you need to use Cake.Paket.Module.

  • Get the modified cake bootstrapper script, then create a tools dependency group and add Cake to your paket.dependencies file
    group tools
        source https://nuget.org/api/v2
        nuget Cake
  • Create a modules dependency group and add Cake.Paket.Module to your paket.dependencies file
    group modules
        source https://nuget.org/api/v2
        nuget Cake.Paket.Module
  • Now you can use paket instead of nuget in the preprocessor directive.

Cake.Paket (addin)

If you need to use paket commands such as restore, pack, and push then add #addin paket:?package=Cake.Paket if your using the Cake.Paket.Module, otherwise add #addin nuget:?package=Cake.Paket and #tool nuget:?package=Paket.

Note that if you use #addin nuget:?package=Cake.Paket you can use the cake teams default bootstrappers build.ps1 and/or build.sh.

Example Project

Cake.Paket.Example is an example project which uses Paket with Cake. Additionally, the project for the paket addin and module is another good resource, see setup.cake.

Documentation

Contributing

All types of contributions are welcome!

Questions

Feel free to open an issue or @larzw me via Gitter

最近版本更新:(数据更新于 2024-10-11 09:10:33)

2018-07-09 07:57:46 4.0.0

2018-07-09 06:29:06 3.0.0

2018-01-25 11:15:09 2.0.0

2017-08-10 06:42:50 1.2.5

2017-08-10 00:55:03 1.2.4

2017-07-03 15:46:02 1.2.3

2017-01-24 12:07:26 v1.2.2

2017-01-04 13:47:57 v1.2.1

2017-01-02 06:14:33 v1.2.0

2017-01-02 04:47:26 v1.1.0

主题(topics):

build, cake, paket, script

cake-contrib/Cake.Paket同语言 C#最近更新仓库

2024-12-20 06:41:40 microsoft/PowerToys

2024-12-07 22:15:43 Pik-4/HsMod

2024-12-01 20:18:03 BililiveRecorder/BililiveRecorder

2024-11-26 14:48:43 Azure/azure-sdk-for-net

2024-11-19 11:38:46 jellyfin/jellyfin

2024-11-15 10:33:01 DigitalRuby/IPBan