Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor formatter logic #27

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ export default {
cwd: process.cwd(),
// What formatter to use to format the generated files, prettier or biome, defaults to no formatter
formatter: "biome",
// The path to the formatter config file, defaults to no path
pathToFormatterConfig: "./biome.json",
// Callback function that is called when the script is generating the icon name
// This is useful if you want to modify the icon name before it is written to the file
iconNameTransformer: (iconName) => iconName
Expand Down Expand Up @@ -104,4 +102,4 @@ Component usage:

```jsx
<Icon name="plus" />
```
```
201 changes: 160 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@
],
"homepage": "https://github.com/forge42dev/vite-plugin-icons-spritesheet#readme",
"dependencies": {
"@biomejs/js-api": "^0.6.2",
"@biomejs/wasm-nodejs": "^1.8.3",
"chalk": "^4.1.2",
"glob": "^10.3.12",
"node-html-parser": "^6.1.13",
"prettier": "^3.3.3"
"tinyexec": "^0.3.2"
},
"peerDependencies": {
"vite": ">=5.2.0"
Expand All @@ -92,4 +90,4 @@
"vite": "5.2.11",
"vitest": "^1.5.2"
}
}
}
Loading