From 6255856205eaa4cb0bfca1a51ad45716f627346e Mon Sep 17 00:00:00 2001 From: Simon Baird Date: Wed, 13 Sep 2023 10:55:23 -0400 Subject: [PATCH] Add offline-external-js to empty edition (#7737) Currently I'm building these files myself for use on tiddlyhost.com. I'm thinking it would be nicer if they were built and distributed by TiddlyWiki's own build automation, so this is a step towards that. The two new files that are created, "empty-external-core.js" and "tiddlywikicore-.js" will appear alongside the existing "empty.html" and "empty.hta" when the TiddlyWiki site is deployed. --- bin/build-site.sh | 8 +++++--- editions/empty/tiddlywiki.info | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/build-site.sh b/bin/build-site.sh index 9f6cbea0c..aa8a29f63 100755 --- a/bin/build-site.sh +++ b/bin/build-site.sh @@ -104,13 +104,15 @@ node $TW5_BUILD_TIDDLYWIKI \ --build favicon static index \ || exit 1 -# /empty.html Empty -# /empty.hta For Internet Explorer +# /empty.html Empty +# /empty.hta For Internet Explorer +# /empty-external-core.html External core empty +# /tiddlywikicore-.js Core plugin javascript node $TW5_BUILD_TIDDLYWIKI \ ./editions/empty \ --verbose \ --output $TW5_BUILD_OUTPUT \ - --build empty \ + --build empty emptyexternalcore \ || exit 1 diff --git a/editions/empty/tiddlywiki.info b/editions/empty/tiddlywiki.info index 8e794b8c3..2b108e917 100644 --- a/editions/empty/tiddlywiki.info +++ b/editions/empty/tiddlywiki.info @@ -12,6 +12,9 @@ "empty": [ "--render","$:/core/save/all","empty.html","text/plain", "--render","$:/core/save/all","empty.hta","text/plain"], + "emptyexternalcore": [ + "--render","$:/core/save/offline-external-js","empty-external-core.html","text/plain", + "--render","$:/core/templates/tiddlywiki5.js","[[tiddlywikicore-]addsuffixaddsuffix[.js]]","text/plain"], "externalimages": [ "--savetiddlers","[is[image]]","images", "--setfield","[is[image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",