2017 © Pedro Peláez
 

robo-tasks robo-google-lighthouse

Google lighthouse for Robo Task Runner

image

droath/robo-google-lighthouse

Google lighthouse for Robo Task Runner

  • Sunday, November 12, 2017
  • by droath
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3,375 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 11 % Grown

The README.md

Robo Google Lighthouse

Run Google Lighthouse commands from the Robo task runner., (*1)

Prerequisites

  • Install node brew install node
  • Install lighthouse npm install -g lighthouse

Getting Started

First, you'll need to download the Robo Google Lighthouse library using composer:, (*2)

composer require droath/robo-google-lighthouse

Example

Output an HTML file of the performance results., (*3)

<?php 
    use Droath\RoboGoogleLighthouse\Task\loadTasks;

   $url = 'https://google.com';
   $path = '/tmp/example.html';
   $this->taskGoogleLighthouse()
        ->setUrl($url)
        ->performanceTestOnly()
        ->setOutputPath($path)
        ->run();

Output an JSON file of the results., (*4)

<?php 
    use Droath\RoboGoogleLighthouse\Task\loadTasks;

   $url = 'https://google.com';
   $path = '/tmp/example.json';
   $this->taskGoogleLighthouse()
        ->setUrl($url)
        ->setOutput('json')
        ->setOutputPath($path)
        ->run();

Support

The majority of the lighthouse commands available in the CLI tool are supported. If you find any discrepancies, please feel free to open up a GitHub issue., (*5)

The Versions

12/11 2017

dev-master

9999999-dev

Google lighthouse for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

google robo task runner lighthouse

12/11 2017

1.0.1

1.0.1.0

Google lighthouse for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

google robo task runner lighthouse

11/11 2017

1.0.0

1.0.0.0

Google lighthouse for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

google robo task runner lighthouse