A programming language that compiles into JavaScript, offering more concise and readable syntax while maintaining full JavaScript compatibility.
77
A command-line utility that automates the compilation of CoffeeScript files using various build modes.
src/app.coffee, compiles it to dist/app.js using the compilation API @testsrc/ containing multiple .coffee files, compiles all of them to a dist/ directory preserving the file structure @test.js, .txt) during directory compilation @test@generates
/**
* Compiles a single CoffeeScript file to JavaScript
*
* @param {string} inputPath - Path to the input .coffee file
* @param {string} outputPath - Path to the output .js file
* @param {object} options - Compilation options
* @param {boolean} options.bare - Compile without top-level function wrapper (default: true)
* @returns {Promise<void>}
*/
async function compileFile(inputPath, outputPath, options = {}) {
// IMPLEMENTATION HERE
}
/**
* Compiles all CoffeeScript files in a directory
*
* @param {string} inputDir - Path to the input directory
* @param {string} outputDir - Path to the output directory
* @param {object} options - Compilation options
* @param {boolean} options.bare - Compile without top-level function wrapper (default: true)
* @returns {Promise<number>} Number of files compiled
*/
async function compileDirectory(inputDir, outputDir, options = {}) {
// IMPLEMENTATION HERE
}
/**
* Compiles CoffeeScript source and returns JavaScript as string
*
* @param {string} filePath - Path to the .coffee file
* @param {object} options - Compilation options
* @param {boolean} options.bare - Compile without top-level function wrapper (default: true)
* @returns {Promise<string>} Compiled JavaScript code
*/
async function printCompiled(filePath, options = {}) {
// IMPLEMENTATION HERE
}
module.exports = {
compileFile,
compileDirectory,
printCompiled
};Provides CoffeeScript compilation support.
@satisfied-by
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