tessl install tessl/npm-coffeescript@2.7.0A programming language that compiles into JavaScript, offering more concise and readable syntax while maintaining full JavaScript compatibility.
Agent Success
Agent success rate when using this tile
77%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
76%
A command-line utility that compiles CoffeeScript source files to JavaScript with various output options.
The utility should read a CoffeeScript source file and compile it to JavaScript.
The utility should support bare mode compilation that omits the top-level function wrapper.
The utility should be able to generate source maps alongside the compiled JavaScript.
The utility should handle compilation errors gracefully.
@generates
/**
* Compiles a CoffeeScript file to JavaScript
* @param {string} inputPath - Path to the CoffeeScript source file
* @param {string} outputPath - Path where the JavaScript output should be written
* @param {Object} options - Compilation options
* @param {boolean} options.bare - Compile without top-level function wrapper
* @param {boolean} options.sourceMap - Generate source map file
* @returns {Promise<void>}
*/
async function compileFile(inputPath, outputPath, options = {}) {
// Implementation here
}
/**
* Main CLI entry point
* @param {string[]} args - Command-line arguments
* @returns {Promise<number>} Exit code (0 for success, non-zero for failure)
*/
async function main(args) {
// Implementation here
}
module.exports = { compileFile, main };# Basic compilation
node src/compiler.js input.coffee output.js
# Bare mode compilation
node src/compiler.js input.coffee output.js --bare
# With source map generation
node src/compiler.js input.coffee output.js --map
# Combined options
node src/compiler.js input.coffee output.js --bare --mapProvides CoffeeScript to JavaScript compilation support.