I'm writing some CoffeeScript to be executed in a MongoDB server environment, and MongoDB requires returns values to be returned from the global scope. ie, a very simple file would be:
return args.str.toUpperCase()
I can't seem to do that in CoffeeScript though. I know about --bare, but I'm using Gulp and I'd rather not mess with that setup.
Is there any way to either omit the wrapper on a per-file basis, or alternatively return from the global scope?
> I know about --bare, but I'm using Gulp and I'd rather not mess with that setup.
I think you are stuck with that as the only option.
댓글 없음:
댓글 쓰기