linemanjs / lineman-angular-template

A Lineman Application Template using AngularJS
251 stars 88 forks source link

Mixing *.coffee vs. *.js files #51

Closed un33k closed 10 years ago

un33k commented 10 years ago

Is there any particular reason why we have some .coffee and some .js files throughout this project?

Would it be possible to convert any common files to *.js and leave users to decide which syntax they want to use for their personal files?

jasonkarns commented 10 years ago

I'm not terribly involved with this particular lineman template, so take this with a grain of salt.

Lineman itself is written almost exclusively in coffee. However, in attempting to avoid overloading new users to lineman, node, npm, grunt, build tools, underscore, jasmine, specs, jasmine-given, and coffee all at once we try to build out most of the project stuff in straight javascript. That's why the (new) default archetype generated by lineman uses javascript for both the app example files and the lineman configuration files. (Though 0.30.0 introduced the --coffee flag which generates the config and sample code as coffee.)

The actual app in this project is entirely in js, no coffee to be found. There are a couple duplicate specs that are in both javascript and coffee, and I believe they are there for demonstration and comparison purposes.

searls commented 10 years ago

Agree 100% with Jason

On Fri, Jul 11, 2014 at 5:20 PM, Jason Karns notifications@github.com wrote:

I'm not terribly involved with this particular lineman template, so take this with a grain of salt. Lineman itself is written almost exclusively in coffee. However, in attempting to avoid overloading new users to lineman, node, npm, grunt, build tools, underscore, jasmine, specs, jasmine-given, and coffee all at once we try to build out most of the project stuff in straight javascript. That's why the (new) default archetype generated by lineman uses javascript for both the app example files and the lineman configuration files. (Though 0.30.0 introduced the --coffee flag which generates the config and sample code as coffee.)

The actual app in this project is entirely in js, no coffee to be found. There are a couple duplicate specs that are in both javascript and coffee, and I believe they are there for demonstration and comparison purposes.

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman-angular-template/issues/51#issuecomment-48743685

un33k commented 10 years ago

Great explanation indeed.