Registry / devops / wch-coffee

wch-coffee

JSON →
library0.3.2jsnpmunverified

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.

npm install wch-coffee
INSTALL
IMPORT
SIG · WCH-COFFEE
W
wch-coffee
devopsjavascriptv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import 'wch-coffee'
const wchCoffee = require('wch-coffee')
wch-coffee is a plugin for wchd; imported as a side-effect module, not as a named export. Typically added to package.json as a devDependency without explicit import in user code.

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 .
wch --version
Debug
Known issues
breakingRequires 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.
affects: <0.3.0
deprecatedDeprecated 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.
affects: >=0.3.0
gotchaCoffeeScript 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).
affects: >=0.3.0
Errors
Common errors & fixes
Error: Cannot find module 'wch'
wch peer dependency not installed
fix
Run 'npm install wch@^0.10.0' or add wch to devDependencies.
Error: Missing dependency 'coffeescript'
CoffeeScript not installed
fix
Run 'npm install coffeescript --save-dev'
Error: ENOENT: no such file or directory, open 'src/index.coffee'
Source file missing in src directory
fix
Create src/index.coffee or configure main in package.json to point to existing CoffeeScript file.
Upgrade
Version history
0.3.2latest on npm
Audit
Dependencies
wchrequiredPeer dependency: provides the wch CLI and build system; wch-coffee is a plugin for wchd
Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
wch-coffee — npm install wch-coffee · libregistry