AMoreaux / Sketch-Icons

🚀 Generate a dynamic icon library
https://sketchicons.com
MIT License
879 stars 45 forks source link

Plugin usage via Command Line #60

Open edoardocavazza opened 4 years ago

edoardocavazza commented 4 years ago

Hi!

First of all, thanks for this project, it resolved a lot of problems to us :)

In our iconset repository we setted up a script to dynamically generate webfonts and single glyph svg files. We were wondering if using the sketchtool bin, we could automatically update the Sketch library, passing sketch file, options and svg files list as command line flags. Something like:

sketchtool run ~/Library/Application\ Support/com.bohemiancoding.sketch3/Plugins/Sketch-Icons.sketchplugin import.icons --document iconset.sketch --artboardSize 24px --files ./svg/*.svg
LanesGood commented 4 years ago

@edoardocavazza my team is also interested in something like this. Did you find an alternate solution?

edoardocavazza commented 4 years ago

@LanesGood Not yet. I haven't had time to open a PR neither :(

AMoreaux commented 4 years ago

Hi there, Good idea! I'm curious about your use cases. Could you tell me more about that? For now, I haven't time to work on a new feature 😕 PR are welcome.

edoardocavazza commented 4 years ago

Hello @AMoreaux!

We are used to design iconset using fonts technologies, but we also need to export a Sketch library for designers and SVGs for developers. Since we already set up a CI tool which converts UFOs to Web fonts and exports glyphs to single SVG files, we would like to close the loop using sketchtool and your plugin to automatically update the Sketch library.

LanesGood commented 4 years ago

Hi @AMoreaux our use case is similar to @edoardocavazza's. Our team designs icons in Affinity Designer/Illustrator due to the more precise vector control (fill rules, handle pixel snapping, etc.) We use these in web projects with a webfont generated via CLI tool, but have a Sketch library for designers to create mockups and the like. Our ideal goal with a plugin improving on Sketch Icons would be to have a process that automatically updates the Sketch Library every time new SVGs are added to the github repo (or Google drive file stream folder), or existing ones are updated. This would be like a CI/CD tool for design across multiple design tools and export formats.

AMoreaux commented 4 years ago

Thank you @edoardocavazza @LanesGood