forked from mderrick/react-html5video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
40 lines (39 loc) · 1.6 KB
/
Gruntfile.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
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-fontello-react');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.initConfig({
'fontello-react': {
video: {
options: {
fontName: 'video-fontello',
svgPath: './src/assets/font/video-fontello.svg',
woffPath: './src/assets/font/video-fontello.woff',
eotPath: './src/assets/font/video-fontello.eot',
ttfPath: './src/assets/font/video-fontello.ttf',
jsTplPath: './src/fontello-react-component.tpl',
cssTplPath: './src/fontello-react-css.tpl',
jsOutputPath: './src/components/icon/Icon.js',
cssOutputPath: './src/components/icon/icon.css'
}
},
demo: {
options: {
svgPath: './demo/src/assets/font/fontello.svg',
woffPath: './demo/src/assets/font/fontello.woff',
eotPath: './demo/src/assets/font/fontello.eot',
ttfPath: './demo/src/assets/font/fontello.ttf',
jsTplPath: './demo/src/fontello-react-component.tpl',
cssTplPath: './demo/src/fontello-react-css.tpl',
jsOutputPath: './demo/src/components/icon/Icon.js',
cssOutputPath: './demo/src/components/icon/icon.css'
}
}
},
'gh-pages': {
options: {
base: 'demo'
},
src: ['**']
}
});
}