dbashford / mimosa

A lightning-fast, modular, next generation browser development tool.
http://mimosa.io/
519 stars 34 forks source link

Mimosa config is in JavaScript for CoffeeScript project #415

Open neverfox opened 9 years ago

neverfox commented 9 years ago

When creating a new CoffeeScript project, Mimosa produces mimosa-config.js rather than mimosa-config.coffee as one would expect.

Anachron commented 9 years ago

Yup, that's on purpose, as @dbashford was explaining me at the beginning of this year, while converting mimosa-config.coffee to js. All new projects, no matter if js or coffee will have a mimosa-config.js.

neverfox commented 9 years ago

Thanks for letting me know it's not an oversight, but I'd love some more technical explanation for why that is the case.

dbashford commented 9 years ago

I don't have a good answer for this other than: It's hard. Hard to output CoffeeScript, hard to maintain that code. It does output the documented file which is in CoffeeScript for legacy reasons. And in most cases hand updating JS to CS is 30 seconds of typing.

Anachron commented 9 years ago

@dbashford this should be pretty much solved once its not possible anymore.

dbashford commented 9 years ago

It'll still be possible to create a coffeescript project with mimosa new. It just won't output a documented file. So this issue is still valid.

I'll take a look at this once I wrap up 3.0. Maybe 3.0.1 =) I'm hopeful it'll just be a few regexs to eliminate all the extra stuff.