I have open source projects on GitHub. (md2pptx and mdpre, but that is by the by.)
I would like to open source an action group that is really only useful in the context of these projects - and hence incorporate it into one of the projects (probably md2pptx).
My question is: Assuming I want others to participate in developing this action group, what would be a good way to develop / package / distribute it?
I would say putting it in the Action Directory is not a great idea - though releases of it could end up there. Not a great idea because I don’t see people being able to do all the Git things with something in the Action Directory.
So, is there a good packaging etc mechanism? Any other concerns ‘ tips?
The file format for an action group (and an action) export looks to be in a binary rather than a plain text format - which was why I’d previously chosen to work with modifying actions from Drafts via the installation URL.
The installation URL has some URL encoded JSON data, but beyond that it isn’t that tricky to work with.
The Action Wizards produce installation URLs. If you look at the function.js file it uses there’s some code there about producing the JSON and the installation URL.
I did use an approach like this in the ThoughtAsylum Action Group to allow the TAD action to build the TAD-Library action from a copy of the tad.js file. Code below:
You could build a web page on GitHub that utilises source JSON stored on GitHub, alongside all the files to build it, and offers a download of the latest version.
Failing that, if you note the ThoughtAsylum example above, the source code for the JavaScript step is read from a local file. You could read the entire JSON from GitHub within an action and have it build and open the installation URL on the fly.
My suggestion would be that if you are wanting to do development, manage it through GitHub. Then when you have a stable release, update the copy on the Action Directory.