How to regularly keep my tiddlywiki updated to the content on GitHub?

108 views
Skip to first unread message

Matt Groth

unread,
Feb 27, 2017, 11:20:48 PM2/27/17
to tiddly...@googlegroups.com
I'm pretty new to GitHub and coding in general, but I'm finding it useful to try to regularly check the repository and update mine. I'm running on Node.JS and followed the steps here to link npm to my local repository.  
I am confused how this works exactly, though. I noticed someone changed a tiddler on GitHub, so I updated my local repository and tried to test if my tiddler updated. The one I used for the test was Using Stylesheets, which was updated recently. I checked, and the .tid file on my computer successfully updated. But on my TiddlyWiki, even after restarting the server, it did not. I tried deleting my old "Using Stylesheets" tiddler and restarting everything, but I still did not load the new one. I thought maybe I needed to disable and re-enable $:/plugins/TiddlyWiki/tw5.com-docs, but that did nothing either.

My next best guess is that I'm supposed to manually install everything each time I update. This is confusing me. Why do I have a local copy in my npm repository in the first place if it is never even loaded from there?

Matt Groth

unread,
Feb 28, 2017, 5:48:56 PM2/28/17
to TiddlyWikiDev
Note I don't expect anyone to fully explain how TiddlyWiki uses its local repository, but I would be very happy to be pointed to any docs or resources that do. Mostly I just want to understand which directories are used in my server and which are not. Also is it common for people to just drag and drop the latest changes since they aren't loaded automatically?

Mat

unread,
Feb 28, 2017, 6:48:42 PM2/28/17
to TiddlyWikiDev
> Also is it common for people to just drag and drop the latest changes since they aren't loaded automatically?

I'd guess the absolute majority just go with the latest official release. The people one step up might go with the official prerelease. More advanced than that... and I'd say you're down to less than a handful of individuals whose names you'll see as the active ones on github and who are developers in a more real sense (I'm the odd one out - active but incompetent. An enviable position, in deed.)

<:-)

BJ

unread,
Mar 2, 2017, 2:01:15 AM3/2/17
to TiddlyWikiDev
you can see which version you are using by the 'git status' command typed when you are at the root of you tw dir.

You should also try the scripts instead of npm (that what I use (modified scripts) as it is more simple).

all the best

BJ

Tobias Beer

unread,
Dec 10, 2017, 6:41:53 AM12/10/17
to TiddlyWikiDev
Hi Matt,

Working on the bleeding edge build may not be a recommendable practice.

Here's how you do it though:

To run TiddlyWiki on node with your fork of the repo, you simply open a command prompt in the repo folder and do:

npm link

From now on, node will use your local fork running any tiddlywiki commands like:

tiddlywiki --server

If you want to switch back to using the latest release, you simply run this in the console:

npm install -g tiddlywiki

I use the last release as the build env for my plugin repo and the latest build, of course, when doing core development and making pull requests against any feature branches I created based on master.

Hope that helped.

best wishes

-tb
Reply all
Reply to author
Forward
0 new messages