grunt-clean-console
Quick JavaScript error sanity check for deployed pages
Last updated 4 years ago by bahmutov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-clean-console 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.4.0                                ...           latest (4 years ago)

6 Versions

  • 0.4.0                                ...           4 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (11)

Copyright 2014 - 2016 © taobao.org |