forked from mozilla/twemoji-colr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
29 lines (25 loc) · 813 Bytes
/
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
/*jshint node:true*/
module.exports = function (grunt) {
'use strict';
require('load-grunt-tasks')(grunt);
const packageJSON = grunt.file.readJSON('package.json');
grunt.initConfig({
webfont: {
Twemoji: {
src: 'build/glyphs/*.svg',
dest: 'build/raw-font',
options: {
font: 'Twemoji Mozilla',
engine: 'fontforge',
types: 'ttf',
autoHint: false,
execMaxBuffer: 1024 * 1000,
version: packageJSON.version,
codepointsFile: 'build/codepoints.js'
}
},
},
});
grunt.loadNpmTasks('grunt-webfonts');
grunt.registerTask('default', ['webfont']);
};