Created
November 13, 2019 09:55
-
-
Save knjname/2047d93253185bccde45b104a79a86ee to your computer and use it in GitHub Desktop.
generate-google-material-icon-names-for-ts.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dest=src/components/atoms/icon/IconTypes.ts | |
cat > $dest <<EOF | |
export type IconTypes = | |
EOF | |
curl 'https://fonts.google.com/metadata/icons' \ | |
| tail -n +2 \ | |
| jq '.icons[].name' \ | |
| perl -e 'print " | " . join " | ", <>' \ | |
>> $dest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment