AdobeXD/plugin-samples

Symlink support

Closed this issue · 5 comments

@achicu suggested I open an issue for this here. Does not appear to be possible to symlink an individual plugin folder.

screen shot 2018-08-06 at 2 40 11 pm

@cameronmcefee Could you tell us more about the use case for this?

For a handful of reasons I'd prefer not to store my repo in the plugin folder:

  • My plugin is compiled
  • My plugin supports many platforms so its full of code that is not relevant to XD
  • I keep all my repos together elsewhere
  • It's a pain to cd into a path that deep

If I want to keep my repo separate and compile for the Application Support folder I have a few options:

  • Compile directly to ~/…/plugins/myplugin
  • Compile to repo/build/ then copy to ~/…/plugins/myplugin on every build
  • symlink repo/build/ to ~/…/plugins/myplugin once then compile to repo/build/

For simplicity sake, I prefer the latter.

Thanks for the context!

For the time being, it would be worth checking out xdpm's watch feature:
https://github.com/AdobeXD/xdpm

Closing this, as it isn't an issue with the samples in this repo. We're now tracking API feedback on the developer forums:
https://forums.adobexdplatform.com/c/api-feedback