pthrasher / snockets

Sprockets-style script concatenation for Node
119 stars 39 forks source link

Windows support for require and cake #8

Closed litek closed 12 years ago

litek commented 12 years ago

Require statements for files in subfolders do not work on Windows. This is because the file is requested as folder/file.js, but cached as folder\file.js. Since it is supported to access files using forward slash instead of backslash as directory separator, I suggest just replacing all backslashes with forward slashes.

Also, on Windows the Cakefile tasks needs to spawn "coffee" and "docco" with a .cmd suffix for them to run.