Angular Build Architect builder for ng-packagr library packaging (deprecated)
89
{
"context": "This evaluation assesses how well the engineer uses @angular-devkit/build-ng-packagr's environment-aware caching capabilities to implement a cache strategy manager. The focus is on correctly detecting the execution environment (CI vs local) and conditionally enabling caching based on configuration.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CI Environment Detection",
"description": "Uses process.env.CI or process.env['CI'] to detect CI environment. Should check if the environment variable is set (truthy value indicates CI).",
"max_score": 20
},
{
"name": "Local Mode Logic",
"description": "Correctly implements 'local' cache mode: enables cache when NOT in CI environment (process.env.CI is falsy), disables cache when in CI.",
"max_score": 15
},
{
"name": "CI Mode Logic",
"description": "Correctly implements 'ci' cache mode: disables cache when NOT in CI environment, enables cache when in CI (process.env.CI is truthy).",
"max_score": 15
},
{
"name": "All Mode Logic",
"description": "Correctly implements 'all' cache mode: always enables caching regardless of environment.",
"max_score": 10
},
{
"name": "Explicit Disable Override",
"description": "Respects the config.enabled flag as a master switch: when false, caching is disabled regardless of environment mode.",
"max_score": 15
},
{
"name": "Version-Isolated Directory",
"description": "Constructs cache directory path by combining base directory with version subdirectory (e.g., using path.join or similar to create 'cacheDirectory/version' structure).",
"max_score": 15
},
{
"name": "Return Structure",
"description": "Returns a properly structured CacheResult object with both cacheEnabled (boolean) and cacheDirectory (string) properties.",
"max_score": 10
}
]
}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