Replies: 1 comment 3 replies
-
Hi @pmario there are quite a few ideas here, and I'm not sure I'm tracking them all:
I am not sure that we want to encourage users to run the built-in editions directly. Users who have installed TW globally with npm will find that any changes they make to those wiki's are hidden away within npms global cache. I do see that there are use cases for running editions directly as wikis, but I think those are quite advanced use cases. For most users, the purpose of editions is to enable the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TLDR;
The default workflow to start a TW server should be:
or if tiddlywiki is installed globally and the "editions" environment variables are set
@Jermolene and others -- what do you think?
It may be possible to have 2 new commands.
--find
and--run
At the moment we can do the following:
Which will use the pluguinlibrary "test-server" build configuration. But the "build" command can do much more than just build. It can "run" every command TiddlyWiki CLI knows.
As we can see below:
--listen port=8888
The proposal is: Let us create a run command that can do what build can do. But it should be similar to
--editions
command if the full info is missing. Eg:tiddlywiki tw --run
shouldtiddlywiki.info
tiddlywiki.info
filetiddlywiki.info
filerun
configurationrun
config ignore itrun
config is found an the directory name is exactly "tw" use thedefault
configuration and run itrun
is found it should show the following info, similar to the--editions
commandOn my computer there are 7 edition directories TW will find
But only
tw5.com
has a "run" configuration yet. So it will show:So we can start it with
tiddlywiki tw5.com --run default
ortiddlywiki tw5.com --run
which in the end will run
Run Configuration in tw5.com
The good thing now is that the new run command does not depend on the TW directory structure anymore, since
tw5.com
andtw5.com-server
can have differentrun
configurations.Editions are only shown, if they do have a run-configuration.
The new structure should be compatible with
npm run
eg:NPM should be able to deal with
npm run edition tw5.com --run lazy
where we only need ''one'' "editions" script. So 1 edition script can handle all tw configurations.This will keep package.json as simple as it can be. -- It should make
tiddlywiki tw5.com --run
even shorter. So we would not really need any NPM scripts anymore.TLDR;
The default workflow to start a TW server should be:
Beta Was this translation helpful? Give feedback.
All reactions