Close GH-13: Add PageSpeed task. Closes #12.

master
Addy Osmani 2014-05-07 11:33:42 +02:00 committed by Sindre Sorhus
parent 288189cd6f
commit a4289608a0
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,9 @@ var reload = browserSync.reload;
// load plugins
var $ = require('gulp-load-plugins')();
// hosted URL for your page
var hostedUrl = '';
gulp.task('styles', function () {
return gulp.src('app/styles/main.scss')
.pipe($.rubySass({
@ -64,6 +67,10 @@ gulp.task('fonts', function () {
.pipe($.size());
});
gulp.task('pagespeed', function () {
opn('https://developers.google.com/speed/pagespeed/insights/?url=' + encodeURIComponent(hostedUrl));
});
gulp.task('clean', function () {
return gulp.src(['.tmp', 'dist'], { read: false }).pipe($.clean());
});