Closed derekcicerone-zz closed 11 years ago
Can you post your grunt config?
i.e.: blanket: { instrument: { options: { debug: true }, files: { 'cov/': ['tasks/*.js'], }, } },
That's the weird part - I actually haven't put in the config part yet. Just including the load call is enough to reproduce: grunt.loadNpmTasks("grunt-blanket");
There seems to be an error for each task Grunt is attempting to load: $ grunt build Loading "coffeelint.js" tasks...ERROR
Error: Bad file instrument indicator. Must be a string, regex, function, or array. Loading "clean.js" tasks...ERROR Error: Bad file instrument indicator. Must be a string, regex, function, or array. Loading "coffee.js" tasks...ERROR Error: Bad file instrument indicator. Must be a string, regex, function, or array. Loading "copy.js" tasks...ERROR Error: Bad file instrument indicator. Must be a string, regex, function, or array. Loading "handlebars.js" tasks...ERROR Error: Bad file instrument indicator. Must be a string, regex, function, or array. Loading "htmlmin.js" tasks...ERROR Error: Bad file instrument indicator. Must be a string, regex, function, or array.
Figured it out. My require("blanket")
statement was too early. I'm publishing to npm right now and pushing to github.
Done. Let me know if that works (locally I don't get any grunt errors, but I didn't do a full instrumentation test to see if there aren't any other issues).
I tested again and full instrumentation work for me.
Cool, thanks, that was super fast! I'll check it out first thing tomorrow.
Derek Sent from my iPad
On Mar 12, 2013, at 10:30 PM, Alex Seville notifications@github.com wrote:
I tested again and full instrumentation work for me.
— Reply to this email directly or view it on GitHub.
Works great - thanks for the quick fix!
I see a bunch of errors like this: Loading "compress.js" tasks...ERROR
It seems like the grunt-blanket plugin might be trying to instrument my grunt tasks.