ingrammicro / puzzle-publisher

A Sketch plugin that exports Sketch artboards into clickable HTML file and publishes it on an external site.
GNU General Public License v3.0
174 stars 19 forks source link

Added context option currentPath to provide destination path for prototype #4

Closed atalun closed 5 years ago

atalun commented 5 years ago

The current implementation provides no option for providing destination path for commandline run via sketchtool - it takes whatever had been declared by the Sketch user in export configuration. However, for automatic build it sometimes (usually?) is helpful to decide where the prototype will be exported. I added such option "currentPath" that can be used as a context parameter (similarly to "file" parameter). The name is not the most intuitive, but didn't want to introduce new name for the destination path (and currentPath is the name used in the plugin internally - perhaps it could be refactored?:)

MaxBazarov commented 5 years ago

Added optional current_path to context