Skip to content

Commit

Permalink
Remove pascal-case and use the names from mdi instead.
Browse files Browse the repository at this point in the history
Fixes #39
  • Loading branch information
leMaik committed Apr 23, 2021
1 parent 3ec3671 commit a824f1d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
5 changes: 2 additions & 3 deletions generate-module.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node
const fse = require('fs-extra')
const path = require('path')
const pascalCase = require('pascal-case')
const babel = require('babel-core')
const pick = require('lodash.pick')
const filenameMap = require('./filenameMap')
Expand Down Expand Up @@ -29,7 +28,7 @@ function checkNameClashes (icons) {
const icons = Object.entries(require('@mdi/js'))
.filter(([name]) => name.indexOf('mdi') === 0)
.map(([name, path]) => ({
name: pascalCase(name.substr(3)), // remove mdi prefix
name: name.substr(3), // remove mdi prefix
filename: filenameMap[name.substr(3)],
svgPath: path
}))
Expand All @@ -38,7 +37,7 @@ function checkNameClashes (icons) {
const lightIcons = Object.entries(require('@mdi/light-js'))
.filter(([name]) => name.indexOf('mdil') === 0)
.map(([name, path]) => ({
name: pascalCase(name.substr(4)), // remove mdil prefix
name: name.substr(4), // remove mdil prefix
svgPath: path
}))
checkNameClashes(lightIcons)
Expand Down
38 changes: 0 additions & 38 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"babel-preset-stage-0": "^6.5.0",
"fs-extra": "^4.0.1",
"lodash.pick": "^4.4.0",
"pascal-case": "^1.1.2",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-test-renderer": "^16.3.2",
Expand Down

0 comments on commit a824f1d

Please sign in to comment.