private static Iconset?ProcessIconset(Iconset iconset) { Console.WriteLine($"Processing {iconset.Name}"); var path = $"{iconset.Directory}"; if (!Directory.Exists(path)) { Console.WriteLine($"{iconset.Name} - {path} not found"); return(iconset); } var files = Directory.GetFiles(path, "*.svg"); var icons = iconset.Multipath ? files.Select(GetMultiPathSvgIcon) : files.Select(GetSinglePathSvgIcon); iconset.Icons = icons.ToList().FilterNulls(); return(iconset); }
public IconConfig() { Iconsets = new Iconset[0]; OutputPath = "js"; }