mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02:00
a930dc57ec
* convert scripts to esm * fix tests * fix tests * fix lints * syncFs to fsSync * named export for fs Co-authored-by: LitoMore <LitoMore@users.noreply.github.com> * fsSync to { promises as fs } * convert update-svgs-count to esm * rename data to icons * fix build script * switch svglintrc file to mjs * use node: protocol * pluralize getIcons Co-authored-by: LitoMore <LitoMore@users.noreply.github.com>
23 lines
480 B
JavaScript
23 lines
480 B
JavaScript
import {
|
|
getIconsData,
|
|
getIconSlug,
|
|
slugToVariableName,
|
|
} from '../scripts/utils.js';
|
|
import * as simpleIcons from '../icons.mjs';
|
|
import { testIcon } from './test-icon.js';
|
|
import { exec } from 'uvu';
|
|
|
|
(async () => {
|
|
const icons = await getIconsData();
|
|
|
|
icons.map((icon) => {
|
|
const slug = getIconSlug(icon);
|
|
const variableName = slugToVariableName(slug);
|
|
const subject = simpleIcons[variableName];
|
|
|
|
testIcon(icon, subject, slug);
|
|
});
|
|
|
|
exec();
|
|
})();
|