gpp

grunt-phantomas-perf

grunt plugin for asserting against metrics generated with Phantomas

Showing:

Popularity

Downloads/wk

1

GitHub Stars

1

Maintenance

Last Commit

5yrs ago

Contributors

3

Package

Dependencies

4

Size (min+gzip)

101.2KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

grunt-phantomas-perf

grunt-phantomas-perf is a grunt plugin for asserting against metrics generated with Phantomas;

Getting Started

This plugin requires Grunt.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install --save-dev grunt-phantomas-perf

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-phantomas-perf');

The "grunt-phantomas-perf" task

Overview

In your project's Gruntfile, add a section named phantomasPerf to the data object passed into grunt.initConfig().

grunt.initConfig({
  phantomasPerf: {
    my_site: {
      options: {
        urls: ['http://google.com'],
        trials: 5,
        timeout: 25,
        assertions: {
            domInteractive: 1000,
            domContentLoadedEnd: 1400,
            domComplete: 2000
        }
      }
    },
  },
})

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100