2023-04-19 15:23:13 +02:00
|
|
|
import { getIconsData, getIconSlug, slugToVariableName } from '../sdk.mjs';
|
2022-11-28 03:32:57 -08:00
|
|
|
import * as simpleIcons from '../index.mjs';
|
|
|
|
import { testIcon } from './test-icon.js';
|
2021-11-06 16:03:37 +01:00
|
|
|
|
2021-12-25 06:22:56 -08:00
|
|
|
(async () => {
|
|
|
|
const icons = await getIconsData();
|
2019-07-14 20:05:38 +01:00
|
|
|
|
2022-11-28 03:32:57 -08:00
|
|
|
icons.map((icon) => {
|
2021-12-25 06:22:56 -08:00
|
|
|
const slug = getIconSlug(icon);
|
2022-11-28 03:32:57 -08:00
|
|
|
const variableName = slugToVariableName(slug);
|
|
|
|
const subject = simpleIcons[variableName];
|
2021-12-25 06:22:56 -08:00
|
|
|
|
2022-11-28 03:32:57 -08:00
|
|
|
testIcon(icon, subject, slug);
|
2021-05-28 12:16:50 +02:00
|
|
|
});
|
2021-12-25 06:22:56 -08:00
|
|
|
})();
|