Open mhartington opened 10 years ago
Really not a fan of CoffeeScript but I'm definitely willing to pull in support for it if the community wants it!
I really like what Google has done with Traceur - https://github.com/google/traceur-compiler. Being able to use ES6 features https://github.com/google/traceur-compiler/wiki/LanguageFeatures but have it compile to the JavaScript of today is quite exciting.
I'll mark this as an enhancement request and we can get to it as more requests come in.
+1
@diegonetto I like Traceur, very forward thinking (considering angular announced angular 2.0 will be targeting ES6).
I'll admit, I'm not a fan of coffee script either, but if people want it, why not?
To repeat what I said earlier, I'm willing to pull in support for CoffeeScript if the community wants it, but was waiting for more requests to come in before making it a priority.
The addition of downloadable starter templates starting in version 0.2.0
made this task even more difficult since we would need to write the CoffeeScript files for each of the four starter templates.
I just don't have the time for that undertaking right now so it will probably have to wait until mid May.
I'm new to the grunt/yeoman world (although with a fair bit of other JS knowledge) so I'm not sure how to go about this - is there a way to add coffee compilation to the various compilation steps, leaving the translation parts to me?
Followup - here's how far I got - but I'm not sure how to make the coffee:dist task to work - also I'm sure there's a package I've gotta add to the project somewhere...
After working on this further and following the install here - see my final gruntfile at https://gist.github.com/cschneid/10702021
The biggest thing was the command:
npm install grunt-contrib-coffee
Live reload works
Coffee gets compiled right (converted the app.js and controllers.js with js2coffee
tool)
Haven't tried much beyond that (tests / etc), but it works so far.
+1
+1 Any news about it?
+1 for Coffeescript support !
+1
+1
+1
I'm gonna go out on a limb and say the +1s aren't helping any more.... somebody who knows grunt more than me should grab the work I put up and polish it.
@cschneid I'll take a look at the js2coffee
tool and see if I can knock this feature request out within the next week or so, since its become a more popular request! Just be sure to share this generator with your fellow CoffeeScript loving developers once its supported :)
Hi guys, I made some changes in the gruntfile.js to add support to coffee files. There are a few things to do yet, but I think that's the main thing.
First of all, add the package grunt-contrib-coffee in the package.json or install it manually
npm install grunt-contrib-coffee
Then, copy this gist to add support to coffee files:
https://gist.github.com/rafaelmotta/1214cb0c755da1cb0e4e
If anyone wants to continue it would be great. Is a very important issue.
+1
+1
+1 :)
+1
+1
+1
+1, I can't get @rafaelmotta instructions working with current version of ionic-generator
Shall anybody be interested, here's the ionic sidemenu starter app in coffeescript: https://github.com/paolomaffei/ionic-sidemenu-coffeescript (using ionic 1.10)
+1
+1
As this grows and becomes more popular, it should support more than just pure javascript. There should be options at the start of the generator to select CoffeeScript.
I know the angular generator form Yeoman comes with the option to include coffee script So that can also be a good case to have that generator be pulled in as a sub-generator and have some of its powerful features.