Angular Build Architect builder for ng-packagr library packaging (deprecated)
89
{
"context": "This criteria evaluates how well the engineer uses @angular-devkit/build-ng-packagr's configuration management capabilities, specifically focusing on the NgPackagrBuilderOptions interface, schema-based validation patterns, and workspace-relative path resolution as implemented in the package.",
"type": "weighted_checklist",
"checklist": [
{
"name": "BuilderOptions Interface",
"description": "Correctly defines or uses the BuilderOptions interface matching NgPackagrBuilderOptions structure with project (required string), tsConfig (optional string), watch (optional boolean), and poll (optional number) properties",
"max_score": 15
},
{
"name": "Schema Validation",
"description": "Implements validation logic that checks type correctness (string, boolean, number) and constraints (non-empty strings, positive numbers) similar to the schema.json validation approach used by the package",
"max_score": 25
},
{
"name": "Required Field Check",
"description": "Validates that the required 'project' field is present and is a non-empty string, returning appropriate validation errors when missing or invalid",
"max_score": 10
},
{
"name": "Path Resolution",
"description": "Resolves workspace-relative paths to absolute paths for project and tsConfig properties using a base directory, similar to how the package uses resolve(root, options.project) and resolve(root, options.tsConfig)",
"max_score": 20
},
{
"name": "Default Values",
"description": "Applies default value for the watch option (defaults to false) when not provided, following the package's convention for optional configuration properties",
"max_score": 10
},
{
"name": "Error Collection",
"description": "Collects and returns all validation errors in a structured format rather than failing on the first error, enabling comprehensive feedback similar to schema validation behavior",
"max_score": 10
},
{
"name": "Validated Config Return",
"description": "Returns a ValidatedConfig object with valid boolean, errors array, and resolvedOptions containing all processed configuration values with resolved paths",
"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