License detector for UglifyJS that identifies and preserves license comments during minification
Overall
score
98%
{
"context": "This evaluation assesses how well the engineer uses the uglify-save-license package to handle stateful cross-file processing during JavaScript minification. The focus is on correctly integrating uglify-save-license with UglifyJS to preserve license comments while processing multiple files in batch mode.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports uglify-save-license",
"description": "Correctly requires/imports the uglify-save-license module (the default export, which is the saveLicense function)",
"max_score": 10
},
{
"name": "Imports UglifyJS",
"description": "Correctly requires/imports the uglify-js module for minification",
"max_score": 10
},
{
"name": "Configures UglifyJS comments option",
"description": "Uses the uglify-save-license function as the comments option in UglifyJS configuration (either via output.comments or preserveComments depending on UglifyJS API version)",
"max_score": 25
},
{
"name": "Processes multiple files",
"description": "Implements logic to iterate through multiple input/output file pairs provided via command-line arguments",
"max_score": 15
},
{
"name": "Reads input files",
"description": "Correctly reads each input JavaScript file before minification",
"max_score": 10
},
{
"name": "Applies minification with license preservation",
"description": "Calls UglifyJS minify function on each file with the uglify-save-license callback configured, allowing stateful license detection to work across files",
"max_score": 20
},
{
"name": "Writes output files",
"description": "Correctly writes the minified output to the specified output file paths",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-uglify-save-licensedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10