Exclude files from build

33 views
Skip to first unread message

kohlt...@gmail.com

unread,
Sep 24, 2020, 3:09:29 PM9/24/20
to TiddlyWikiDev
Hey guys,

I am writing a few plugins for myself and usually create a new edition for every plugin. When I am fine with my result and want to test, I run the build command in Node i.e.

node tiddlywiki.js editions/myplugin --build index

I use Fossil as my SCM which creates a hidden file (.fslckout) inside the workdir which unfortunately gets included in the resulting plugin increasing its size dramatically. Moving this file in and out the workdir every time I want to build my plugin is quite the hassle. So I was wondering if there is some setting I could put in my tiddlywiki.info so it skips hidden files.

Saq Imtiaz

unread,
Sep 24, 2020, 4:47:06 PM9/24/20
to TiddlyWikiDev
I assume the .fslckout file is created inside the plugin directory?

You can control what is included from the directory using a tiddlywiki.files file:

You can probably use the filesRegExp option to meet your needs.

kohlt...@gmail.com

unread,
Sep 25, 2020, 11:57:36 AM9/25/20
to TiddlyWikiDev
Yes, it lives inside the plugin directory (which is the root directory of that repository).

Thanks for the link, but I could not find any way to tell TW to just skip that file upon building the resulting HTML file. As far as I understand it lets me replace the content of that file but there would still be an shadowtiddler like "/home/tristan/projects/github/tiddlywiki/plugins/myplugin/.fslckout".

Saq Imtiaz

unread,
Sep 25, 2020, 1:24:39 PM9/25/20
to TiddlyWikiDev
Have you tried setting a directories entry in the tiddlywiki.files file, with a fileRegExp that excludes dotfiles?

kohlt...@gmail.com

unread,
Sep 26, 2020, 12:26:51 PM9/26/20
to TiddlyWikiDev
Yes, but that did not work either unfortunately. Guess I will have to stick with moving .fslckout in and out of that directory...
Reply all
Reply to author
Forward
0 new messages