This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.LibMan.
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 |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
configurator | Action |
The settings configurator. |
Return Value
Type | Description |
---|---|
void |