Install and consume 3rd-party client-side libraries from jsdelivr.
Download from Release page.
delivr
JsDelivr CLI
Usage:
delivr [options] [command]
Options:
--version Show version information
-?, -h, --help Show help and usage information
Commands:
init Initialize a package configuration file
install <library> install a package from jsdelivr
remove <library> remove a package from local
search <library> search package from npm
info <library> get library version info
restore restore client side package
Install a library
install
install a package from jsdelivr
Usage:
delivr [options] install <library>
Arguments:
<library> library name and version
Options:
--version <version> library version
--dir <dir> library install directory
-?, -h, --help Show help and usage information
Example:
# install jquery
delivr install jquery
# install jquery v3.6.0
delivr install jquery --version 3.6.0
# install jquery v3.6.0 in directory lib
delivr install jquery --version 3.6.0 --dir lib
Config library configuration file
{
"Libraries": [
{
"Name": "jquery",
"Version": "3.6.0",
"Destination": "lib"
},
{
"Name": "bootstrap",
"Version": "5.0.2",
"Destination": "lib"
}
]
}
Restore dependences
delivr restore
Install pre-requisites
-
Windows
- Visual Studio 2022, including
.NET workload
andDesktop development with C++ workload
.
- Visual Studio 2022, including
-
Linux
- .NET 8 SDK
- libicu-dev
- cmake
- Visit official website to download Visual Studio 2022.
-
Install .NET SDK
- Ubuntu
apt install dotnet-sdk-8.0 -y apt install libicu-dev cmake -y
- CentOS
dnf install dotnet-sdk-8.0 -y dnf install libicu-dev cmake -y
dotnet restore
dotnet build
dotnet run
dotnet publish -r win-x64 -c Release
dotnet publish -r linux-x64 -c Release
dotnet publish -r osx-x64 -c Release