Angular Build Architect builder for ng-packagr library packaging (deprecated)
89
A TypeScript utility that manages environment-aware build caching for development tools.
process.env.CI is set to any truthy value @testprocess.env.CI is not set @test@generates
/**
* Configuration for cache behavior
*/
export interface CacheConfig {
/** Whether caching is enabled at all. If false, cache is always disabled. */
enabled: boolean;
/** Environment strategy: 'local' (cache only locally), 'ci' (cache only in CI), 'all' (always cache) */
environment: 'local' | 'ci' | 'all';
/** Base directory path for cache storage */
cacheDirectory: string;
/** Version identifier for cache isolation */
version: string;
}
/**
* Result of cache configuration evaluation
*/
export interface CacheResult {
/** Whether caching should be active based on configuration and environment */
cacheEnabled: boolean;
/** Full path to the version-isolated cache directory */
cacheDirectory: string;
}
/**
* Determines if caching should be enabled based on configuration and current environment.
* Implements environment-aware cache strategies.
*
* @param config - Cache configuration settings
* @returns Cache result with enabled status and directory path
*/
export function evaluateCacheStrategy(config: CacheConfig): CacheResult;Provides Angular Build Architect builder for ng-packagr library packaging.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-angular-devkit--build-ng-packagrdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10