This is a pretty specific problem, but one I'm determined to find an answer 
for. 

I'm using Browserify + CoffeeScript + Karma. I'm also using many node 
modules that are written in coffee, and so I'm using the "transform" 
property in their package.json files. I've written a browserify transform 
that uses Ibrik <https://github.com/Constellation/ibrik> to generate 
coverage for my coffee files. The issue is that if I have coffeeify in my 
package.json as a transform and in my karma.conf.js I specify my ibrikify 
transform, first ibrikify turns my coffee files to javascript with the 
coverage added, then coffeeify tries running and throws an error.

So, my options seem to be:

1. Create a new coffeeify transform that has a "coverage" flag and use that 
and set the flag when in Karma
2. Somehow modify the package.json file before the coffeeify transform is 
applied (again, doing this somewhere before Karma runs). 

The issue with #1 is that there is no way to pass options to a transform. 
The issue with #2 is that "packageFilter" seems to be what I would use to 
modify the package.json before karma-browserify bundles my files, but there 
is no flag to specify my own modifications.

Any suggestions? Am I missing something obvious?

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to