Skip to content

Fix filtering to use coffeescript extensions#64

Merged
kimroen merged 2 commits intokimroen:masterfrom
davewasmer:patch-1
Mar 10, 2015
Merged

Fix filtering to use coffeescript extensions#64
kimroen merged 2 commits intokimroen:masterfrom
davewasmer:patch-1

Conversation

@davewasmer
Copy link
Contributor

I might be totally off base here, so feel free to let me know.

It seems that this extension should be the source extension, not the target extension. It is ultimately used by extensionsForType inside ember-cli to build a regex pattern of files to search for, and when it's set to js, the regex completely misses the Coffeescript source files, and the files are never preprocessed / included in the build output.

This extensionsForType codepath doesn't seem to execute for the /app folder, but does on the addon folder. This previously didn't matter, since pre 0.2.0-beta.1, nested addon preprocessors weren't supported. But now that they are, it seems this is required.

I'm still wrapping my head around the nested addon stuff, so let me know if I missed something obvious on this one.

Since there are no options to configure the `ext` property at creation, might as well assign via prototype (as a bonus, allows other plugins to inspect the extensions without instantiation, allowing them to delegate the Coffeescript extensions to this single, authoritative source).
@kimroen
Copy link
Owner

kimroen commented Mar 3, 2015

Hi! This seems reasonable, and thanks for catching it. I'll have to test it a little bit to make sure, but I'll get it merged and released with other improvements scheduled for the release of ember-cli 0.2 in hopefully not too long.

@davewasmer
Copy link
Contributor Author

ping @rwjblue at his request

kimroen added a commit that referenced this pull request Mar 10, 2015
Fix filtering to use coffeescript extensions
@kimroen kimroen merged commit 019b934 into kimroen:master Mar 10, 2015
kimroen added a commit that referenced this pull request Mar 10, 2015
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

Successfully merging this pull request may close these issues.

2 participants