iamchrismiller / grunt-casper

Run CasperJS Scripts/Functional Tests
Other
69 stars 38 forks source link

Add modulePath for local dependency? #48

Closed jsoverson closed 10 years ago

jsoverson commented 10 years ago

When looking for the casper bin, the modulePaths seem to only look for casper in the global install dir, or as a sibling to grunt-casper, and not as a local dependency.

Am I doing something wrong?

    modulePaths : [
      path.resolve(__dirname, '../../..'), //local
      '/usr/local/lib/node_modules' //global
    ],

If casper is installed as a local dependency to grunt-casper shouldn't there be a modulePath like:

path.resolve(__dirname, '../../node_modules'), // local to grunt-casper

I feel like this is probably my error, so am opening an issue instead of issuing a PR.

Thanks chris!

iamchrismiller commented 10 years ago

Thanks Jarrod. I have added the local path when loading the casper binary and published grunt-casper@0.3.10.