var fs = require('fs'),
    path = require('path');

var fontDir = path.resolve(__dirname, '../../clientside/src/font_flatten');
var iconFonts = ['fontawesome-webfont', 'ionicons'];
module.exports = fs.readdirSync(fontDir)
    .filter(function (filename) {
        for (var i = 0; i < iconFonts.length; i++) {
            var isIconFont = !!filename.match(iconFonts[i]);
            if (isIconFont) return false;
        }
        return true;
    })
    .map(function (filename) {
        return {
            name: path.basename(filename, path.extname(filename)),
            filename: path.resolve(fontDir, filename)
        }
    });