-1

I was wondering if there is a way (i.e. configuration) where we can tell yeoman or the generator to scaffold .js files or .coffee files.

I'm currently using angular-generator and whenever I try to "yo angular:controller ctrlName", I get ctrlName.coffee. I figured this could be a default setting.

Thanks a lot in advance for any help.

Best, Quan

Qster123
  • 59
  • 1
  • 8

1 Answers1

1

The Angular generator should offer scaffolding in .js by default, but has .coffee available with the --coffee flag: https://github.com/yeoman/generator-angular#coffeescript

For generators that output scripts, the --coffee option will output CoffeeScript instead of JavaScript. ... A project can mix CoffeScript and JavaScript files.

max
  • 5,979
  • 2
  • 21
  • 16
  • Thanks, Max. It's good we have the --coffee option. As it turned out, the issue I had was that I had a .coffee file in my app/scripts folder. This is why angular-generator generates .coffee files by default. Once I removed the file, I was able to see my .js files generated correctly. – Qster123 Sep 03 '13 at 04:31