Compiled server with sourcemaps

10 views
Skip to first unread message

chee...@gmail.com

unread,
Aug 9, 2014, 6:49:35 PM8/9/14
to mimo...@googlegroups.com
One more thing...is there any sort of option or plugin that compiles and watches the server like it does the client?

i.e.: I'd like to be able to set up a server src directory (with coffeescript) and a server directory (with compiled javascript + src maps) so I can debug my server code using Node Inspector
http://docs.strongloop.com/display/SLC/Debugging+with+Node+Inspector

The way it is now, I can run mimosa in the debugger, but it translates the coffeescript at runtime, so Node Inspector doesn't ever see the coffeescript code.

The only way to do that now that I can think of is to configure mimosa to run with an external server, and then set up a separate server project using grunt or something...

GMail

unread,
Aug 10, 2014, 7:33:01 PM8/10/14
to mimo...@googlegroups.com
Not within the same process. You could set up a build profile that does that. That's actually far preferable to using the same process because mimosa will be pretty browser focused depending on the modules you use. Using another profile you can use a proper set of modules.

I've had this question enough that I need to have a test project set up to illustrate the solution.

Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "mimosajs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mimosajs+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages