From 914e1bba410ac06532ede62384f3092a86934f18 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 22 Jan 2015 21:38:58 +0800 Subject: [PATCH] bump `psi` --- gulpfile.js | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 643245d1f..1fb2a26b7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -177,15 +177,15 @@ gulp.task('default', ['clean'], function (cb) { }); // Run PageSpeed Insights -// Update `url` below to the public URL for your site -gulp.task('pagespeed', pagespeed.bind(null, { - // By default, we use the PageSpeed Insights - // free (no API key) tier. You can use a Google - // Developer API key if you have one. See - // http://goo.gl/RkN0vE for info key: 'YOUR_API_KEY' - url: 'https://example.com', - strategy: 'mobile' -})); +gulp.task('pagespeed', function (cb) { + // Update the below URL to the public URL of your site + pagespeed.output('example.com', { + strategy: 'mobile', + // By default we use the PageSpeed Insights free (no API key) tier. + // Use a Google Developer API key if you have one: http://goo.gl/RkN0vE + // key: 'YOUR_API_KEY' + }, cb); +}); // Load custom tasks from the `tasks` directory // try { require('require-dir')('tasks'); } catch (err) { console.error(err); } diff --git a/package.json b/package.json index ec4c1135b..545c1f6aa 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "gulp-useref": "^1.0.1", "jshint-stylish": "^1.0.0", "opn": "^1.0.0", - "psi": "^0.1.2", + "psi": "^1.0.4", "require-dir": "^0.1.0", "run-sequence": "^1.0.1" },