Upgrade CoffeeScriptLinter to broccoli-persistent-filter#95
Upgrade CoffeeScriptLinter to broccoli-persistent-filter#95kimroen merged 4 commits intokimroen:masterfrom
Conversation
a889d5c to
7ea8445
Compare
|
@kimroen please look at this, makes a significant improvement in build time. |
|
👍 |
|
just made quick review, this LGTM |
|
ah, this should likely enable |
lib/coffee-linter.js
Outdated
There was a problem hiding this comment.
Could you set the options.persist = true, and then move the Filter.call line to after this?
|
All right, tried all this out and it's looking really good :) Would you mind making the change above? After that I'll try out again to confirm, and then merge and release. Hopefully I can get that done tomorrow :) |
|
Thanks, and thanks for your help, stef 😄 |
|
@kimroen done. |
|
@kimroen the change as suggested broke our build, so I've rolled it back. Can we merge this PR as-is and then implement this persist option separately, as I don't know a lot about this |
|
FYI here's the log which occurred on ref ab59e54 |
|
looks like hash-for-dep is unable to resolve coffeescripts |
|
@stefanpenner can we make that a separate issue please and merge this as-is. |
im indifferent (and also not a maintainer of the project, so can't really merge either way :P) but without persistence, it is still a really good win. So my vote is +1 opened an issue, will investigate the failure you describe soon (maybe tomorrow) ->ember-cli/hash-for-dep#21 |
|
@kimroen please merge? |
|
@johnnyshields could you please stop nagging? This project (as most open source projects) is maintained by volunteers, and as such may have limited time and have no obligation to look at issues and pull requests this often. It will be looked at in time. If you need this change, you can run your own fork of the project until it is considered and possibly merged. |
|
Took a brief look at the error, seems likely that this part is causing the problem: CoffeeScriptLinter.prototype.baseDir = function() {
return __dirname;
};This file is not in the root of the project, so the CoffeeScriptLinter.prototype.baseDir = function() {
return path.resolve(__dirname, '..');
};I'll try to merge and try that later today. |
|
@kimroen good catch! |
|
Tried @kimroen's fix, but looks like it's getting a different error: |
|
Merging this now, then I'll take a look at the problem with |
Upgrade CoffeeScriptLinter to broccoli-persistent-filter
|
Published without the persist option as |
This is the latest API from Ember team (see ember-cli/ember-cli#5030) and the change below cuts my build time in half. I've tested this on a large CoffeeScript ember project.