1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-14 13:54:50 +00:00
TiddlyWiki5/readme.md

30 lines
1.6 KiB
Markdown
Raw Normal View History

2011-11-22 14:29:29 +00:00
# cook.js
2011-11-29 19:25:51 +00:00
This is an attempt to modernise TiddlyWiki's build system, which has been based on tools written in Ruby called Cook and Ginsu (see https://github.com/TiddlyWiki/cooker for details). They were first written in 2006 and have been heavily hacked since then.
This new version is written in JavaScript for node.js, with the intention that it can share code with TiddlyWiki itself.
The goal is to achieve byte-for-byte compatibility with the old tools, but only to support the features required by the recipe files that are currently in use by TiddlyWiki and TiddlySpace. One of the difficulties is that cook.rb is very buggy; the current build process for tiddlywiki.com relies on TiddlyWiki itself doing a save operation in the browser to clear up problems with duplicate tiddlers and badly formed attributes.
2011-11-22 14:29:29 +00:00
## Usage
node cook.js <recipefile>
Cooks a recipe file and sends the output to STDOUT
node server.js <recipefile>
Cooks a recipe file and serves it over HTTP port 8000
2011-11-28 13:49:36 +00:00
node ginsu.js <tiddlywikifile> <outputdir>
Splits a TiddlyWiki file into separate `.tid` files and a `split.recipe` file.
2011-11-22 14:29:29 +00:00
## Testing
2011-12-03 13:43:49 +00:00
`test.sh` contains a simple test that cooks the main tiddlywiki.com recipe and compares it with the results of the old build process (ie, running cook.rb and then opening the file in a browser and performing a 'save changes' operation).
2011-11-22 14:29:29 +00:00
## Current status
2011-12-03 13:43:49 +00:00
As of 2nd December 2011, cook.js can now build a fully functional TiddlyWiki from the existing recipe files. There are two or three minor whitespace issues that prevent full byte-for-byte compatibility.