A programming language that compiles into JavaScript, offering more concise and readable syntax while maintaining full JavaScript compatibility.
77
{
"context": "This evaluation assesses how effectively the engineer uses the CoffeeScript package's compile API to build a compiler utility. The criteria focus exclusively on correct usage of CoffeeScript's compile method and its options (bare, sourceMap, filename) for transforming CoffeeScript source code to JavaScript.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses compile method",
"description": "Code imports and calls CoffeeScript.compile() or coffeescript.compile() to transform CoffeeScript source code to JavaScript",
"max_score": 25
},
{
"name": "Implements bare mode",
"description": "Code passes the bare option (bare: true) to the compile method when the --bare flag is provided, resulting in JavaScript without a top-level function wrapper",
"max_score": 20
},
{
"name": "Generates source maps",
"description": "Code passes the sourceMap option (sourceMap: true) to the compile method when the --map flag is provided, and correctly extracts the v3SourceMap or sourceMap property from the compilation result",
"max_score": 20
},
{
"name": "Writes source map file",
"description": "When source maps are enabled, code writes the source map to a separate .map file and includes a sourceMappingURL comment in the generated JavaScript file",
"max_score": 15
},
{
"name": "Passes filename option",
"description": "Code passes the filename option to the compile method for better error reporting and source map generation (e.g., {filename: inputPath})",
"max_score": 10
},
{
"name": "Handles compilation errors",
"description": "Code properly catches and handles errors thrown by the compile method (such as SyntaxError), displaying error information and returning non-zero exit codes",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-coffeescriptevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10