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