From 162f1fa1d1a2ea030e67e4cfe61ae0ccf4cae92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sat, 1 Aug 2015 19:42:33 +0200 Subject: [PATCH 01/10] Migrate Travis-CI to container-base infra --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 3e5dd80..3bf526f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: node_js +sudo: false node_js: - "0.12.4" before_install: From 08459ca28993f3bdbc0b295d3a798cf171df53d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Tue, 11 Aug 2015 21:23:46 +0200 Subject: [PATCH 02/10] Add keywords to package.json --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3682c0d..8650741 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,13 @@ }, "scripts": { "test": "grunt test" - } + }, + "keywords": [ + "performance", + "metrics", + "webperf", + "pagespeed", + "budget", + "phantomas" + ] } From 2c2c8bf4cbd6ffc33bc32f907a0c66cfbcf9c399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Tue, 11 Aug 2015 21:24:43 +0200 Subject: [PATCH 03/10] Add author to package.json --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 8650741..8245fcd 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,11 @@ "version": "1.7.4", "description": "Online tool to audit a webpage for performance and front-end quality issues", "license" : "GPL-2.0", + "author": { + "name": "Gaël Métais", + "email": "gael@gaelmetais.com", + "url": "http://www.gaelmetais.com" + }, "repository": { "type": "git", "url": "git://github.com/gmetais/YellowLabTools.git" From d5c607d370342ebe643af51d0f9847bcd6cf0ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 16 Aug 2015 13:06:18 +0200 Subject: [PATCH 04/10] Update dependencies --- bower.json | 14 +++++------ package.json | 66 ++++++++++++++++++++++++++-------------------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/bower.json b/bower.json index 12cd42e..47c8bd3 100644 --- a/bower.json +++ b/bower.json @@ -1,13 +1,13 @@ { "name": "yellowlabtools", "dependencies": { - "angular": "1.3.15", - "angular-route": "1.3.15", - "angular-resource": "1.3.15", - "angular-sanitize": "1.3.15", - "angular-animate": "1.3.15", + "angular": "1.4.4", + "angular-route": "1.4.4", + "angular-resource": "1.4.4", + "angular-sanitize": "1.4.4", + "angular-animate": "1.4.4", "angular-local-storage": "0.2.2", - "angular-chart.js": "0.7.1", - "Chart.js": "~1.0.2" + "angular-chart.js": "0.7.3", + "Chart.js": "1.0.2" } } diff --git a/package.json b/package.json index 8245fcd..6829832 100644 --- a/package.json +++ b/package.json @@ -17,51 +17,51 @@ }, "main": "./lib/index.js", "dependencies": { - "async": "1.2.1", - "body-parser": "1.13.1", - "clean-css": "3.3.0", - "compression": "1.5.0", + "async": "1.4.2", + "body-parser": "1.13.3", + "clean-css": "3.3.9", + "compression": "1.5.2", "cors": "2.7.1", "debug": "2.2.0", - "express": "4.12.4", + "express": "4.13.3", "imagemin": "3.2.0", "imagemin-jpegoptim": "4.0.0", "lwip": "0.0.7", "meow": "3.3.0", - "minimize": "1.4.1", + "minimize": "1.6.0", "phantomas": "1.11.0", "ps-node": "0.0.4", "q": "1.4.1", - "request": "^2.58.0", - "rimraf": "2.4.0", + "request": "2.60.0", + "rimraf": "2.4.2", "temporary": "0.0.8", - "uglify-js": "2.4.23" + "uglify-js": "2.4.24" }, "devDependencies": { - "chai": "^3.0.0", - "grunt": "^0.4.5", - "grunt-blanket": "^0.0.8", - "grunt-contrib-clean": "^0.6.0", - "grunt-contrib-concat": "^0.5.1", - "grunt-contrib-copy": "^0.8.0", - "grunt-contrib-cssmin": "^0.12.3", - "grunt-contrib-htmlmin": "^0.4.0", - "grunt-contrib-jshint": "^0.11.2", - "grunt-contrib-less": "^1.0.1", - "grunt-contrib-uglify": "^0.9.1", - "grunt-env": "^0.4.4", - "grunt-express": "^1.4.1", - "grunt-filerev": "^2.3.1", - "grunt-inline-angular-templates": "^0.1.5", - "grunt-line-remover": "^0.0.2", - "grunt-mocha-test": "^0.12.7", - "grunt-replace": "^0.9.2", - "grunt-usemin": "^3.0.0", - "grunt-webfont": "^0.5.3", - "matchdep": "^0.3.0", - "mocha": "^2.2.5", - "sinon": "^1.15.3", - "sinon-chai": "^2.8.0" + "chai": "~3.2.0", + "grunt": "~0.4.5", + "grunt-blanket": "~0.0.8", + "grunt-contrib-clean": "~0.6.0", + "grunt-contrib-concat": "~0.5.1", + "grunt-contrib-copy": "~0.8.0", + "grunt-contrib-cssmin": "~0.13.0", + "grunt-contrib-htmlmin": "~0.4.0", + "grunt-contrib-jshint": "~0.11.2", + "grunt-contrib-less": "~1.0.1", + "grunt-contrib-uglify": "~0.9.1", + "grunt-env": "~0.4.4", + "grunt-express": "~1.4.1", + "grunt-filerev": "~2.3.1", + "grunt-inline-angular-templates": "~0.1.5", + "grunt-line-remover": "~0.0.2", + "grunt-mocha-test": "~0.12.7", + "grunt-replace": "~0.9.3", + "grunt-usemin": "~3.0.0", + "grunt-webfont": "~0.5.4", + "matchdep": "~0.3.0", + "mocha": "~2.2.5", + "sinon": "~1.15.4", + "sinon-chai": "~2.8.0" }, "scripts": { "test": "grunt test" From e0649eb9bdf09372cfb351625c272532ba83c4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 16 Aug 2015 13:22:12 +0200 Subject: [PATCH 05/10] Replace bower by npm (browserify) --- .bowerrc | 3 --- .gitignore | 1 - bower.json | 13 ------------- front/src/main.html | 18 +++++++++--------- lib/server/controllers/frontController.js | 2 +- package.json | 10 +++++++++- 6 files changed, 19 insertions(+), 28 deletions(-) delete mode 100644 .bowerrc delete mode 100644 bower.json diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index 5e6701a..0000000 --- a/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory" : "bower_components" -} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6fe25bb..19cd53d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ node_modules -bower_components .tmp .vagrant results/* diff --git a/bower.json b/bower.json deleted file mode 100644 index 47c8bd3..0000000 --- a/bower.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "yellowlabtools", - "dependencies": { - "angular": "1.4.4", - "angular-route": "1.4.4", - "angular-resource": "1.4.4", - "angular-sanitize": "1.4.4", - "angular-animate": "1.4.4", - "angular-local-storage": "0.2.2", - "angular-chart.js": "0.7.3", - "Chart.js": "1.0.2" - } -} diff --git a/front/src/main.html b/front/src/main.html index 88ce064..790cb59 100644 --- a/front/src/main.html +++ b/front/src/main.html @@ -16,18 +16,18 @@ - + - - - - - - - - + + + + + + + + diff --git a/lib/server/controllers/frontController.js b/lib/server/controllers/frontController.js index 4d5f531..e0a3e73 100644 --- a/lib/server/controllers/frontController.js +++ b/lib/server/controllers/frontController.js @@ -20,7 +20,7 @@ var FrontController = function(app) { app.use('/img', express.static(path.join(__dirname, assetsPath, 'img'), { maxAge: cacheDuration })); app.use('/js', express.static(path.join(__dirname, assetsPath, 'js'), { maxAge: cacheDuration })); app.use('/views', express.static(path.join(__dirname, assetsPath, 'views'), { maxAge: cacheDuration })); - app.use('/bower_components', express.static(path.join(__dirname, '../../../bower_components'), { maxAge: cacheDuration })); + app.use('/node_modules', express.static(path.join(__dirname, '../../../node_modules'), { maxAge: cacheDuration })); }; module.exports = FrontController; \ No newline at end of file diff --git a/package.json b/package.json index 6829832..dbb003f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "yellowlabtools", "version": "1.7.4", "description": "Online tool to audit a webpage for performance and front-end quality issues", - "license" : "GPL-2.0", + "license": "GPL-2.0", "author": { "name": "Gaël Métais", "email": "gael@gaelmetais.com", @@ -17,8 +17,16 @@ }, "main": "./lib/index.js", "dependencies": { + "angular": "1.4.4", + "angular-animate": "1.4.4", + "angular-chart.js": "0.7.3", + "angular-local-storage": "0.2.2", + "angular-resource": "1.4.4", + "angular-route": "1.4.4", + "angular-sanitize": "1.4.4", "async": "1.4.2", "body-parser": "1.13.3", + "chart.js": "1.0.2", "clean-css": "3.3.9", "compression": "1.5.2", "cors": "2.7.1", From 2f1003e8bcf190e67fa6199cce9697d646a224c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 16 Aug 2015 13:30:57 +0200 Subject: [PATCH 06/10] Remove bower from shell scripts --- server_config/server_install.sh | 3 +-- server_config/server_update.sh | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/server_config/server_install.sh b/server_config/server_install.sh index 7355ea5..18fd4ed 100644 --- a/server_config/server_install.sh +++ b/server_config/server_install.sh @@ -12,7 +12,7 @@ sudo apt-get install -y nodejs source ~/.profile # Installation of some packages globally -npm install bower forever grunt-cli -g +npm install forever grunt-cli -g source ~/.profile # Installation of YellowLabTools @@ -22,7 +22,6 @@ cd /space git clone https://github.com/gmetais/YellowLabTools.git --branch master cd YellowLabTools npm install || exit 1 -bower install --config.interactive=false --allow-root || exit 1 # Front-end compilation grunt build diff --git a/server_config/server_update.sh b/server_config/server_update.sh index 0da2289..01280d8 100755 --- a/server_config/server_update.sh +++ b/server_config/server_update.sh @@ -10,11 +10,9 @@ git stash git pull git stash pop -# In case something was added in package.json or bower.json +# In case something was added in package.json rm -rf node_modules npm install || exit 1 -rm -rf bower_components -bower install --config.interactive=false --allow-root || exit 1 # Front-end compilation rm -rf front/build From 143436ecd365ff8ef3bb6285276617b4df31a56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 16 Aug 2015 13:47:41 +0200 Subject: [PATCH 07/10] Change tooltip message --- front/src/views/dashboard.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/views/dashboard.html b/front/src/views/dashboard.html index a7a2191..f5dfa2c 100644 --- a/front/src/views/dashboard.html +++ b/front/src/views/dashboard.html @@ -49,7 +49,7 @@
- Did you know? Yellow Lab Tools has a brand new Grunt plugin! + Did you know? You can bookmark this result page URL or share it, Yellow Lab Tools keeps test results for years!
From 9cb3c78defdad7ff1b0600c17a6677bc2f852f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 16 Aug 2015 14:03:55 +0200 Subject: [PATCH 08/10] Hide scrollbars on screenshot (show then on hover) --- front/src/css/main.css | 5 ++++- front/src/less/main.less | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/front/src/css/main.css b/front/src/css/main.css index 1fc06d5..1d698ba 100644 --- a/front/src/css/main.css +++ b/front/src/css/main.css @@ -192,8 +192,11 @@ a.linkButton { background: #000; } .screenshotWrapper > div { - overflow: scroll; position: relative; + overflow: hidden; +} +.screenshotWrapper > div:hover { + overflow: auto; } .screenshotWrapper .screenshotImage { width: 100%; diff --git a/front/src/less/main.less b/front/src/less/main.less index dafdc21..2aac50b 100644 --- a/front/src/less/main.less +++ b/front/src/less/main.less @@ -132,8 +132,12 @@ a.linkButton { background: #000; > div { - overflow: scroll; position: relative; + overflow: hidden; + + &:hover { + overflow: auto; + } } .screenshotImage { From 8325a9297e3d5772d13c56484bab43d567765e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 16 Aug 2015 14:04:29 +0200 Subject: [PATCH 09/10] v1.7.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dbb003f..b02aedb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yellowlabtools", - "version": "1.7.4", + "version": "1.7.5", "description": "Online tool to audit a webpage for performance and front-end quality issues", "license": "GPL-2.0", "author": { From 6bd55e4807ebdcd80fa60b80d1555834f9dbe263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 16 Aug 2015 14:23:37 +0200 Subject: [PATCH 10/10] Avoid destroying SVG fonts when optimizing images --- lib/tools/weightChecker/imageOptimizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tools/weightChecker/imageOptimizer.js b/lib/tools/weightChecker/imageOptimizer.js index fcff06a..1625200 100644 --- a/lib/tools/weightChecker/imageOptimizer.js +++ b/lib/tools/weightChecker/imageOptimizer.js @@ -200,7 +200,7 @@ var ImageOptimizer = function() { } else if (type === 'png' && !lossy) { engine = Imagemin.optipng({optimizationLevel: OPTIPNG_COMPRESSION_LEVEL}); } else if (type === 'svg' && !lossy) { - engine = Imagemin.svgo(); + engine = Imagemin.svgo({ plugins: [ { removeUselessDefs: false } ] }); } else { deferred.reject('No optimization engine found for imagemin'); }