diff --git a/README.md b/README.md index cef42eee2..8f18306f1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

- A set of over 2600 free MIT-licensed high-quality SVG icons for you to use in your web projects. Each icon is designed on a 24x24 grid and a 2px stroke. + A set of 2663 free MIT-licensed high-quality SVG icons for you to use in your web projects. Each icon is designed on a 24x24 grid and a 2px stroke.

diff --git a/gulpfile.js b/gulpfile.js index 45cda392e..ad128a06e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -789,6 +789,17 @@ gulp.task('import-tags', (cb) => { cb() }) +gulp.task('update-readme', (cb) => { + let fileData = fs.readFileSync('README.md').toString(), + count = glob.sync('./icons/*.svg').length + + fileData = fileData.replace(/(.*?)/, `${count}`); + + fs.writeFileSync('README.md', fileData) + + cb() +}) + gulp.task('build-react', (cb) => { cp.exec('npm run build-react', () => { cb() @@ -797,7 +808,7 @@ gulp.task('build-react', (cb) => { gulp.task('build', gulp.series('optimize', 'update-icons-version', 'update-icons-unicode', 'build-jekyll', 'build-copy', 'icons-sprite', 'svg-to-react', 'build-react', - 'icons-preview', 'svg-to-png', 'build-iconfont', 'changelog-image', 'build-zip')) + 'icons-preview', 'svg-to-png', 'build-iconfont', 'changelog-image', 'build-zip', 'update-readme')) const optimizeSVG = (data) => { return optimize(data, {