Skip to content

Commit

Permalink
refactor: 💡 add component generation from svg
Browse files Browse the repository at this point in the history
- add script to optimize svg in folder
- add script to generate components from svg
- update project components
- add script to generate icons size-limit
  • Loading branch information
Pavel Bely authored and Drapegnik committed Jan 13, 2022
1 parent 7cbb8ad commit 66267ab
Show file tree
Hide file tree
Showing 449 changed files with 5,238 additions and 3,226 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
# npm
**/node_modules/*
package.json

bin
39 changes: 3 additions & 36 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const iconsSizeLimit = require('./.size-limit.icons.cjs');

module.exports = [
{
name: '[cjs] bundle',
Expand All @@ -13,39 +15,4 @@ module.exports = [
webpack: false,
limit: '45 kb',
},
{
name: '> tree-shaking: vk',
path: './dist/icons.esm.js',
import: '{ VkIcon }',
running: false,
limit: '1478 B',
},
{
name: '> tree-shaking: close',
path: './dist/icons.esm.js',
import: '{ CloseIcon }',
running: false,
limit: '570 B',
},
{
name: '> tree-shaking: flame',
path: './dist/icons.esm.js',
import: '{ FlameIcon }',
running: false,
limit: '1023 B',
},
{
name: '> tree-shaking: map',
path: './dist/icons.esm.js',
import: '{ MapIcon }',
running: false,
limit: '671 B',
},
{
name: '> tree-shaking: tv',
path: './dist/icons.esm.js',
import: '{ TvIcon }',
running: false,
limit: '641 B',
},
];
].concat(iconsSizeLimit);
Loading

0 comments on commit 66267ab

Please sign in to comment.