-
Notifications
You must be signed in to change notification settings - Fork 28
/
README.lmd
108 lines (61 loc) · 1.28 KB
/
README.lmd
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# gulp-google-webfonts
A gulp plugin to download Google webfonts and generate a stylesheet for them.
Note: The examples seem to have issues with Gulp v4.
# Example #1
: example1/
$ rm -rf out/
## Input
### fonts.list
< fonts.list
### gulpfile.js
< gulpfile.js
## Output
$ gulp fonts
gulp fonts
### out/fonts/
| ls -1 out/fonts/
### out/fonts/fonts.css
< out/fonts/fonts.css
# Options
The googleWebFonts object can take the following options:
* fontsDir - The path the output fonts should be under. (Note: the path is relative to `gulp.dest`)
* cssDir - The path the output css should be under. (Note: the path is relative to `gulp.dest`)
* cssFilename - The filename of the output css file.
# Example #2
: example2/
## Input (other inputs same as example #1)
### gulpfile.js
< gulpfile.js
## Output
$ gulp fonts
gulp fonts
### out/
: example2/out/
| find -type f
# Example #3
: example3/
## Input (other inputs same as example #1)
### gulpfile.js
< gulpfile.js
## Output
$ gulp fonts
gulp fonts
### out/
: example3/out/
| find -type f
# Example #4
: example4/
Command-line usage
## Input
### Makefile
< makefile
### fonts.list
< fonts.list
## Output
$ make clean && make
make
### out/
: example4/out/
| find -type f
### out/css/fonts.css
< css/fonts.css