adobe-photoshop / generator-assets

Generator Plug-in for Adobe Photoshop CC that helps users export image assets
MIT License
496 stars 86 forks source link

Pass component onRender #433

Closed milewski closed 7 years ago

milewski commented 7 years ago

I need to get the details of each generated file specially its name... currently the only way possible to do this is by reading the filesystem after everything has been generated... something along these lines:

const generatedAssets = glob.sync(__dirname + '/*-assets/*.*');

By emitting this component object on render would be of a great value :)

Actually i meant to push it to the 2.7.4(5?) as its on npm

mcilroyc commented 7 years ago

@Milewski have you filled out our Contributor License Agreement (linked in the README)? That's necessary for us to accept a PR.

milewski commented 7 years ago

Just filled it out now

mcilroyc commented 7 years ago

I see no harm in merging this PR here. No guarantees are made at this time with respect to the master branch.