alex-seville / grunt-blanket

grunt task to instrument files for code coverage using Blanket.js
http://blanketjs.org
MIT License
29 stars 6 forks source link

Match against options.pattern when recursing src dir #10

Closed jasonm closed 9 years ago

jasonm commented 10 years ago

I couldn't get blanket.options.pattern to be respected and didn't see where it should be processed in the grunt-blanket source.

Is this the right approach to introduce it?

For context, here's my Gruntfile.js blanket section:

    blanket: {
      options: {
        pattern: "!app/javascripts/app/react_components/**/*"
      },
      dev: {
        files: {
          "cov/app/javascripts/app": ["app/javascripts/app/"]
        }
      }
    },

(The instrumentation doesn't work on the JSX React components.)

Thanks!

avdg commented 9 years ago

@alex-seville Care to merge?