wch-coffee

raw JSON →
0.3.2 verified Fri May 01 auth: no javascript

CoffeeScript transpiler for wchd (version 0.3.2). Integrates with wchd build tool to compile CoffeeScript source files from a 'src' directory. Requires peer dependency wch ^0.10.0 and CoffeeScript as a devDependency. Focused on simplicity: set main in package.json, run 'wch start' for server and 'wch .' for watching. Lightweight but niche; no active release cadence observed. Differentiator: minimal configuration vs other CoffeeScript build tools like gulp-coffee, but tied to wchd ecosystem.

error Error: Cannot find module 'wch'
cause wch peer dependency not installed
fix
Run 'npm install wch@^0.10.0' or add wch to devDependencies.
error Error: Missing dependency 'coffeescript'
cause CoffeeScript not installed
fix
Run 'npm install coffeescript --save-dev'
error Error: ENOENT: no such file or directory, open 'src/index.coffee'
cause Source file missing in src directory
fix
Create src/index.coffee or configure main in package.json to point to existing CoffeeScript file.
breaking Requires wch version ^0.10.0; incompatible with other major versions.
fix Ensure wch is at version 0.10.x and wch-coffee at ^0.3.2.
deprecated Deprecated in favor of native wch support for CoffeeScript? Check if wchd has built-in transpilation.
fix Consider using wchd's native CoffeeScript handling if available; otherwise stick with this plugin.
gotcha CoffeeScript version not pinned; user must add 'coffeescript' as a devDependency. Using incompatible CoffeeScript version may break transpilation.
fix Install coffeescript as devDependency and ensure version compatible with this plugin (e.g., ^2.7.0).
npm install wch-coffee
yarn add wch-coffee
pnpm add wch-coffee

Demonstrates basic setup: package.json config, devDependencies, and commands to run wchd server and watch for changes.

// In package.json:
// {
//   "main": "lib/index.js",
//   "devDependencies": {
//     "wch": "^0.10.0",
//     "wch-coffee": "^0.3.2",
//     "coffeescript": "^2.7.0"
//   }
// }
// Place CoffeeScript files in src/
// Run in terminal:
// npx wch start
// npx wch .