Skip to content

Commit

Permalink
refactor(shell): refactor the generate-iconfont script, update docs (#9)
Browse files Browse the repository at this point in the history
- [x] wrap cleanup, download, and create dist functions in the generate function;
- [x] fix a typo in the security.md file;
  • Loading branch information
rfprod authored Mar 26, 2022
1 parent f5f7572 commit 71e2de6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Secutiry
# Security

Always inspect shell scripts before executing it on your machine.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "material-design-icon-fonts-self-hosted-web",
"version": "1.0.5",
"version": "1.0.6",
"description": "Self-hosted version generator of Google Material Design icon fonts for web apps.",
"keywords": [
"icons",
Expand Down
13 changes: 10 additions & 3 deletions src/generate-iconfont.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ createFontsDist() {
cp ./src/*.ttf ./iconfont
}

cleanupSourceAndDistFonts
downloadSourceFonts
createFontsDist
##
# Generates the iconfont.
##
generate() {
cleanupSourceAndDistFonts
downloadSourceFonts
createFontsDist
}

generate

0 comments on commit 71e2de6

Please sign in to comment.