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/.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: diff --git a/bower.json b/bower.json deleted file mode 100644 index 12cd42e..0000000 --- a/bower.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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-local-storage": "0.2.2", - "angular-chart.js": "0.7.1", - "Chart.js": "~1.0.2" - } -} 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 { 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/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!
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/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'); } diff --git a/package.json b/package.json index 3682c0d..b02aedb 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,13 @@ { "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", + "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" @@ -12,53 +17,69 @@ }, "main": "./lib/index.js", "dependencies": { - "async": "1.2.1", - "body-parser": "1.13.1", - "clean-css": "3.3.0", - "compression": "1.5.0", + "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", "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" - } + }, + "keywords": [ + "performance", + "metrics", + "webperf", + "pagespeed", + "budget", + "phantomas" + ] } 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