Bbcore.Lib
7.1.3
dotnet add package Bbcore.Lib --version 7.1.3
NuGet\Install-Package Bbcore.Lib -Version 7.1.3
<PackageReference Include="Bbcore.Lib" Version="7.1.3" />
<PackageVersion Include="Bbcore.Lib" Version="7.1.3" />
<PackageReference Include="Bbcore.Lib" />
paket add Bbcore.Lib --version 7.1.3
#r "nuget: Bbcore.Lib, 7.1.3"
#:package Bbcore.Lib@7.1.3
#addin nuget:?package=Bbcore.Lib&version=7.1.3
#tool nuget:?package=Bbcore.Lib&version=7.1.3
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 | Versions 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. |
-
net10.0
- BTDB (>= 35.13.0)
- HtmlAgilityPack (>= 1.13.1)
- JavaScriptEngineSwitcher.Core (>= 3.31.0)
- JavaScriptEngineSwitcher.V8 (>= 3.35.2)
- JetBrains.Annotations (>= 2026.2.0)
- Markdig (>= 1.5.0)
- Microsoft.ClearScript.V8.Native.linux-x64 (>= 7.5.1.1)
- Microsoft.ClearScript.V8.Native.osx-arm64 (>= 7.5.1.1)
- Microsoft.ClearScript.V8.Native.osx-x64 (>= 7.5.1.1)
- Microsoft.ClearScript.V8.Native.win-arm64 (>= 7.5.1.1)
- Microsoft.ClearScript.V8.Native.win-x64 (>= 7.5.1.1)
- Microsoft.DotNet.PlatformAbstractions (>= 3.1.6)
- Newtonsoft.Json (>= 13.0.4)
- ProxyKit (>= 2.3.4)
- SemanticVersioning (>= 3.0.0)
- System.Management (>= 10.0.13)
- System.Reactive (>= 7.0.0)
- UAParser (>= 3.1.47)
- WebMarkupMin.Core (>= 2.22.5)
- YamlDotNet (>= 18.1.0)
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 |