Export plugin to pluginFolder

82 views
Skip to first unread message

Matthew Lauber

unread,
May 18, 2018, 3:59:18 PM5/18/18
to TiddlyWiki
Anyone know of a way to use node to automatically export a plugin from a tiddlywiki file into a plugin folder?  I've been banging my head against the wall here, trying to get the plugin.info file to render.  I've got the following so far.
"--load", "../example.html",
"--unpackplugin", "$:/plugins/NameOfPlugin",
"--render", "[[$:/plugins/NameOfPlugin]plugintiddlers[]]", "[encodeuricomponent[]addprefix[tiddlers/]]", "", "$:/core/templates/tid-tiddler",

That renders the tiddlers in the plugin into individual files in the folder, as desired.  But I can't make the plugin.info file work.


Thanks,
Matt

Jeremy Ruston

unread,
May 19, 2018, 3:53:34 AM5/19/18
to tiddl...@googlegroups.com
Hi Matt
I’m not sure that it will be possible to produce the plugin.info file in this way. It’s a useful operation, though. Worse case we could make a JS macro that emits a tiddlywiki.info file given a reference to a plugin tiddler.

Best wishes

Jeremy



Thanks,
Matt

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9e58fb3b-cd21-4fb1-ae80-fccdcb59fdbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Nebauer

unread,
Oct 19, 2019, 12:18:26 AM10/19/19
to tiddl...@googlegroups.com
I realise this is an old topic, but here is a solution for anyone who finds it. Use this command for a tid-formatted plugin file:

tiddlywiki --import /path/to/plugin/file application/x-tiddler --savewikifolder /path/to/output/folder

or this command for a json-formatted plugin file:

tiddlywiki --import /path/to/plugin/file application/json --savewikifolder /path/to/output/folder

Note that the --savewikifolder command requires the output folder to be empty.

The plugin files, including plugin.info, will be in a subdirectory of the output folder called plugins/PluginName.

Regards,
David.
Reply all
Reply to author
Forward
0 new messages