-
Notifications
You must be signed in to change notification settings - Fork 26
/
package.json
50 lines (50 loc) · 2.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"private": true,
"workspaces": [
"material-symbols",
"font",
"font/font",
"font/100",
"font/200",
"font/300",
"font/400",
"font/500",
"font/600",
"font/700",
"svg",
"svg/100",
"svg/200",
"svg/300",
"svg/400",
"svg/500",
"svg/600",
"svg/700",
"metadata"
],
"scripts": {
"init": "npm run init -w font -w svg --if-present",
"check": "npm run download:metadata -- --status --dry-run",
"update": "npm run clean && npm run download && npm run generate && npm run build",
"clean": "npm run clean:svg",
"clean:svg": "set -eu; for w in 100 200 300 400 500 600 700; do npx @material-design-icons/scripts delete svg --symbols --in svg/$w; done",
"download": "npm run download:font && npm run download:fonts && npm run download:svg && npm run download:metadata && npm run copy:metadata",
"download:font": "npx @material-design-icons/scripts download font --symbols --evergreen --to material-symbols",
"download:fonts": "set -eu; for w in 100 200 300 400 500 600 700; do npx @material-design-icons/scripts download font --symbols --evergreen --weight $w --grade 0 --size 48 --to font/$w; done",
"download:svg": "set -eu; for w in 100 200 300 400 500 600 700; do npx @material-design-icons/scripts download svg --symbols --weight $w --to svg/$w; done",
"download:metadata": "npx @material-design-icons/scripts download metadata --symbols",
"copy:metadata": "cp _data/versions.json metadata",
"generate": "npm run generate:types && npm run copy:types",
"generate:types": "npx @material-design-icons/scripts generate types --symbols --in material-symbols",
"copy:types": "set -eu; for w in 100 200 300 400 500 600 700; do cp material-symbols/index.d.ts font/$w; done",
"build": "npm run build:font && npm run build:svg",
"build:font": "npm run build -w material-symbols -w font --if-present",
"build:svg": "npm run build -w svg --if-present",
"version": "npm version -w material-symbols -w font/100 -w font/200 -w font/300 -w font/400 -w font/500 -w font/600 -w font/700 -w svg/100 -w svg/200 -w svg/300 -w svg/400 -w svg/500 -w svg/600 -w svg/700 -w metadata",
"postversion": "npm install && VERSION=$(node -p \"require('./material-symbols/package.json').version\") npm run git-commit-tag",
"git-commit-tag": "git commit -am $VERSION && git tag -a v$VERSION -m $VERSION",
"publish": "npm publish -w material-symbols -w font/100 -w font/200 -w font/300 -w font/400 -w font/500 -w font/600 -w font/700 -w svg/100 -w svg/200 -w svg/300 -w svg/400 -w svg/500 -w svg/600 -w svg/700 -w metadata"
},
"devDependencies": {
"@material-design-icons/scripts": "0.5.2"
}
}