Skip to content

Commit

Permalink
Update material design icons to v2.2.43 and the new package.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Mar 24, 2018
1 parent dc543bc commit 66c130e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Material Design Icons for Material-UI
[![npm](https://img.shields.io/npm/v/mdi-material-ui.svg)](https://www.npmjs.com/package/mdi-material-ui)
[![Material Design Icons version](https://img.shields.io/badge/mdi-v2.1.99-blue.svg)](https://github.com/Templarian/MaterialDesign-SVG/)
[![Material Design Icons version](https://img.shields.io/badge/mdi-v2.2.43-blue.svg)](https://github.com/Templarian/MaterialDesign-SVG/)

This module provides [Material-UI][material-ui] `<SvgIcon />` components for all
[Material Design Icons][md-icons]. This is pretty handy if you use React and Material-UI
Expand Down
4 changes: 2 additions & 2 deletions generate-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function transformForReact (element) {
element.childNodes().filter((node) => node.name() !== 'text').forEach(transformForReact)
}

const mdiSvgPath = path.join(path.dirname(require.resolve('mdi-svg/meta.json')), 'svg')
const icons = require('mdi-svg/meta.json')
const mdiSvgPath = path.join(path.dirname(require.resolve('@mdi/svg/meta.json')), 'svg')
const icons = require('@mdi/svg/meta.json')
.map((icon) => {
const xml = libxmljs.parseXml(fse.readFileSync(path.join(mdiSvgPath, `${icon.name}.svg`), 'utf8'))
const svg = xml.root().childNodes().map((child) => {
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"homepage": "https://github.com/TeamWertarbyte/mdi-material-ui#readme",
"devDependencies": {
"@kadira/storybook": "^2.21.0",
"@mdi/svg": "^2.2.43",
"babel-core": "^6.8.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
"babel-preset-es2015": "^6.6.0",
Expand All @@ -36,7 +37,6 @@
"libxmljs": "^0.18.4",
"lodash.pick": "^4.4.0",
"material-ui": "^0.17.4",
"mdi-svg": "^2.1.99",
"pascal-case": "^1.1.2",
"postcss": "^5.2.6",
"postcss-url": "^5.1.2",
Expand Down

0 comments on commit 66c130e

Please sign in to comment.