grunt-clean-console
Quick JavaScript error sanity check for deployed pages using clean-console
Install
npm install grunt-clean-console --save-dev
note this does not install phantomjs, assumes it is in the path.
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;grunt
url could point to a local file, a remote url or a list of urls
// test local fileurl: 'dist/index.html' // test several urls, local and remoteurl: 'dist/index.html' 'http://localhost:8080/index.html'
Small print
Author: Gleb Bahmutov © 2013
License: MIT - do anything with the code, but don't blame me if it does not work.
Support: if you find any problems with this module, email / tweet / open issue on Github