Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wmonk/grunt-phantomas-perf
grunt plugin for asserting against metrics generated with Phantomas
https://github.com/wmonk/grunt-phantomas-perf
Last synced: about 1 month ago
JSON representation
grunt plugin for asserting against metrics generated with Phantomas
- Host: GitHub
- URL: https://github.com/wmonk/grunt-phantomas-perf
- Owner: wmonk
- Created: 2015-02-11T11:24:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-02T14:38:10.000Z (over 8 years ago)
- Last Synced: 2024-11-14T18:48:31.210Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/grunt-phantomas-perf
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grunt-phantomas-perf
> grunt-phantomas-perf is a grunt plugin for asserting against metrics generated with [Phantomas](https://github.com/macbre/phantomas);
## Getting Started
This plugin requires Grunt.If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
```shell
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:
```js
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()`.```js
grunt.initConfig({
phantomasPerf: {
my_site: {
options: {
urls: ['http://google.com'],
trials: 5,
timeout: 25,
assertions: {
domInteractive: 1000,
domContentLoadedEnd: 1400,
domComplete: 2000
}
}
},
},
})
```