pxt-ev3/svgicons/generateIcons.js
Caitlin Hennessy 5e0e35b4bd Initial work
2017-12-21 11:00:54 -08:00

37 lines
928 B
JavaScript

const webfontsGenerator = require('webfonts-generator');
webfontsGenerator({
files: [
"./ultrasonic.svg",
"./color.svg",
"./touch.svg",
"./gyro.svg",
"./categories/addpackage.svg",
"./categories/advancedcollapsed.svg",
"./categories/advancedexpanded.svg",
"./categories/brick.svg",
"./categories/controls.svg",
"./categories/functions.svg",
"./categories/list.svg",
"./categories/logic.svg",
"./categories/loops.svg",
"./categories/math.svg",
"./categories/motors.svg",
"./categories/music.svg",
"./categories/sensors.svg",
"./categories/text.svg",
"./categories/variables.svg",
"./icons/cancel.svg",
"./icons/check.svg",
"./icons/download.svg",
"./icons/save.svg"
],
dest: '../docs/static/fonts/icons/',
round: 10
}, function(error) {
if (error) {
console.log('Fail!', error);
} else {
console.log('Done!');
}
})