JSPM

grunt-clean-console

0.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q67147F
  • License MIT

Quick JavaScript error sanity check for deployed pages

Package Exports

  • grunt-clean-console

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (grunt-clean-console) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

grunt-clean-console

Quick JavaScript error sanity check for deployed pages using clean-console

NPM

Build status dependencies devdependencies semantic-release

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.loadNpmTasks('grunt-clean-console');
grunt.initConfig({
  'clean-console': {
    all: {
      options: {
        url: 'dist/index.html',
        timeout: 5 // seconds to wait for any errors
      }
    }
  }
})

url could point to a local file, a remote url or a list of urls

// test local file
url: 'dist/index.html'

// test several urls, local and remote
url: ['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