thom4parisot / grunt-crx

Grunt task used to package private Chrome Extensions.
https://npmjs.com/grunt-crx
MIT License
118 stars 21 forks source link

`config.rootDirectory` should be a String, not Array #26

Closed pismute closed 11 years ago

pismute commented 11 years ago

My Gruntfile.coffee:

   ...
    crx:
      dev:
        src: 'out/lib/'
        dest: 'out/'
   ...

I have got an exception:

 % grunt --stack crx
Running "crx:dev" (crx) task
Fatal error: path must be a string
TypeError: path must be a string
    at Object.fs.stat (fs.js:670:11)
    at /home/../grunt-crx/node_modules/crx/node_modules/wrench/lib/wrench.js:339:12
    at Object.oncomplete (fs.js:107:15)
thom4parisot commented 11 years ago

Could you share your Gruntfile config for this task? Was is working previously or it broke when you upgraded the module?

Thanks for reporting the problem, it's great :-) (and I guess the problem existed at some point but is not caught in tests).

pismute commented 11 years ago

please check my projects, https://github.com/pismute/ladybucks

thom4parisot commented 11 years ago

Merged. I've added tests to check the datatype of the src, just in case.

I'll publish it on npm in a couple of minutes :-)

Thanks!

pismute commented 11 years ago

Thank you!