Class RoutePackage
Builds a route package from a project directory (the Tsak-independent half):
the package layout — manifest.json, the L4 identity config, the XML artifacts, the
resources — with the packaging checks run first, so a broken reference is a build
error, never a deployment surprise. The layout is exactly what the Tsak module loader will
consume; nothing here depends on Tsak.
public static class RoutePackage
Inheritance
Methods
Build(string, string, string, string, IReadOnlyList<string>?, Func<string, Type?>?, IReadOnlyList<IXmlElementContribution>?, IReadOnlyList<CatalogComponent>?, IReadOnlyList<string>?, IReadOnlyList<IPackageCheck>?)
Builds the package: checks first (errors refuse the build), then the package layout in
public static PackageResult Build(string projectDir, string name, string version, string outDir, IReadOnlyList<string>? entryPoints = null, Func<string, Type?>? typeResolver = null, IReadOnlyList<IXmlElementContribution>? extensions = null, IReadOnlyList<CatalogComponent>? catalog = null, IReadOnlyList<string>? dependencies = null, IReadOnlyList<IPackageCheck>? checks = null)
Check(string, string, string, Func<string, Type?>?, IReadOnlyList<IXmlElementContribution>?, IReadOnlyList<CatalogComponent>?, IReadOnlyList<string>?, IReadOnlyList<IPackageCheck>?)
Runs the packaging checks for a project directory without producing anything — the CI
public static PackageResult Check(string projectDir, string name, string version, Func<string, Type?>? typeResolver = null, IReadOnlyList<IXmlElementContribution>? extensions = null, IReadOnlyList<CatalogComponent>? catalog = null, IReadOnlyList<string>? dependencies = null, IReadOnlyList<IPackageCheck>? checks = null)
ResourceCandidatesFor(string, string)
Where a route's file= reference is read from outside a package, in order. A route under
public static IReadOnlyList<string> ResourceCandidatesFor(string routeFile, string reference)
ResourceRootFor(string)
The first directory a route's file= references are looked up in outside a package. A
public static string ResourceRootFor(string routeFile)