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

How do I instrument coffeescript files? #9

Open MikeEmery opened 10 years ago

MikeEmery commented 10 years ago

I've been banging my head on this for awhile and Google has been no help. I'm trying to set it up so that it will instrument my coffeescript files. This is the config I have in my Gruntfile:

blanket:
  coverage:
    options:
      loader: "./node-loaders/coffee-script",
      extensions: ['.js', '.coffee'],
    src: ['src/']
    dest: 'coverage/src/'

This is the coffeescript file I'm trying to instrument:

module.exports = ->
  10

But when I run grunt coverage I get this:

Running "blanket:coverage" (blanket) task
Warning: Line 1: Unexpected token > Use --force to continue.

Any help is appreciated.

drinchev commented 10 years ago

+1

shamoons commented 10 years ago

+1

danil-z commented 9 years ago

+1