LibManInstallAliases.

LibManInstall(ICakeContext, Action<LibManInstallSettings>) Method

Summary

Installs client side libraries using the settings returned by a configurator.
Assembly
Cake.LibMan.dll
Namespace
Cake.LibMan
Containing Type
LibManInstallAliases

Syntax

public static void LibManInstall(this ICakeContext context, Action<LibManInstallSettings> configurator)

Examples

Installs client side libraries using the settings ('libman install')

LibManInstall(settings =>
   {
       settings
           .SetLibrary("jquery", "3.2.1")
           .WithProvider(CdnProvider.jsdelivr)
           .WithDestination("wwwroot/lib/jquery")
           .AddFile("dist/jquery.min.js")
           .AddFile("dist/jquery.min.map")
           .WithVerbosity(LibManVerbosity.Detailed)
           .FromPath(@"c:\myproject");
   });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
configurator Action<LibManInstallSettings> The settings configurator.

Return Value

Type Description
void