node.js - Proper way to integrate compile-to-javascript languages under node? -


i'm trying set application using coffeescript, jade , mocha. however, when run mocha, --compilers flag, jade templates don't load.

i have done similar setup using brunch, , jade templates automatically converted commonjs modules there. under node, not appear loaded modules. is there proper way this?

right now, running mocha so: mocha --compilers coffee:coffee-script,jade:jade

i'm sure there's way jury-rig along lines, thing understand .coffee files compile .js files, , when written commonjs modules, node can run them. however, .jade templates compile single javascript function opposed full commonjs module, node never going able make use of .jade templates without other module integrate standalone compiled template functions commonjs module system. guess automated build tools brunch adding little wrapper code boilerplate make templates commonjs modules.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -