jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
540 stars 85 forks source link

Output generated files to different directories? #235

Open DeadSuperHero opened 1 month ago

DeadSuperHero commented 1 month ago

Hi there,

I'm trying to figure out if this is currently possible, or if I would need to do a little bit of code adjustment.

Here's what I want to do: put generated files in different directories, based on type.

The resulting structure would look something like...

font-dir/
├─ assets/
├─ ├─ less/
├─ ├─ ├─ font.less
├─ ├─ css/
├─ ├─ ├─ font.css
├─ ├─ fonts/
├─ ├─ ├─ font.eot
├─ ├─ ├─ font.ttf
├─ ├─ ├─ font.svg
├─ ├─ ├─ font.symbol.svg
├─ ├─ ├─ font.woff
├─ ├─ ├─ font.woff2
├─ ├─ scss/
├─ ├─ ├─ font.scss
├─ ├─ styl/
├─ ├─ ├─ font.styl
├─ node_modules/
├─ scripts/
├─ ├─ generate.js/
├─ src/
├─ ├─ svg/
├─ templates/
├─ ├─ _font.css.template
├─ ├─ _font.less.template
├─ ├─ _font.module.less.template
├─ ├─ _font.scss.template
├─ ├─ _font.styl.template
├─ .gitignore
├─ package.json
├─ index.html
├─ symbol.html
├─ unicode.html
├─ README.md

Basically, I want to try to keep the output organized and reduce clutter. Right now, it just all dumps into one directory, and feels messy.

jaywcjlove commented 1 month ago

@DeadSuperHero Implementing this requirement is very simple, but it would require me to change scripts in other projects, and it doesn't bring any significant value.