gruntjs/grunt-lib-phantomjs — pull request #4 by kmiyashiro (2012-12-04 23:12:36+00:00)
Title: Add ability to pass a custom main.js to phantom

Pass by setting the 'main' property in the options. I use this for my grunt-mocha task for passing options from the task config to mocha on the client side.