From 24d9690b094883349aa595629381868ae020cdb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 4 Sep 2014 16:15:24 +0200 Subject: [PATCH] New icons from IcoMoon --- Gruntfile.js | 33 ++++++ README.md | 2 + app/node_views/index.html | 3 +- app/node_views/results.html | 18 ++- app/public/fonts/icons.woff | Bin 0 -> 2092 bytes app/public/fonts/svg-icons/arrow-left3.svg | 1 + app/public/fonts/svg-icons/drawer3.svg | 1 + app/public/fonts/svg-icons/lab.svg | 1 + app/public/fonts/svg-icons/list.svg | 1 + app/public/fonts/svg-icons/question.svg | 1 + app/public/fonts/svg-icons/tree.svg | 1 + app/public/fonts/svg-icons/warning.svg | 1 + app/public/styles/index.css | 4 + app/public/styles/less/icons.less | 56 +++++++++ app/public/styles/less/main.less | 49 ++++++++ app/public/styles/main.css | 131 ++++++++++++++++++--- app/public/styles/results.css | 44 ++++--- package.json | 5 +- 18 files changed, 299 insertions(+), 53 deletions(-) create mode 100644 app/public/fonts/icons.woff create mode 100755 app/public/fonts/svg-icons/arrow-left3.svg create mode 100755 app/public/fonts/svg-icons/drawer3.svg create mode 100755 app/public/fonts/svg-icons/lab.svg create mode 100755 app/public/fonts/svg-icons/list.svg create mode 100755 app/public/fonts/svg-icons/question.svg create mode 100755 app/public/fonts/svg-icons/tree.svg create mode 100755 app/public/fonts/svg-icons/warning.svg create mode 100644 app/public/styles/less/icons.less create mode 100644 app/public/styles/less/main.less diff --git a/Gruntfile.js b/Gruntfile.js index 3afa0f6..6a271d1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,6 +4,30 @@ module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), + font: { + icons: { + src: ['app/public/fonts/svg-icons/*.svg'], + destCss: 'app/public/styles/less/icons.less', + destFonts: 'app/public/fonts/icons.woff', + + // Optional: Custom routing of font filepaths for CSS + cssRouter: function (fontpath) { + var pathArray = fontpath.split('/'); + var fileName = pathArray[pathArray.length - 1]; + return '/public/fonts/' + fileName; + } + } + }, + less: { + icons: { + files: { + 'app/public/styles/main.css': [ + //'app/public/styles/less/icons.less', + 'app/public/styles/less/main.less' + ] + } + } + }, jshint: { all: [ '*.js', @@ -14,6 +38,9 @@ module.exports = function(grunt) { ] }, clean: { + icons: { + src: ['tmp'] + }, coverage: { src: ['coverage/'] } @@ -53,6 +80,12 @@ module.exports = function(grunt) { require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); + grunt.registerTask('build', [ + 'jshint', + 'font:icons', + 'less:icons', + 'clean:icons' + ]); grunt.registerTask('hint', [ 'jshint' diff --git a/README.md b/README.md index dae6a51..053b8cf 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ vagrant up ## License Please read the [license](LICENSE). +Icons are the property of [IcoMoon.io](https://icomoon.io/) + ## Author Gaël Métais. I'm a webperf freelance based in Paris. If you understand french, you can visit [my website](http://www.gaelmetais.com). \ No newline at end of file diff --git a/app/node_views/index.html b/app/node_views/index.html index 4ff5f45..011aa3a 100644 --- a/app/node_views/index.html +++ b/app/node_views/index.html @@ -6,12 +6,13 @@ -

Yellow Lab Tools

+

Yellow Lab Tools

Free online test to help speeding up heavily javascripted pages

+

(This is an early BETA, so please don't spread on the web)