Skip to content

Commit

Permalink
remove Google MDI dependence
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyleung committed Nov 18, 2015
1 parent ef6d7a0 commit d761f40
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 15,871 deletions.
8 changes: 4 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var path = require('path');
var _ = require('underscore');
var _ = require('lodash');

module.exports = function(grunt) {
var materialPath = './node_modules/material-design-icons/',
/*var materialPath = './node_modules/material-design-icons/',
indexFile = grunt.file.read(materialPath + 'index.html'),
pattern = /<div><img\ssrc='(.*)'><br>(.*)<\/div>/ig,
result = indexFile.match(pattern),
Expand Down Expand Up @@ -30,7 +30,7 @@ module.exports = function(grunt) {
options: mdiConfig
}
}
});
});*/

grunt.registerTask('add_patch', function() {
var patchPath = './patch/',
Expand Down Expand Up @@ -82,5 +82,5 @@ module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-json-generator');

grunt.registerTask('default', ['json_generator', 'add_patch', 'generate_font']);
grunt.registerTask('default', ['add_patch', 'generate_font']);
};
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BizIcon - A generator of webfonts

[![NPM Stat][npm-stat-image]][npm-stat-url]

A generator of webfonts from SVG icons based [webfonts-generator](https://github.com/sunflowerdeath/webfonts-generator). The icons are from Google's [Material Design Icons](https://github.com/google/material-design-icons).
A generator of webfonts from SVG icons based [webfonts-generator](https://github.com/sunflowerdeath/webfonts-generator).

Features:
--------
Expand Down Expand Up @@ -37,11 +37,11 @@ To add or remove icons, just edit the `icons.json` file:
"fontDest": "font/", // Path for generated font files
"cssDest": "css/biz-icon.css", // Path for generated css file
"cssFontsPath": "../font/" // Fonts path used in css file
"root": "./node_modules/material-design-icons/", // SVG files root directory
"root": "svg/", // SVG files root directory
"icons": [
{
"name": "ic_3d_rotation", // Suffix name of css class
"svg": "action/svg/design/ic_3d_rotation_24px.svg" // SVG files path relative to root
"name": "search", // Suffix name of css class
"svg": "search.svg" // SVG files path relative to root
},
...
]
Expand Down
5 changes: 2 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
],
"homepage": "https://github.com/bizdevfe/biz-icon",
"moduleType": ["node"],
"devDependencies": {
"dependencies": {
"grunt": "^0.4.5",
"grunt-json-generator": "^0.1.0",
"material-design-icons": "^2.0.0",
"underscore": "^1.8.3",
"webfonts-generator": "^0.3.1"
"lodash": "^3.10.1"
},
"ignore": [
"**/.*",
Expand Down
Loading

0 comments on commit d761f40

Please sign in to comment.