fork
Configure Feed
Select the types of activity you want to include in your feed.
Beautiful
fork
Configure Feed
Select the types of activity you want to include in your feed.
1import path from 'path';
2import { writeFile, getCurrentDirPath, readAllMetadata } from '../tools/build-helpers/helpers.mjs';
3
4const currentDir = getCurrentDirPath(import.meta.url);
5const ICONS_DIR = path.resolve(currentDir, '../icons');
6const icons = readAllMetadata(ICONS_DIR);
7
8const tags = Object.keys(icons)
9 .sort()
10 .reduce((acc, iconName) => {
11 acc[iconName] = icons[iconName].tags;
12 return acc;
13 }, {});
14
15const tagsContent = JSON.stringify(tags, null, 2);
16
17writeFile(tagsContent, 'tags.json', path.resolve(process.cwd()));