/**
 * nb-icon
 *
 * @author Hein Bekker <hein@netbek.co.za>
 * @copyright (c) 2015 Hein Bekker
 * @license http://www.gnu.org/licenses/agpl-3.0.txt AGPLv3
 */

module.exports = function (grunt) {

	var pkg = grunt.file.readJSON('package.json');

	grunt.initConfig({
		pkg: pkg,
		meta: {
			banner: ['/*',
				' * <%= pkg.name %>',
				' * <%= pkg.homepage %>',
				' *',
				' * @author <%= pkg.author.name %> <<%= pkg.author.email %>>',
				' * @copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>',
				' * @license <%= pkg.license.url %> <%= pkg.license.type %>',
				' */\n'].join('\n')
		},
		jshint: {
			options: {
				jshintrc: true
			},
			all: ['Gruntfile.js', 'tasks/**/*.js', 'tests/tests/*.js', 'src/**/*.js', 'demo/**/*.js']
		},
		clean: {
			init: ['build', 'dist', 'tmp'],
			exit: ['build', 'tmp']
		},
		html2js: {
			dist: {
				options: {
					module: 'nb.icon.templates',
				},
				files: [{
						src: ['src/templates/*.html'],
						dest: 'build/js/<%= pkg.name %>-templates.js',
					}]
			}
		},
		concat: {
			distCss: {
				src: ['src/css/**/*.css'],
				dest: 'dist/css/<%= pkg.name %>.css'
			},
			distJs: {
				src: ['src/js/**/*.js', '!src/js/<%= pkg.name %>-templates.js', 'build/js/<%= pkg.name %>-templates.js'],
				dest: 'dist/js/<%= pkg.name %>.js'
			}
		},
		cssmin: {
			options: {
				banner: '<%= meta.banner %>'
			},
			dist: {
				files: [{
						src: ['src/css/**/*.css'],
						dest: 'dist/css/<%= pkg.name %>.min.css'
					}]
			}
		},
		uglify: {
			options: {
				banner: '<%= meta.banner %>'
			},
			dist: {
				src: ['dist/js/<%= pkg.name %>.js'],
				dest: 'dist/js/<%= pkg.name %>.min.js'
			}
		},
		svgstore: {
			options: {},
			src: {
				files: {
					'demo/svg/icon.svg': 'demo/svg/icon/*.svg'
				}
			}
		},
		svg2png_colorfy: {
			dist: {
				options: {
					colors: {
						black: '#000',
						blue: '#0000FF'
					}
				},
				files: [{cwd: 'demo/svg/icon/', src: ['*.svg'], dest: 'demo/img/'}]
			}
		}
	});

	grunt.loadNpmTasks('grunt-contrib-clean');
	grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-cssmin');
	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-html2js');
	grunt.loadNpmTasks('grunt-svg2png-colorfy');
	grunt.loadNpmTasks('grunt-svgstore');

	grunt.registerTask('default', [
		'jshint',
		'clean:init',
		'html2js',
		'concat',
		'cssmin',
		'uglify',
		'svgstore',
		'svg2png_colorfy',
		'clean:exit'
	]);

};
@@ -1701,16 +1701,83 @@
 tions: %7B
+%0A%09%09%09%09includeTitleElement: false,%0A%09%09%09%09preserveDescElement: false%0A%09%09%09
 %7D,%0A%09%09%09sr

Remove title and description from svg