Building TiddlyWiki classic plugins

112 views
Skip to first unread message

Okido

unread,
Jan 3, 2023, 2:43:08 PM1/3/23
to TiddlyWikiClassic
Hello All,

Building plugins for TiddlyWiki classic is not easy with regards to the build flow.
Today I published the pluginBuilder-Plugin.js on GitHub.
The plugins included in the TiddlyWiki make it easier to build plugins.
Included tools are the editor ace.js, babel.js to transpile JS code to es2015 and terser.js.
The source code is run with the eval() function, so you can test without reloading, be careful!!!
Some work needs to be done, if you have ideas, let me know.

The TiddlyWiki classic can be found here: TiddlyWiki classic pluginBuilder

Have a nice day, Okido

Yakov

unread,
Feb 6, 2023, 3:41:03 AM2/6/23
to TiddlyWikiClassic
Hi Okido, thanks for sharing, especially for the babel-Plugin.js and terser-Plugin.js! Could you add a description for the second one and the Usage section? Also, Configuration section is somewhat puzzling as it suggests to substitute +function() with +function() (seemingly the same).

Best regards,
Yakov.

вторник, 3 января 2023 г. в 22:43:08 UTC+3, Okido:

Okido

unread,
Feb 7, 2023, 1:38:26 PM2/7/23
to TiddlyWikiClassic
Hi Yakov,

I will update the instructions this weekend.
The +function() substitution with +function() is indeed incorrect.
In the past I would build several plugins and than combine them into one plugin.
Just slicing the !code part from some plugins, adding all slices together and pasting it in one plugin.
When the !code contains !function() the slicing breaks at this point, !code is than incomplete.
To resolve this I decided to replace !function() with +function() by default, I will make this optional.

I hope this makes sense.

Have a nice day, Okido

Op maandag 6 februari 2023 om 09:41:03 UTC+1 schreef Yakov:

Okido

unread,
Feb 12, 2023, 8:31:22 AM2/12/23
to TiddlyWikiClassic
Hi Yakov and others,

I made some changes to the plugin and added more documentation, hope this helps.
Open as webpage: pluginBuilder-Plugin.js


Have a nice day, Okido
Op dinsdag 7 februari 2023 om 19:38:26 UTC+1 schreef Okido:

Okido

unread,
Sep 29, 2023, 5:55:40 AM9/29/23
to TiddlyWikiClassic
Hi All,

I made some major changes to the pluginBuilder-Plugin.js.
Open as webpage: pluginBuilder-Plugin.js

Any comments are welcome on this platform.

Have a nice day, Okido

Op zondag 12 februari 2023 om 14:31:22 UTC+1 schreef Okido:
Reply all
Reply to author
Forward
0 new messages