trailsjs / generator-trails-old

:package: Trails Generator.
Other
6 stars 8 forks source link

--coffee, --litcoffee etc. otpions #33

Closed scippio closed 8 years ago

scippio commented 8 years ago

It will be possible added this options? I can add pull requests in the future for gen. templates...

jaumard commented 8 years ago

I didn't know at all coffee or litcoffee but Trails use js ES2015 so it is not enough ? The team take position to don't have any coffee on official modules https://github.com/trailsjs/trails/blob/382a768231c33144b127c31caae09597eabc04b3/CONTRIBUTING.md#no-coffeescript I let them answer you about this officially.

scippio commented 8 years ago

Hmm ok... :( but I think a coffee code generated user controllers/services etc.. (not core things). if they don't like it.. nevermind, I can create something like generator-trails-coffee... :)

tjwebb commented 8 years ago

My position is that es6/es7 should always be preferred over non-native implementations such as CoffeeScript. If you really want to use coffeescript, I think that needs to be built as an addon.

The trails core is not at all opinionated on what language you use -- you could build a trailpack in C++ if you want -- so a coffeescript pack might be become popular among coffeescript users. The contributing guidelines are to specify that coffeescript code won't be merged into the core.

When you get a trails coffeescript integration working, let us know! We'll happily link to it.

jaumard commented 8 years ago

I'm closing this as there will be no official work on this feature. Like Travis say, let us know when you have something working with coffee.