/* eslint-disable no-console */
"use strict";

var fs = require("fs-extra");

var srcDir = "./node_modules/font-awesome/fonts/";
var destDir = "./client/fonts/";
var fonts = [
	"fontawesome-webfont.woff",
	"fontawesome-webfont.woff2"
];

fs.ensureDir(destDir, function(dirErr) {
	if (dirErr) {
		console.error(dirErr);
	}

	fonts.forEach(function(font) {
		fs.copy(srcDir + font, destDir + font, function(err) {
			if (err) {
				console.error(err);
			} else {
				console.log(font + " successfully installed.");
			}
		});
	});
});

"use strict";

const colors = require("colors/safe");
const fs = require("fs-extra");
const log = require("../src/log");

const srcDir = "./node_modules/font-awesome/fonts/";
const destDir = "./client/fonts/";
const fonts = [
	"fontawesome-webfont.woff",
	"fontawesome-webfont.woff2"
];

fs.ensureDir(destDir, (dirErr) => {
	if (dirErr) {
		log.error(dirErr);
	}

	fonts.forEach((font) => {
		fs.copy(srcDir + font, destDir + font, (err) => {
			if (err) {
				log.error(err);
			} else {
				log.info(colors.bold(font) + " successfully installed.");
			}
		});
	});
});

Switch Font Awesome build script to use our logger
Switch Font Awesome build script to use our logger
