-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.js
63 lines (62 loc) · 1.82 KB
/
index.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
const svgtofont = require("svgtofont");
const path = require("path");
const pkg = require('../package.json')
svgtofont({
src: path.resolve(process.cwd(), "icon"), // svg path
dist: path.resolve(process.cwd(), "fonts"), // output path
fontName: "w-iconfont", // font name
css: true, // Create CSS files.
startNumber: 20000, // unicode start number
nodemo: true, // no demo html files
svgicons2svgfont: {
fontHeight: 1000,
normalize: true
},
website: {
title: "uiw icons",
// Must be a .svg format image.
favicon: path.resolve(process.cwd(), "assets", "favicon.png"),
logo: path.resolve(process.cwd(), "icon", "uiw.svg"),
version: pkg.version,
meta: {
description: "The premium icon font for @uiw-react Component Library.",
keywords:
"uiw, uiw-react, react.js, react, component, svg, icon, components, ui, framework, toolkit,icon,file-icons,TTF,EOT,WOFF,WOFF2,SVG"
},
description: `
The premium icon font for <a href="https://github.com/uiw-react/uiw">@uiw-react</a> Component Library.
`,
links: [
{
title: "Cheatsheet",
url: "https://github.com/uiw-react/icons"
},
{
title: "GitHub",
url: "https://github.com/uiw-react/icons"
},
{
title: "Feedback",
url: "https://github.com/uiw-react/icons/issues"
},
{
title: "Font Class Demo",
url: "index.html"
},
{
title: "Symbol Demo",
url: "symbol.html"
},
{
title: "Unicode Demo",
url: "unicode.html"
}
],
footerInfo: `
Designed by <a href="https://github.com/liwen0526">@liwen0526</a>.
Licensed under MIT. (Yes it's free and <a href="https://github.com/uiw-react/icons">open-sourced</a>)
`
}
}).then(() => {
console.log("done!");
});