For your packaged vertical, where is it looking for the static files,
such as JS?
It seems like what you could do is create a symlink between your
development directory and the static folder used for the vertical.
I have a situation with tiddlywebplugins.wikidata, where I am needing
to tweak JavaScript and test it, without going through a build and
deploy cycle. My "static" directory in the package git repo is
actually a symlink to /tiddlywebplugins/wikidata/static, which is
where the production server looks for all the static content.
Does this make any sense in your context?
J.
On Feb 10, 6:01 pm, simon mcmanus <mcmanus.si...@gmail.com> wrote:
> In our weekly TiddlySpace hackdays I have been working on of the TiddlyWiki
> client side macros.
>
> So far I have been doing this is the following way :
>
> 1 .. git clone the tiddlyspace package repo into the folder
> "tiddlyspace_package" from here :
>
> http://github.com/FND/tiddlyspace
>
> 2 .. I then create a simple TiddlyWebWiki instance using the devstore in
> the same folder that contains the tiddlyspace_package dir.
>
> 3 .. I then go in to edit the tiddlywebconfig.py file of the dev instance so
> that it points to the (tiddlywiki) recipe which exists in the (src) folder
> of the tiddlyspaces package.
>
> 4 .. At the same the same time i have the TiddlyWiki recipe listed in the
> spaces instance.py (http://github.com/FND/tiddlyspace/blob/master/tiddlywebplugins/tiddly...
At the moment we have created a build script which makes it slightly easier to deploy a version of spaces (http://github.com/FND/tiddlyspace/blob/master/build.sh).
I'll look into further simplifying the devstore, making it easier to
use with any vertical. (The twinstance_dev script currently only
supports tiddlywebwiki - that should be easy to fix, now that we have
some tangible use cases.)
There's a more basic review of instancer (which provides the framework
for "twebicality"-style verticals) on the agenda as well, which should
lead to further clarification. (Here, too, the requirements are much
clearer now than during the original conception.)
> It's also worth noting the build script has to do several things that
> seem like they could be improved if I knew how
While a slightly separate issue, this is all part of the bigger picture,
so I expect that the instancer review and related efforts will lead to
more clarity on this front as well.
I'll be working on these tasks over the next few days - will keep you in
the loop as things progress.
-- F.
> For your packaged vertical, where is it looking for the static files,
> such as JS?
>
> It seems like what you could do is create a symlink between your
> development directory and the static folder used for the vertical.
The situation Simon's dealing with is the desire to have an active
development/test cycle of TiddlyWiki plugins, in a TiddlyWeb
environment, done in a way that interoperates nicely with packaging
and deployment.
There are several tools that help with all this, notably devstore, and
tiddlywebplugins.instancer but they haven't quite come together. In
part this is because the requirements are slippery, in part it is
because it is a hard problem.
This is slightly different from the situation you are describing,
where the javascript is not tiddlers, but static content used when
TiddlyWeb is operating as a sort of content mgt system, and that
static content is being served up directly, rather than from bags.
That process is pretty well worked out: symlink a dir containing the
static content where you need, and edit it as required.
What would be extremely useful throughout the process of improving
devstore, tiddlywebplugins.instancer, and develop/test/deploy in
general is if we can get some ordering into the bugs, feature requests
and requirements associated with those things. What tends to happen is
we start a discussion about what needs to happen and it quickly
diffuses into a bunch of general wishes for things to be better,
easier, more effective etc.
These general wishes are not actionable. To make progress there need
to be specific, detailed, granular requests that are, where possible,
placed into a generic context separate from whatever large overarching
concern may be involved. This is much like the persistent desire for
minimum test cases (MTC) over on the [tiddlywiki] group. For these things we
need, where possible, separated minimum feature requests (MFR). The large
overarching concern and context is valuable too (often extremely so)
but the MFR needs to be extracted out, made visible. This makes it
actionable.
Sometimes an MFR might be in the form of a user story (e.g. I want to
edit foo.js in my favorite editor, reload in tiddlyweb, and have the
foo.js changesbe there). Sometimes it might be in the form of a more
specific technical demonstration.
In either case imagine that the respondent to your request is going to
be writing a test for the request. It's possible to write a test for
the above example. It's not possible to write a test for "make it
better" (not to suggest people are saying that, just pointing out an
extreme example).
--
Chris Dent http://burningchrome.com/~cdent/
[...]
On Wed, 10 Feb 2010, jnthnlstr wrote:The situation Simon's dealing with is the desire to have an active
For your packaged vertical, where is it looking for the static files,
such as JS?
It seems like what you could do is create a symlink between your
development directory and the static folder used for the vertical.
development/test cycle of TiddlyWiki plugins, in a TiddlyWeb
environment, done in a way that interoperates nicely with packaging
and deployment.
There are several tools that help with all this, notably devstore, and
tiddlywebplugins.instancer but they haven't quite come together. In
part this is because the requirements are slippery, in part it is
because it is a hard problem.
I've added more Evil Magic to the devstore twinstance_dev instantiation
script, which enables the following process (at significant cost in
complexity, and brittleness, of the underlying code):
$ sudo pip install -U tiddlywebplugins.devstore
$ git clone g...@github.com:FND/tiddlyspace.git tiddlyspace
$ make remotes # also runs cacher
$ twinstance_dev tiddlywebplugins.tiddlyspace foo
$ cd foo
$ $EDITOR tiddlywebconfig.py # edit desired paths
$ twanager server
Regarding the desired paths: One example would be changing the _public
bag's file:// URI to cloneWizard.js to a relative path
("../src/cloneWizard.js").
Changes in that file in the repo will be reflected directly in the
instance - so adding 'alert("foo");', reloading the page in the browser,
adding 'alert("bar");', reloading etc.
-- F.
We have since come up with a further abstraction, allowing individual
developers to specify paths in a separate file (here: devtiddlers.py):
http://github.com/FND/tiddlyspace/commit/e79292f4ae9fd22ff7c0c79daf942c695ccf3977
-- F.
-- F.
--
You received this message because you are subscribed to the Google Groups "TiddlyWeb" group.
To post to this group, send email to tidd...@googlegroups.com.
To unsubscribe from this group, send email to tiddlyweb+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlyweb?hl=en.