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)