pxt-ev3/svgicons/generateIcons.js

40 lines
1017 B
JavaScript
Raw Normal View History

2017-12-18 22:04:17 +01:00
const webfontsGenerator = require('webfonts-generator');
webfontsGenerator({
files: [
2017-12-21 20:00:54 +01:00
"./ultrasonic.svg",
2017-12-18 22:04:17 +01:00
"./color.svg",
"./touch.svg",
2017-12-21 20:00:54 +01:00
"./gyro.svg",
"./categories/addpackage.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",
"./categories/console.svg",
2018-01-04 18:52:12 +01:00
"./categories/advancedcollapsed.svg",
"./categories/advancedexpanded.svg",
2017-12-21 20:00:54 +01:00
"./icons/cancel.svg",
"./icons/check.svg",
"./icons/download.svg",
2018-01-03 02:30:19 +01:00
"./icons/save.svg",
"./icons/blocks.svg",
"./categories/search.svg"
2017-12-18 22:04:17 +01:00
],
dest: '../docs/static/fonts/icons/',
round: 10
}, function(error) {
if (error) {
console.log('Fail!', error);
} else {
console.log('Done!');
}
})