From acd82d64f64d6eb059efa289b409c3250fc973b7 Mon Sep 17 00:00:00 2001 From: codecalm Date: Sun, 10 Mar 2024 21:19:24 +0100 Subject: [PATCH] readme fix --- .build/update-readme.mjs | 8 +++++++- README.md | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.build/update-readme.mjs b/.build/update-readme.mjs index 81d7c5870..1fbd1e194 100644 --- a/.build/update-readme.mjs +++ b/.build/update-readme.mjs @@ -3,9 +3,13 @@ import { glob } from 'glob' import { resolve } from 'path' import { HOME_DIR, ICONS_SRC_DIR } from './helpers.mjs' -let count = glob.sync(resolve(ICONS_SRC_DIR, '**/*.svg')).length +let count = glob.sync(resolve(ICONS_SRC_DIR, '**/*.svg')).length, + outlineCount = glob.sync(resolve(ICONS_SRC_DIR, '**/outline/*.svg')).length, + filledCount = glob.sync(resolve(ICONS_SRC_DIR, '**/filled/*.svg')).length console.log('count', count); +console.log('filledCount', filledCount); +console.log('outlineCount', outlineCount); const readmes = glob.sync(resolve(HOME_DIR, '{.,packages/*}/README.md')) @@ -13,6 +17,8 @@ readmes.forEach(readme => { let fileData = readFileSync(readme).toString() fileData = fileData.replace(/(.*?)/, `${count}`) + .replace(/(.*?)/, `${outlineCount}`) + .replace(/(.*?)/, `${filledCount}`) writeFileSync(readme, fileData) }) diff --git a/README.md b/README.md index 4aa037a9a..46ffa8488 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ ## Preview -### Outline version +### Outline version (4547 icons)

@@ -31,7 +31,7 @@

-### Filled version +### Filled version (653 icons)