grunt-multishot

grunt plugin to create screenshots for multiple urls

grunt-multishot

grunt plugin to create screenshots for multiple urls

This plugin requires Grunt ~0.4.1

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 grunt-multishot --save-dev

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

grunt.loadNpmTasks('grunt-multishot');

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

grunt.initConfig({
  multishot: {
    your_target: {
      // Target-specific file lists and/or options go here. 
    },
  },
})
grunt.initConfig({
  multishot: {
    default: {
      temp: '/tmp/multishot/',
      output: '/tmp/multishot/',
      url: ['http://google.com', 'http://yahoo.com', 'http://facebook.com', 'http://digg.com', 'http://amazon.com']
    }
  },
})

Urls must be separated by a new line.

grunt.initConfig({
  multishot: {
    default: {
      temp: '/tmp/multishot/',
      output: '/tmp/multishot/',
      file: '/home/user/someurllist.txt'
    }
  },
})