Bbcore.Lib 7.1.3

dotnet add package Bbcore.Lib --version 7.1.3
                    
NuGet\Install-Package Bbcore.Lib -Version 7.1.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bbcore.Lib" Version="7.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bbcore.Lib" Version="7.1.3" />
                    
Directory.Packages.props
<PackageReference Include="Bbcore.Lib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bbcore.Lib --version 7.1.3
                    
#r "nuget: Bbcore.Lib, 7.1.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bbcore.Lib@7.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bbcore.Lib&version=7.1.3
                    
Install as a Cake Addin
#tool nuget:?package=Bbcore.Lib&version=7.1.3
                    
Install as a Cake Tool

Bbcore.Lib

Library form of bbcore, the build tool (bb) for Bobril applications written in TypeScript. It transpiles, typechecks and bundles TypeScript into JavaScript and can also run whole bb commands from your .NET code.

Build TypeScript into one JavaScript bundle

Sources are read through IFsAbstraction, so they can live in memory (InMemoryFs) or on disk (NativeFsAbstraction).

using Bbcore.Lib;
using Lib.DiskCache;

var files = new InMemoryFs();
files.WriteAllUtf8("/tmp/index.ts", "let a: string = 'hello'; console.log(a);");

var bbcore = new BbcoreLibrary();
if (bbcore.RunBuild(files, "5.2.2", "/tmp", out var javaScript, out var messages))
    Console.WriteLine(javaScript);
else
    Console.Error.WriteLine(messages);

The overload with out string? sourceMap also returns the source map of the bundle.

Run bb commands

Run takes the same command line arguments as the bb executable and returns its exit code:

using Lib.Utils.Logger;

var exitCode = await new BbcoreLibrary().Run(["b"], new ConsoleLogger());

Documentation

Configuration (package.json bobril section, .bbrc), commands and changes between versions are described in the bbcore repository and its changelog.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.1.3 50 11/6/2026
7.1.2 57 11/4/2026
7.1.1 214 10/29/2026
7.1.0 214 10/28/2026
7.0.6 220 10/27/2026
7.0.5 208 10/27/2026
7.0.4 197 10/26/2026
7.0.3 202 10/26/2026
7.0.2 193 10/25/2026
7.0.1 187 10/25/2026
7.0.0 213 10/24/2026
6.0.0 423 10/8/2026
5.18.1 270 10/6/2026
5.18.0 303 10/3/2026
5.17.0 284 10/2/2026
5.16.0 822 6/17/2026
5.15.5 507 6/3/2026
5.15.4 373 6/3/2026
5.15.3 496 5/25/2026
5.15.2 371 5/25/2026
Loading failed