Angular Build Architect builder for ng-packagr library packaging (deprecated)
89
{
"context": "This criteria evaluates the engineer's ability to use the @angular-devkit/build-ng-packagr package to execute ng-packagr builds within the Angular Architect system, focusing on proper usage of the execute/executeNgPackagrBuilder function, options structure, and Observable-to-Promise conversion.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Execute function usage",
"description": "Uses the execute function (or executeNgPackagrBuilder) from @angular-devkit/build-ng-packagr to initiate the build process",
"max_score": 25
},
{
"name": "NgPackagrBuilderOptions structure",
"description": "Correctly constructs NgPackagrBuilderOptions object with required 'project' property and optional 'tsConfig' property using the provided parameters",
"max_score": 20
},
{
"name": "BuilderContext integration",
"description": "Properly passes the BuilderContext parameter to the execute function as the second argument",
"max_score": 15
},
{
"name": "Observable handling",
"description": "Correctly handles the Observable<BuilderOutput> return type from the execute function, converting it to a Promise using RxJS operators like toPromise(), lastValueFrom(), or firstValueFrom()",
"max_score": 20
},
{
"name": "BuilderOutput mapping",
"description": "Extracts the 'success' and 'error' properties from BuilderOutput and maps them to the required BuildStatusResult structure",
"max_score": 15
},
{
"name": "Error handling",
"description": "Uses RxJS catchError operator or try-catch with async/await to handle build failures gracefully and return appropriate error information without throwing exceptions",
"max_score": 5
}
]
}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