0.3.1 • Published 8 years ago

grunt-flaticon v0.3.1

Weekly downloads
21
License
MIT
Repository
github
Last release
8 years ago

grunt-flaticon

Grunt task to automatically download flaticon icons collection from config stored in JSON file

Getting Started

This plugin requires Grunt.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

Options

  • config - path to flaticon.json configuration file
  • fonts - path to directory where fonts will be downloaded
  • styles - css or less file where icons classes will be stored
  • cache_dir - directory for caching zip
  • use_less - disable or enable generating style in less

Example

Example configuration

flaticon: {
	dist: {
		options: {
			config: 'flaticon.json',
			fonts: 'web/fonts/',
			styles: 'web/css/flaticon.less',
			cache_dir: 'app/cache/',
			use_less: true
		}
	}
}

Example flaticon.json

{
	"css_prefix_text": "flaticon-",
	"icons": {
	        {
	            "id": "128",
	            "team": 1,
	            "color": "#000000",
	            "name": "gear"
	        },
	        {
	            "id": "1981",
	            "team": 1,
	            "color": "#000000",
	            "name": "close"
	        }
	}
}
0.3.1

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago