From https://github.com/AdobeXD/plugin-samples/issues/2:
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 torepo/build/
For simplicity sake, I prefer the latter.