LibMan is a new open source tool by Microsoft for managing client-side libraries. It consists of a Visual Studio extension and a command-line tool. Both read information from a libman.jsonconfiguration file. A sample file looks like this:
{
"version": "1.0",
"defaultProvider": "cdnjs",
"libraries": [{
"library": "jquery@3.4.1",
"destination": "wwwroot/lib"
},
{
"library": "jquery-validation-unobtrusive@3.2.11",
"destination": "wwwroot/lib"
}]
}
As you can see from the preceding code snippet, in the file, we specify one or more libraries (in this case, jQuery and jQuery Validation Unobtrusive) in specific versions, and, for each, we tell the library where to install it (wwwroot/lib for both). From inside Visual Studio (for Windows only—Mac does not have support for LibMan), we even have code completion...