Skip to content

Commit

Permalink
Add a warning if the number of svg files doesn't match the number of …
Browse files Browse the repository at this point in the history
…icons specified by mdi-svg.
  • Loading branch information
leMaik committed Dec 10, 2017
1 parent 4053eed commit 47905c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generate-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ const icons = require('mdi-svg/meta.json')
svg
}
})
const iconFiles = fse.readdirSync(mdiSvgPath)
if (iconFiles.length !== icons.length) {
console.warn(`${icons.length} icons specified in meta.json but ${iconFiles.length} svg files found`)
}

fse.removeSync(path.join(__dirname, 'package'))
fse.mkdirpSync(path.join(__dirname, 'package'))
Expand Down

0 comments on commit 47905c0

Please sign in to comment.