Skip to content

Commit

Permalink
Automatically generate MaterialIcon type from version metadata (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-w-gries authored Dec 3, 2022
1 parent 23bfc79 commit 81a695e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
"description": "Latest icon fonts and CSS for self-hosting material design icons.",
"browser": "iconfont/material-icons.css",
"sass": "iconfont/material-icons.scss",
"types": "index.d.ts",
"files": [
"index.d.ts",
"_data/versions.json",
"css/*.{css,scss}",
"iconfont/*.{css,scss,woff,woff2}"
],
"scripts": {
"check": "npm run download:metadata -- --status --dry-run",
"update": "npm run download && npm run build",
"update": "npm run download && npm run generate && npm run build",
"download": "npm run download:font && npm run download:metadata",
"download:font": "npx @material-design-icons/scripts download font --to iconfont",
"download:metadata": "npx @material-design-icons/scripts download metadata",
"generate": "npm run generate:types",
"generate:types": "npx @material-design-icons/scripts generate types --in ./",
"build": "npm run build:codepoints && npm run build:css && npm run build:css:min",
"build:codepoints": "node scripts/codepoints.js",
"build:css": "sass --no-source-map --no-error-css css iconfont",
Expand Down

0 comments on commit 81a695e

Please sign in to comment.