Skip to content

Commit

Permalink
chore: bump icona packages
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Nov 30, 2023
1 parent 149c90f commit 2555dbb
Show file tree
Hide file tree
Showing 25 changed files with 186 additions and 23 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 12 additions & 3 deletions icona.js → icona.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ generate({
config: {
svg: {
active: true,
genMode: "recreate",
path: "svg",
svgoConfig: {
js2svg: {
Expand All @@ -16,7 +17,7 @@ generate({
name: "addAttributesToSVGElement",
params: {
attributes: [
{ "data-seed-icon": true },
{ "data-seed-icon": "true" },
{ "data-seed-icon-version": seedIconsPkg.version },
],
},
Expand All @@ -38,28 +39,31 @@ generate({
},
drawable: {
active: true,
genMode: "recreate",
path: "drawable",
svg2vectordrawableConfig: {},
defaultColor: "@color/gray900",
},
pdf: {
active: true,
genMode: "recreate",
path: "pdf",
pdfKitConfig: {
size: [24, 24],
margin: 0,
layout: "landscape",
},
svgToPdfOptions: {
assumePt: true,
x: 0,
y: 0,
assumePt: true,
width: 24,
height: 24,
},
},
react: {
active: true,
genMode: "recreate",
path: "react",
svgrConfig: {
jsxRuntime: "classic",
Expand All @@ -80,7 +84,7 @@ generate({
name: "addAttributesToSVGElement",
params: {
attributes: [
{ "data-seed-icon": true },
{ "data-seed-icon": "true" },
{ "data-seed-icon-version": seedIconsPkg.version },
],
},
Expand All @@ -103,5 +107,10 @@ generate({
dimensions: false,
},
},
png: {
active: true,
genMode: "recreate",
path: "png",
}
},
});
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"scripts": {
"prepack": "yarn build",
"generate:icona": "node icona.js",
"generate:icona": "yarn ts-node ./icona.ts",
"generate:react-index": "node scripts/generate-react-index.cjs",
"build": "yarn generate:react-index && yarn build:tsc && yarn build:js",
"build:tsc": "tsc --emitDeclarationOnly",
Expand All @@ -39,9 +39,9 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@icona/generator": "^0.0.15",
"@icona/types": "^0.0.13",
"@icona/utils": "^0.0.13",
"@icona/generator": "^0.2.1",
"@icona/types": "^0.2.1",
"@icona/utils": "^0.2.1",
"@svgr/plugin-jsx": "^8.0.1",
"@svgr/plugin-prettier": "^8.0.1",
"@svgr/plugin-svgo": "^8.0.1",
Expand All @@ -53,6 +53,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"svgo": "^3.0.2",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
}
}
Loading

0 comments on commit 2555dbb

Please sign in to comment.