Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate coffeescript when detected. #4

Closed
CodisRedding opened this issue Oct 10, 2014 · 6 comments
Closed

Generate coffeescript when detected. #4

CodisRedding opened this issue Oct 10, 2014 · 6 comments

Comments

@CodisRedding
Copy link

If I generate a controller, route, etc and my project uses coffeescript, the generator generates the appropriate coffee files. Do blueprint generators generally follow this rule?

@manuelmitasch
Copy link
Owner

I don't see how this could work. Coffeescript only compiles coffee to js not the other way around.
And I personally do not see a need for this. You could move this discussion into the ember-cli repo if it is important to you. It's not specific to this repository, but a general ember-cli decision.

@CodisRedding
Copy link
Author

interesting. considering that the ember-cli's generators will generate coffee when needed I figured that blueprint addons would follow suit. If it's not a concern to you, I can create a fork an adjust the templates for coffee like it's done with others. Thanks

@manuelmitasch
Copy link
Owner

Is it really possible to generate coffee files with the included ember cli blueprints? Calling ember generate controller foo with some special parameter?

@CodisRedding
Copy link
Author

@manuelmitasch no special option needed: screen gif

@manuelmitasch
Copy link
Owner

Let me guess. You are using ember-cli-coffeescript. This addon overrides the existing ember-cli blueprint to generate coffee files. This has nothing to do with ember-cli itself.

@CodisRedding
Copy link
Author

sure enough, sorry man. co-worker added it. =/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants